img, video {
    max-width: 100%;
    height: auto;
}

@import url('https://fonts.googleapis.com/css2?family=Andika&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Andika', sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* HEADER */
.header {
    width: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px; /* un peu plus d'espace latéral */
    box-shadow: 0 2px 5px #FFD700;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
}

/* LOGO */
.logo img {
    width:200px;  /* Logo agrandi */
    height: auto;
}

/* BARRE DE NAVIGATION */
.headbar {
    display: flex;
    align-items: center;
    gap: 80px; /* Plus d’espace entre les liens */
}

.headbar a {
    text-decoration: none;
    color: #000;
    font-size: 20px; /* Taille augmentée */
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
}

.headbar a:hover {
    color: #FFD700;
    transform: scale(1.05); /* léger effet au survol */
}

/* BOUTON HELPLINE */
.menubtn button {
    background-color: #FFD700;
    color: white;
    border: none;
    padding: 12px 28px; /* un peu plus grand */
    font-size: 17px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.menubtn button:hover {
    background-color: #C9A227;
    transform: scale(1.05);
}

@media (max-width: 768px) {

    .header {
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
        gap: 10px;
    }

    .logo img {
        width: 150px;
    }

    .headbar {
        flex-direction: column;
        gap: 15px;              /* au lieu de 80px */
        width: 100%;
        text-align: center;
    }

    .headbar a {
        font-size: 16px;
    }

    .menubtn button {
        width: 100%;
        max-width: 250px;
    }
}

/* SECTION PRINCIPALE */


.hero .content {
    max-width: 380px;      /* ⬅️ cadre moins large */
    background-color: rgba(255,255,255,0.85);
    padding: 20px;         /* ⬅️ moins d’espace intérieur */
    border-radius: 12px;
    margin-top: 70px;
}


.hero h4 {
    font-size: 20px;
    color: #000;
}

.hero h1 {
    font-size: 45px;
    margin: 15px 0;
    color: #000;
}

.hero p {
    font-size: 18px;
    color: #000;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
        height: auto;
        text-align: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero .content,
    .hero-content.card {
        margin: 0 auto;
    }
} 

/* Bouton principal */
.appointment-btn {
    background-color: #C9A227;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 17px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.appointment-btn:hover {
    background-color: #000;
    transform: scale(1.05);
}


/* SECTION LOGIN STYLES */

.input-group i {
    color: #999;
    font-size: 18px;
    margin-right: 15px;
}

.input-group input {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    padding: 8px 0;
    font-size: 16px;
}


/* --- Panneau de Bienvenue (Droite) --- */
.welcome-panel {
    width: 50%;
    background: linear-gradient(to right, #6a11cb, #FFD700); /* Dégradé violet à bleu */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.panel-content h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.panel-content p {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.illustration {
    width: 120px; /* Taille de l'illustration */
    margin: 20px 0;
}




/* Hero réutilisé pour la page À propos - avec fond flou */
.hero {
    position: relative;
   min-height: 100vh;
   height: auto;
   display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 100px;
    overflow: hidden;
    color: #FFD700;
}
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: auto;
    }
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    filter: blur(2px);
    transform: scale(1.1);
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}
.hero-content.card {
    max-width: 380px;
    background-color: rgba(255,255,255,0.85); /* semi-transparent comme avant */
    padding: 20px;
    border-radius: 12px;
    margin-top: 70px;
    z-index: 1;      /* pour être au-dessus de la vidéo */
    color: #000;     /* texte noir à l’intérieur */
}



/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
        height: auto;                      /* Hauteur auto sur mobile */
        min-height: 100vh;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 40px;
    }

    .about-image img {
        max-width: 280px;
    }

    .about-text h2 {
        font-size: 32px;
    }
}
/* FOOTER CONTACT */
.contact-footer {
    background: #1c1c1c;
    color: #fff;
    padding: 35px 80px;
    font-family: 'Andika', sans-serif;
}

/* Partie haute */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: #FFD700; /* jaune élégant */
    text-decoration: none;
    font-weight: 600;
}

.footer-socials a {
    color: #FFD700;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Ligne */
.contact-footer hr {
    border: none;
    border-top: 1px solid #333;
    margin: 30px 0;
}

/* Partie basse */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    margin-right: 20px;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover,
.footer-socials a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 13px;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-footer {
        padding: 40px 30px;
        text-align: center;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .footer-socials a {
        margin: 0 10px;
    }
}


/* TOP BAR */
.topbar {
    background-color: #FFD700; /* bleu foncé corporate */
    color: #fff;
    font-size: 13px;
    padding: 8px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left span {
    margin-right: 15px;
    opacity: 0.9;
}

.topbar-right a,
.topbar-right .lang {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
}

.topbar-right a:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .topbar {
        display: none; /* cache la topbar sur mobile */
    }

    .header {
        padding: 0 20px;
    }
}


/* Section Notre Mission - bien séparée du cadre du haut */
.mission-section {
    position: relative;
    width: 100%;
    padding: 120px 100px 80px; /* Espacement généreux en haut pour ne pas coller */
}

.mission-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 100px;
  /* remove background photo7 for about page mission container */
  background-image: linear-gradient(rgba(253,246,227,0.8), rgba(253,246,227,0.8));
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Image à gauche : plus grande et imposante */
.mission-image img {
    width: 100%;
    max-width: none;          /* Pas de limite max */
    min-width: 650px;         /* Encore plus grande sur grand écran */
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Conteneur : plus d'espace entre image et texte */
.mission-container {
    gap: 120px;   
    border:2px solid #FFD700
               /* Écart plus grand pour équilibrer */
}

/* Textes à droite : taille réduite */
.mission-text h2 {
    font-size: 36px;          /* Titre un peu plus petit */
    margin-bottom: 30px;
    color: #000;
    font-weight: 900;
}

.mission-text p {
    font-size: 16px;          /* Paragraphe réduit */
    line-height: 1.7;
    margin-bottom: 35px;
    color: #333;
}

.ateliers-list li {
    font-size: 15px;          /* Liste réduite */
    line-height: 1.7;
    margin-bottom: 20px;
    padding-left: 35px;
    color: #444;
}

.ateliers-list li::before {
    font-size: 24px;          /* Coche un peu plus petite pour l'équilibre */
    top: -3px;
}

/* Responsive : sur tablette/mobile, l'image reste grande mais adaptée */
@media (max-width: 1200px) {
    .mission-image img {
        min-width: 500px;
    }
}

@media (max-width: 992px) {
    .mission-image img {
        min-width: auto;
        max-width: 100%;
    }
    
    .mission-text p,
    .ateliers-list li {
        font-size: 16px;      /* Un peu plus grand sur mobile pour lisibilité */
    }
}
     
    .mission-image img {
        max-width: 100%;
    }
    
    .mission-text h2 {
        font-size: 36px;
    }

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 260px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    z-index: 999;
}

.dropdown-content a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.dropdown-content a:hover {
    background-color: #f2f2f2;
}

/* Affichage du menu */
.dropdown:hover .dropdown-content {
    display: block;
}
/* PAGES SERVICES */
.service-hero {
    height: 60vh;
    background-image: url("photo1.jpg");
    background-size: cover;
    background-position: center;
    padding-top: 120px;
    text-align: center;
    color: #fff;
}

.service-hero h1 {
    font-size: 42px;
    font-weight: 800;
}

.service-hero p {
    font-size: 18px;
    margin-top: 10px;
}

/* Galerie */
.service-gallery {
    padding: 80px 100px;
    background-color: #fff;
}

.service-gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.gallery img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}
/* SECTION CONTACT DETAILS */
.contact-details {
    background: #111;
    color: #fff;
    padding: 35px 60px;
    text-align: center;
}

.contact-details h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #f5c400;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: auto;
}

.contact-item {
    background: #1c1c1c;
    padding: 25px;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.contact-item a {
    color: #f5c400;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-details {
        padding: 60px 30px;
    }
}
.support-section { 
  padding: 80px 10%;
  background: #f9fafb;
    
}

.support-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

/* Texte */
.support-text {
  max-width: 500px;
}

.support-tag {
  color: #3b82f6;
  font-weight: 600;
  font-size: 14px;
}

.support-text h2 {
  font-size: 36px;
  margin: 15px 0;
  color: #0f172a;
}

.support-text p {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Bouton */
.support-btn {
  display: inline-block;
  background: #0f3b63;
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.support-btn:hover {
  background: #092c49;
}

/* Image */
.support-image {
  position: relative;
}

.support-image img {
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Badge 97% */
.support-badge {
  position: absolute;
  top: -15px;
  left: -15px;
  background: #facc15;
  color: #000;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  font-size: 16px;
}

.support-badge span {
  font-size: 12px;
  font-weight: 500;

}
@media (max-width: 768px) {
  .support-container {
    flex-direction: column;
    text-align: center;
  }

  .support-image img {
    max-width: 100%;
  }

  .support-badge {
    left: 10px;
  }
}
.services-caly {
  padding: 80px 10%;
   background-image:
    linear-gradient(
      rgba(212, 175, 55, 0.6),   /* OR avec transparence */
      rgba(212, 175, 55, 0.6)
    ),
    url("photo7.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.services-header {
  text-align: center;
  margin-bottom: 50px;
}

.services-header span {
  color: #000;
  font-weight: 600;
  font-size: 14px;
}

.services-header h2 {
  font-size: 34px;
  margin-top: 10px;
  color: #0f172a;
}

/* Cartes */
.services-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: #f8fafc;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.service-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0f172a;
}

.service-card p {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 25px;
}

.service-btn {
  text-decoration: none;
  font-weight: 600;
  color: #0f3b63;
}
.service-icon {
  font-size: 42px;
  color: #0f3b63;
  margin-bottom: 20px;
}
.service-icon i {
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Animation au hover de la carte */
.service-card:hover .service-icon i {
  transform: scale(1.15) rotate(-3deg);
  color: #000;
}
.service-btn {
  position: relative;
  transition: color 0.3s ease;
}

.service-btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #2563eb;
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
}

.service-card:hover .service-btn::after {
  width: 100%;
}
.support-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px; /* réduit l’écart */
}
.support-text {
  max-width: 480px;
}


/* === CHATBOT MY CALLY === */

/* Bouton flottant */
#chatbot-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #000, #1a1a1a);
  color: #2563eb;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  z-index: 1000;
}

/* Chatbot container */
#chatbot {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 550px;
  height: 720px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;

  opacity: 0;
  transform: scale(0.9) translateY(20px);
  pointer-events: none;
  transition: all 0.35s ease;
}

#chatbot.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Header */
.chatbot-header {
  background: linear-gradient(135deg, #4f4f4f, #4f4f4f);
  color: #FFD700;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-title {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chatbot-avatar {
  font-size: 26px;
}

#chatbot-close {
  cursor: pointer;
  font-size: 18px;
}

/* Messages */
.chatbot-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Bot message */
.bot-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.bot-message .bubble {
  background: #111827;
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  max-width: 75%;
  font-size: 14px;
}

/* User message */
.user-message {
  align-self: flex-end;
  background: #FFD700;
  color: #000;
  padding: 12px 14px;
  border-radius: 14px 14px 4px 14px;
  max-width: 75%;
  font-size: 14px;
}

/* Typing indicator */
.typing {
  font-size: 13px;
  font-style: italic;
  color: #6b7280;
}

/* Quick questions */
.quick-questions {
  margin-top: 10px;
}

.quick-questions button {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid #2563eb;
  background: #000;
  color: #FFD700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-questions button:hover {
  background: #FFD700;
  color: #000;
}

/* Logo dans le header */
.chatbot-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}

/* Logo dans les messages */
.bot-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}

/* Mobile */



@media (max-width: 480px) {
  #chatbot {
    width: 95%;
    height: 85%;
    right: 2.5%;
    bottom: 80px;
  }
}
nav i {
  margin-right: 8px;
  font-size: 14px;
  color: #000;
}
.footer-icons a {
  margin-right: 15px;
  font-size: 18px;
  color: #64748b;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-icons a:hover {
  color: #000;
  transform: translateY(-3px);
}

/* FORMULAIRE POPUP */
.project-form {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9999;
}

.project-form.active {
  opacity: 1;
  pointer-events: auto;
}

.form-content {
  background: #fff;
  padding: 25px;
  width: 90%;
  max-width: 650px;
  border-radius: 12px;
  position: relative;
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

.form-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 18px;
}

.form-content h2 {
  margin-bottom: 5px;
}

.form-content p {
  font-size: 14px;
  margin-bottom: 15px;
}

.form-content input,
.form-content select,
.form-content textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.form-content button {
  width: 100%;
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.whatsapp-icon {
  color: #25D366;
  font-size: 20px;
  margin-right: 6px;
  vertical-align: middle;
}

.email-logo {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

.contact-item a {
  color: #ffffff; /* texte blanc */
  text-decoration: none; /* retire le soulignement */
}

.contact-item a:hover {
  color: #ffffff; /* reste blanc au survol */
  text-decoration: underline; /* facultatif si tu veux un petit effet hover */
}

.location-icon {
  color: #E53935; /* rouge discret, très lisible */
  font-size: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

.email-logo {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}
/* Logo image (Email, WhatsApp, etc.) */
.contact-logo {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Liens en blanc */
.contact-item a {
  color: #ffffff;
  text-decoration: none;
}

.contact-item a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.language-switcher button {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-weight: 600;
}

.language-switcher button.active {
  text-decoration: underline;
}

.language-switcher span {
  color: #ffffff;
}

.footer-countries {
  margin-top: 30px;
}

.footer-countries h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #ffffff;
}

.countries-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(255, 215, 0, 0.1);
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.country-item img {
  width: 22px;
  height: auto;
  border-radius: 3px;
}

.country-item span {
  font-weight: 600;
}

.country-item:hover {
  background: rgba(255, 215, 0, 0.25);
  transform: translateY(-2px);
}

.footer-countries h3 {
  font-size: 18px;        /* taille augmentée */
  font-weight: 700;       /* gras */
  margin-bottom: 14px;
  color: #FFD700;         /* or professionnel */
  letter-spacing: 0.6px; /* finition premium */
}

.header-countries {
    display: flex;
    gap: 8px;
    margin-left: 20px;
    align-items: center;
}

.header-countries a {
    display: inline-block;
    transition: transform 0.3s, opacity 0.3s;
}

.header-countries a img {
    width: 24px;      /* taille uniforme */
    height: auto;
    border-radius: 3px;
}

.header-countries a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.header-countries a img {
    width: 24px;      /* taille uniforme */
    height: 24px;     /* carré pour faire un cercle parfait */
    border-radius: 50%; /* arrondi complet = cercle */
    object-fit: cover;  /* pour que l’image remplisse bien le cercle */
}

.header-countries a img {  
    width: 28px;      /* augmenter taille uniforme */
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.header-countries {
    display: flex;
    gap: 12px; /* plus d’espace entre les drapeaux */
    margin-left: 20px;
    align-items: center;
}

.header-countries a {
    display: inline-block;
    width: 36px;           /* taille du cercle */
    height: 36px;
    border-radius: 50%;    /* cercle parfait */
    overflow: hidden;       /* s’assure que l’image reste dans le cercle */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* petite ombre pour relief */
    transition: transform 0.3s, box-shadow 0.3s;
}

.header-countries a img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* remplissage parfait du cercle */
}

.header-countries a:hover {
    transform: translateY(-3px) scale(1.05); /* effet hover premium */
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
@media (max-width: 768px) {
    .header-countries {
        margin-top: 8px;
    }

    .header-countries a {
        width: 28px;
        height: 28px;
    }
}


#scrollTopBtn:hover {
  background-color: #b8952d;
  transform: scale(1.1);
}


#scrollTopBtn {
  position: fixed;
  bottom: 80px;        /* distance depuis le bas, pour ne pas chevaucher le chatbot */
  right: 30px;          /* à droite */
  z-index: 998;         /* juste en dessous du chatbot si besoin */
  background-color: #d4af37;  /* couleur or */
  color: #fff;
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;   /* cercle */
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;           /* invisible par défaut */
}



#scrollTopBtn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
  #scrollTopBtn {
    right: 15px;
    bottom: 70px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}


.contact-footer .contact-item img.footer-icon {
    display: inline-block;   /* s’assure que l’image est visible */
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    filter: none;            /* enlève toute inversion qui pourrait cacher l’image */
}

.contact-footer {
    position: relative;
    z-index: 10;  /* au-dessus d’autres éléments flottants */
}

/* Section slider en fond */
.about-slider-background {
    position: relative;
    width: 100%;
    height: 400px; /* ajustable */
    overflow: hidden;
}

.about-slider-background h2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #DAA520; /* or */
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    z-index: 2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.about-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-slider img.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.about-slider img.slide.active {
    opacity: 1;
}



/* Section directeur */


.director-info {
  max-width: 600px;
  text-align: left;
}

.director-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 5px;
}

.director-title {
  font-size: 16px;
  color: #000;
  margin-bottom: 15px;
}

/* COLONNE GAUCHE */
.director-left {
  text-align: center;
  flex-shrink: 0;
}

.director-photo {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}


.director-identity {
  margin-top: 15px;
}

.director-identity strong {
  display: block;
  font-size: 18px;
  font-family: 'Playfair Display', serif;
}

.director-identity span {
  font-size: 14px;
  color: #000;
}

/* COLONNE DROITE */
.director-right {
  flex: 1;
}

.director-message {
  font-size: 17px;
  line-height: 1.7;
  font-style: italic;
  color: #333;
}



/* SECTION AVEC IMAGE DE FOND */

.director-section {
  min-height: 500px;

  /* removed background photo15.jpg as requested */
  background-image: none;
  background-size: initial;
  background-position: initial;
  background-repeat: initial;

  padding: 60px 20px;

  position: relative;
}

/* FILTRE SOMBRE */

.director-section::before {
  content: "";
  position: absolute;
 inset: 0;
  background: rgba(0,0,0,0.6);

  z-index: 1;
}

/* CONTENEUR DIRECTEUR */

.director-container {
  position: relative;
  z-index: 2;

  max-width: 1100px;
  margin: auto;

  display: flex;
  align-items: center;
  gap: 50px;

  background: rgba(241, 239, 239, 0.08);
  backdrop-filter: blur(6px);

  padding: 40px;
  border-radius: 18px;
}

/* PHOTO */

.director-photo {
  width: 220px;
  height: 280px;

  object-fit: cover;
  border-radius: 16px;

  border: 3px solid white;
}

/* TEXTES */

.director-name {
  color: white;
  margin-top: 10px;
}

.director-title {
  color: gold;
}

.director-message {
  color: white;
  font-size: 17px;
  line-height: 1.7;
  font-style: italic;
}
@media ( max-width: 768px){
  .director-container{
    flex-direction: column;
    text-align: center ;
  }
  .director-photo{
    margin: 0 auto;
  }
}

@media (max-width: 420px) {
  .director-container{
    padding: 18px;
    gap: 18px;
    border-radius: 12px;
    margin: 0 12px;
  }
  .director-photo{
    width: 140px;
    height: 160px;
    border-radius: 10px;
    border-width: 2px;
  }
  .director-message{
    font-size: 15px;
    line-height: 1.5;
    padding: 0 6px;
  }
}

/* === PAGE CREATIONS === */

.creations-section {
  padding: 80px 10%;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.creation-item {
  display: flex;
  align-items: center;
  gap: 40px;
}

.creation-item img {
  width: 420px;          /* taille maîtrisée */
  max-width: 100%;       /* reste responsive */
  height: 280px;         /* hauteur fixe élégante */
  object-fit: cover;     /* recadrage propre */
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.creation-text {
  width: 50%;
}

.creation-text h3 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #000;
}

.creation-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

/* Inverser image / texte */
.creation-item.reverse {
  flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
  .creation-item,
  .creation-item.reverse {
    flex-direction: column;
    text-align: center;
  }

  .creation-item img,
  .creation-text {
    width: 100%;
  }
}
@media (max-width: 768px) {

    .mission-section {
        padding: 60px 20px;
    }

    .mission-container {
        flex-direction: column;
        gap: 40px;
        padding: 30px 20px;
    }

    .mission-image img {
        min-width: 100%;
        width: 100%;
    }

    .mission-text h2 {
        font-size: 26px;
        text-align: center;
    }

    .mission-text p,
    .ateliers-list li {
        font-size: 15px;
        text-align: left;
    }
}
@media (max-width: 768px) {

    .service-gallery,
    .mission-section,
    .contact-details,
    .support-section,
    .services-caly,
    .creations-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
@media (max-width: 768px) {

    .support-container,
    .creation-item,
    .director-container {
        flex-direction: column;
        text-align: center;
    }

    .creation-text,
    .director-info {
        width: 100%;
    }

    .creation-item img {
        height: auto;
    }
}
@media (max-width: 768px) {
  #chatbot {
    width: 95%;
    height: 85%;
    right: 2.5%;
    bottom: 80px;
  }
}
/* ===== HEADER MOBILE FIX ===== */

@media (max-width: 768px) {

.header {
    flex-direction: column;
    align-items: center;
    padding: 12px 15px;
}

/* Logo */
.logo img {
    width: 130px;
}

/* Langue */
.language-switcher {
    margin: 6px 0;
}

/* Navigation */
.headbar {
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.headbar a {
    font-size: 16px;
    padding: 6px 0;
}

/* Dropdown mobile */
.dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
}

.dropdown-content a {
    background: #f2f2f2;
    margin: 4px 0;
    border-radius: 6px;
}

/* Drapeaux */
.header-countries {
    flex-wrap: wrap;
    justify-content: center;
    margin: 8px 0;
}

.header-countries a {
    width: 26px;
    height: 26px;
}

/* Bouton My CALY */
.menubtn {
    width: 100%;
    display: flex;
    justify-content: center;
}

.menubtn button {
    width: 90%;
    max-width: 260px;
    font-size: 15px;
}

}
/* ===== FOOTER CONTACT MOBILE FIX ===== */

@media (max-width: 768px) {

/* Section contact globale */
.contact-section,
.footer-contact {
    padding: 20px 12px;
}

/* Grille contact */
.contact-grid,
.footer-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
}

/* Cartes contact */
.contact-card,
.footer-card {
    padding: 12px 14px;
    border-radius: 12px;
}

/* Titres cartes */
.contact-card h3,
.footer-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

/* Texte */
.contact-card p,
.footer-card p {
    font-size: 14px;
    line-height: 1.4;
}

/* Icônes */
.contact-card img,
.footer-card img,
.contact-icon {
    width: 26px;
    height: 26px;
}

/* Carte localisation image */
.map-container img,
.contact-map img {
    max-height: 180px;
    object-fit: cover;
}

/* Bouton flottant chat */
.chat-widget,
.chat-btn {
    bottom: 15px;
    right: 12px;
    transform: scale(0.85);
}

}

/* ===== HERO MOBILE FULLSCREEN FIX ===== */

@media (max-width: 768px) {

.hero {
    min-height: 80svh;   /* safe viewport mobile */
    height: auto;
    padding-top: 120px; /* compense le header sticky */
    padding-bottom: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-size: cover;
    background-position: center center;
}

/* Vidéo/image background */
#bg-video {
    height: 100%;
    min-height: 80svh;
    object-fit: cover;
}

.hero::after {
    height: 100%;
}

}

/* ===== HAMBURGER MENU MOBILE ===== */

@media (max-width: 768px) {
    /* 1. La barre du haut */
    .header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 15px !important;
        height: 70px !important;
    }

    /* 2. ON FORCE L'AFFICHAGE DES DRAPEAUX SUR LA BARRE */
    .header-countries {
        display: flex !important; /* On annule le display: none */
        flex-wrap: wrap;
        max-width: 130px;
        gap: 5px;
        justify-content: center;
        order: 2; /* Les place au milieu */
    }

    .header-countries a img {
        width: 22px !important;
        height: 22px !important;
    }

    /* 3. LE PANNEAU COULISSANT (HEADBAR) */
    .headbar {
        display: flex !important; /* Indispensable pour voir le contenu */
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; 
        width: 280px !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        z-index: 3000000 !important;
        padding: 80px 25px !important;
        transition: right 0.4s ease-in-out !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .headbar.active {
        right: 0 !important;
    }

    /* 4. LE BOUTON MY CALY (Dans le menu) */
    .menubtn {
        display: block !important;
        margin-top: 20px;
        padding: 0 !important;
    }

    .menubtn button {
        width: 100% !important;
        padding: 15px !important;
        background-color: #FFD700 !important;
        border: none;
        border-radius: 8px;
        font-weight: bold;
    }

    /* Cache le bouton original sur la barre principale (si existant) */
    .header > .menubtn {
        display: none !important;
    }
}
/* ===== COMPRESSION FINALE DU FOOTER MOBILE ===== */
@media (max-width: 768px) {
    /* On réduit l'espace interne global */
    .contact-footer, .contact-details {
        padding: 15px 10px !important;
        height: auto !important;
        min-height: 0 !important;
    }

    /* Titre plus discret */
    .contact-details h2 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
        margin-top: 0 !important;
    }

    /* GRILLE : On force 2 colonnes pour gagner de la hauteur */
    .contact-grid {
        grid-template-columns: 1fr 1fr !important; 
        gap: 8px !important;
        max-width: 100% !important;
    }

    /* Cartes de contact ultra-compactes */
    .contact-item {
        padding: 8px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
        line-height: 1.2 !important;
    }

    .contact-item br { display: none; } /* On gagne une ligne par carte */
    .contact-item strong { display: block; font-size: 10px; margin-bottom: 2px; }

    /* L'IMAGE QUI POUSSE TOUT : On la réduit massivement */
    .footer-image-bottom img {
        width: 120px !important; 
        height: auto !important;
        margin: 10px auto !important;
    }

    /* On resserre les réseaux sociaux et les liens légaux */
    .footer-socials {
        margin: 15px 0 !important;
        gap: 10px !important;
    }

    .footer-socials a { font-size: 11px !important; }

    .footer-bottom {
        margin-top: 10px !important;
        padding-top: 10px !important;
        gap: 5px !important;
    }

    .footer-links a {
        font-size: 10px !important;
        margin-right: 10px !important;
    }

    .contact-footer hr { margin: 15px 0 !important; }
}
@media (max-width: 768px) {
    /* On réduit les marges de toutes les sections */
    section, .mission-section, .services-caly, .support-section, .creations-section {
        padding: 30px 15px !important; /* Divise par 4 le vide inutile */
    }

    /* On réduit la taille des titres globaux pour gagner de la place */
    h2 { font-size: 22px !important; }
    
    /* Correction du HERO qui prend trop de place */
    .hero {
        min-height: 50vh !important; /* Au lieu de 100vh */
        padding-top: 80px !important;
    }

    /* On réduit l'espace entre les éléments de mission */
    .mission-container {
        gap: 20px !important;
        padding: 20px !important;
    }
}
/* ===== RESPONSIVE SERVICES CALY ===== */
@media (max-width: 768px) {
    
    .services-caly {
        /* On réduit les marges énormes de 80px 10% */
        padding: 40px 15px !important;
        background-attachment: scroll; /* Améliore la performance sur mobile */
    }

    .services-header {
        margin-bottom: 25px !important;
    }

    .services-header h2 {
        font-size: 24px !important; /* Titre plus adapté */
    }

    /* GRILLE : On s'assure que les cartes ne forcent pas une largeur excessive */
    .services-cards {
        grid-template-columns: 1fr !important; /* Une seule carte par ligne sur mobile */
        gap: 15px !important; /* Espace réduit entre les cartes */
    }

    .service-card {
        padding: 25px 20px !important; /* On compacte l'intérieur de la carte */
        border-radius: 15px !important;
        text-align: center; /* Meilleur rendu visuel sur petit écran */
    }

    .service-icon {
        font-size: 32px !important; /* Icône un peu plus petite */
        margin-bottom: 15px !important;
    }

    .service-card h3 {
        font-size: 18px !important;
        margin-bottom: 8px !important;
    }

    .service-card p {
        font-size: 14px !important;
        margin-bottom: 15px !important;
        line-height: 1.4 !important;
    }

    /* On désactive l'effet hover 'translateY' qui peut créer des bugs de scroll sur mobile */
    .service-card:hover {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    }
}
@media (max-width: 768px) {
    /* 1. On réduit drastiquement la hauteur de la section */
    .services-caly {
        padding: 30px 15px !important; /* On passe de 80px à 30px */
        background-attachment: scroll;
    }

    /* 2. On réduit l'en-tête de la section */
    .services-header {
        margin-bottom: 20px !important;
    }

    .services-header h2 {
        font-size: 22px !important; /* Titre plus compact */
        margin-top: 5px !important;
    }

    /* 3. On réduit la taille des cartes */
    .services-cards {
        gap: 12px !important; /* Espace réduit entre les cartes */
    }

    .service-card {
        padding: 20px !important; /* Moins de vide à l'intérieur */
        border-radius: 12px !important;
    }

    /* 4. On diminue les éléments internes pour gagner des lignes */
    .service-icon {
        font-size: 30px !important;
        margin-bottom: 10px !important;
    }

    .service-card h3 {
        font-size: 17px !important;
        margin-bottom: 5px !important;
    }

    .service-card p {
        font-size: 13px !important; /* Texte plus petit */
        margin-bottom: 10px !important;
        line-height: 1.3 !important; /* Interligne plus serré */
    }

    /* 5. Support Section (si présente dans la même zone) */
    .support-container {
        gap: 15px !important;
    }

    .support-text h2 {
        font-size: 22px !important;
    }

    .support-image img {
        max-width: 200px !important; /* Image plus petite pour moins scroller */
        margin: 0 auto;
    }
}
/* ===== OPTIMISATION PAGE CRÉATIONS MOBILE ===== */
@media (max-width: 768px) {
    
    .creations-section {
        padding: 30px 15px !important; /* On réduit l'espacement global */
        gap: 40px !important; /* Espace entre les blocs de création */
    }

    .creation-item {
        flex-direction: column !important; /* On empile verticalement */
        gap: 15px !important;
        align-items: center;
    }

    /* FORCE L'IMAGE EN HAUT même si c'est un item 'reverse' */
    .creation-item.reverse {
        flex-direction: column !important; 
    }

    /* REDUCTION DES IMAGES */
    .creation-item img {
        width: 100% !important;
        max-width: 320px !important; /* On bride la largeur pour ne pas étouffer l'écran */
        height: 200px !important;    /* Hauteur fixe pour l'harmonie */
        object-fit: cover;
        border-radius: 12px;
        margin: 0 auto;
    }

    .creation-text {
        width: 100% !important;
        text-align: center; /* On centre le texte pour le mobile */
        padding: 0 10px;
    }

    .creation-text h3 {
        font-size: 20px !important;
        margin-bottom: 10px !important;
        color: #C9A227; /* Rappel du doré Caly */
    }

    .creation-text p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: #555;
    }
}
@media (max-width: 768px) {
    /* 1. Réduire la taille de l'image de création */
    .creation-item img {
        width: 85% !important;        /* Ne prend plus toute la largeur */
        max-width: 250px !important;  /* Limite la largeur max */
        height: 160px !important;     /* Hauteur fixe plus courte */
        object-fit: cover;            /* Garde les proportions sans déformer */
        margin: 0 auto 10px !important; /* Centre l'image et ajoute un petit espace en dessous */
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    /* 2. Rapprocher le texte de l'image */
    .creation-text {
        width: 100% !important;
        padding-top: 0 !important;
    }

    .creation-text h3 {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }

    /* 3. Réduire l'espace entre chaque bloc de création */
    .creation-item {
        margin-bottom: 25px !important; 
        gap: 10px !important;
    }
}
/* Style du Modal (fond noir) */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    padding-top: 100px; 
    left: 0; top: 0;
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.9); 
    cursor: zoom-out;
}

/* L'image agrandie */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

/* Bouton fermer */
.close {
    position: absolute;
    top: 50px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Curseur loupe sur les images de créations */
.creation-item img {
    cursor: zoom-in;
    transition: 0.3s;
}
/* Empêche la vidéo de sortir du cadre Hero */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Garde une hauteur pleine page */
    overflow: hidden;   /* COUPE tout ce qui dépasse (indispensable) */
    display: flex;
    align-items: center;
}

/* Ajustement de la vidéo */
#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit le cadre sans déformer (comme un fond d'écran) */
    transform: translate(-50%, -50%); /* Centre parfaitement la vidéo */
    z-index: -1;
}