:root {
  --bg-main: #ffffff;
  --text-main: #222222;
  --card-bg: #ffffff;
  --section-alt: #f5f7fa;
}

/* DARK MODE */
body.dark-mode {
  --bg-main: #121212;
  --text-main: #eaeaea;
  --card-bg: #1e1e1e;
  --section-alt: #181818;
}

/* BODY */
body.theme-blue {
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* PETIT ESPACE AU-DESSUS */
.top-gap {
  height: 12px;
  background: transparent;
}

/* NAVBAR – IDENTIQUE À L’ANCIEN SITE */
.custom-navbar {
  background: rgba(60, 60, 60, 0.85); /* GRIS foncé translucide */
  top: 12px;
  backdrop-filter: blur(4px);
}

/* Texte */
.navbar-brand {
  font-weight: 500;
  font-size: 1rem;
  color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.75);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #ffffff;
}

/* Burger */
.navbar-dark .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}


/* HERO */
.hero-home {
  height: 100vh;
  background-image: url("../assets/images/FaçadeCabinet10.jpg");
  background-size: 120%;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}


.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero-content h5 {
  font-weight: 400;
  margin-bottom: 10px;
}

.hero-content h1 {
  font-weight: 300;
  margin-bottom: 20px;
}

.hero-content span {
  color: #24D5E2;
  font-weight: 500;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  font-size: 0.9rem;
}

/* ANIMATION ZOOM IN DOWN (EXACTE) */
@keyframes zoomInDown {
  from {
    opacity: 0;
    transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);
    animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  }

  60% {
    opacity: 1;
    transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
  }
}

.zoomInDown {
  animation: zoomInDown 1s ease both;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h5 {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-home {
    background-size: cover;
    background-position: center;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h5 {
    font-size: 1rem;
  }
}


.images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.images img {
  max-width: 550px;   /* ← taille contrôlée */
  width: 100%;
  height: auto;
  border-radius: 6px;
}


@media (max-width: 768px) {
  .images img {
    max-width: 100%;
  }
}

/* SUPPRESSION TOTALE DES CADRES TEXTE */
.text-pro {
  border: none !important;
}


/* ===== BIENVENUE ===== */

/* Badge section (Contact, etc.) */
.badge-subhead {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: #C0DFEF;   /* fond */
  color: #2960f7;        /* texte */
  font-size: 0.85rem;
  font-weight: 500;
}


#welcome,
#bienvenue {
  background: #ffffff;
}

.welcome-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.welcome-images img {
  max-width: 520px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .welcome-images img {
    max-width: 100%;
  }
}


/* ===== PARCOURS – IMAGES ===== */

.parcours-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.parcours-images img {
  max-width: 520px;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .parcours-images img {
    max-width: 100%;
  }
}


/* ===== SERVICES / COMPÉTENCES ===== */

.services {
  margin-top: 40px;
}

.service-item {
  background: #ffffff;
  padding: 35px 30px;
  height: 100%;
  border-radius: 14px;

  /* + de relief */
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.06);

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}


.service-item:hover {
  transform: translateY(-8px);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.1);
}


/* Icône */
.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(36, 213, 226, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon span {
  font-size: 42px;
  line-height: 1;
}

/* Icône eau en noir */
.service-icon .bi-water {
}

/* Icônes Iconify (mains) */
.service-icon .iconify {
  font-size: 42px;          /* même taille que bi-water */
}

/* Titres */
.service-item h4 {
  font-weight: 500;
  margin-bottom: 12px;
}

/* Intro */
.service-intro {
  font-weight: 500;
  color: #555;
  margin-bottom: 12px;
}

/* Texte */
.service-text {
  font-size: 0.95rem;
  color: #666;
}

/* Liste */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #666;
}

.service-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #24D5E2;
  font-size: 1.2rem;
  line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .service-item {
    padding: 30px 25px;
  }
}


/* ===== PERSONNEL SOIGNANT ===== */

.team-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  height: 100%;

  border: 1px solid rgba(0,0,0,0.04);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.10),
    0 4px 10px rgba(0,0,0,0.05);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 45px rgba(0,0,0,0.16),
    0 6px 18px rgba(0,0,0,0.08);
}

/* Photo */
.team-photo {
  width: 100%;
  max-width: 180px;     /* ← un peu plus large */
  height: 220px;        /* ← hauteur forcée identique */
  object-fit: cover;    /* ← crop propre sans déformation */
  border-radius: 10px;
}

/* Contenu */
.team-content {
  padding: 15px 20px;
}

.team-content h5 {
  margin-bottom: 4px;
  font-weight: 500;
}

.team-role {
  display: block;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 12px;
}

/* Liste */
.team-content ul {
  padding-left: 18px;
  margin: 0;
}

.team-content li {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 6px;
}

/* Mobile */
@media (max-width: 768px) {
  .team-photo {
    margin-bottom: 15px;
  }

  .team-content {
    text-align: center;
  }

  .team-content ul {
    padding-left: 0;
    list-style-position: inside;
  }
}



/* ===== DÉROULEMENT DES SÉANCES ===== */

.session-block {
  max-width: 900px;
  margin: 0 auto 40px;
}

.session-title {
  text-align: center;
  font-weight: 500;
  margin-bottom: 16px;
}

.session-highlight {
  text-align: center;
  font-weight: 500;
  color: #444;
}

.session-strong {
  font-weight: 600;
  color: #333;
}

.session-list {
  padding-left: 18px;
  margin-top: 10px;
}

.session-list li {
  margin-bottom: 8px;
  color: #555;
  font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 768px) {
  .session-block {
    padding: 0 10px;
  }

  .session-title {
    font-size: 1.1rem;
  }
}



/* ===== PRISE DE RENDEZ-VOUS ===== */

.rdv-card {
  max-width: 850px;
  margin: 0 auto;
  padding: 40px 35px;

  background: #ffffff;
  border-radius: 16px;

  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.12),
    0 5px 14px rgba(0, 0, 0, 0.06);

  text-align: center;
}

/* Texte principal */
.rdv-main {
  font-size: 1.05rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
}

/* Bloc info */
.rdv-info {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.rdv-info p {
  font-weight: 500;
  margin-bottom: 10px;
}

.rdv-info ul {
  padding-left: 18px;
  margin: 0;
}

.rdv-info li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #555;
}

/* Mobile */
@media (max-width: 768px) {
  .rdv-card {
    padding: 30px 22px;
  }

  .rdv-main {
    font-size: 1rem;
  }
}



/* ===== CONTACT ===== */

.contact-section {
  background: var(--section-alt);
  color: var(--text-main);
}

/* Dark mode spécifique contact */
body.dark-mode .contact-section {
  background: #0f0f0f;
}

.contact-block p,
.contact-block li {
  color: var(--text-main);
}

.contact-block {
  background: transparent;
}

.contact-block h5 {
  font-weight: 500;
  margin-bottom: 10px;
}

.contact-block hr {
  width: 40px;
  border-top: 2px solid #24D5E2;
  margin: 10px 0 15px;
}

.contact-block p,
.contact-block li {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.contact-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-block li {
  margin-bottom: 8px;
}

.contact-block a {
  color: #24D5E2;
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */

.footer-section {
  background: rgba(45, 45, 45, 1);
  padding: 25px 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-section a {
  color: #24D5E2;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.badge.badge-subhead {
  background-color: #C0DFEF !important;
  color: #2960f7 !important;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 999px;
}


/* ===== RDV – SYSTÈME INTERACTIF ===== */

.rdv-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.rdv-step {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 16px;
  text-align: center;

  border: 1px solid rgba(0,0,0,0.04);
  box-shadow:
    0 12px 30px rgba(0,0,0,0.10),
    0 4px 10px rgba(0,0,0,0.05);

  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rdv-step:hover {
  transform: translateY(-8px);
  box-shadow:
    0 22px 50px rgba(0,0,0,0.16),
    0 8px 20px rgba(0,0,0,0.08);
}

/* Icône */
.rdv-icon {
  font-size: 38px;
  margin-bottom: 15px;
}

/* Titre */
.rdv-step h5 {
  font-weight: 500;
  margin-bottom: 10px;
}

/* Texte */
.rdv-step p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 18px;
}

/* ===== PRISE DE RENDEZ-VOUS – ACTIONS ===== */

.rdv-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.rdv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 26px;
  border-radius: 999px;

  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Bouton téléphone */
.rdv-btn-phone {
  background: #2960f7;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(41, 96, 247, 0.35);
}

.rdv-btn-phone:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(41, 96, 247, 0.45);
}

/* Bouton mail */
.rdv-btn-mail {
  background: #C0DFEF;
  color: #2960f7;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.rdv-btn-mail:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}

/* Icônes */
.rdv-btn i {
  font-size: 1.1rem;
}


/* ===== BOUTON RETOUR EN HAUT ===== */

#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;

  width: 46px;
  height: 46px;
  border-radius: 50%;

  background: #C0DFEF;
  color: #2960f7;

  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.18),
    0 4px 10px rgba(0,0,0,0.10);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease;
}

/* Visible */
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover */
#backToTop:hover {
  background: #a9d3e6;
  transform: translateY(-4px);
}



/* ===== BOUTON DARK MODE ===== */
.theme-toggle {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: white;
  padding: 6px 10px;
  transition: transform 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.15);
}

body {
  background: var(--bg-main);
  color: var(--text-main);
}

.section {
  background: var(--bg-main);
}

.section-alt {
  background: var(--section-alt);
}

/* Cartes */
.service-item,
.team-card,
.rdv-card {
  background: var(--card-bg);
}

/* ===== CONTACT – MODE HYBRIDE (LIGHT + DARK) ===== */

/* Contact TOUJOURS sombre */
#contact {
  background: #2e2e2e;
  color: #ffffff;
}

/* Titres */
#contact h2,
#contact h5 {
  color: #ffffff;
}

/* Textes */
#contact p,
#contact li,
#contact a {
  color: rgba(255, 255, 255, 0.9);
}

/* Liens */
#contact a {
  color: #24D5E2;
}

/* Séparateurs */
#contact hr {
  border-top: 2px solid #24D5E2;
}

/* Supprimer tout fond clair parasite */
#contact .container,
#contact .row,
#contact .contact-block {
  background: transparent;
}

/* DARK MODE : encore plus sombre */
body.dark-mode #contact {
  background: #0f0f0f;
}


/* ===== PRÉSENTATION – FIX GLOBAL ===== */

/* La section présentation prend le bon fond */
#presentation {
  background: var(--bg-main);
}

/* Carte présentation = conteneur fluide */
#presentation .card {
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 1100px;
  margin: 0 auto;
}

/* Texte lisible */
#presentation p {
  color: var(--text-main);
  line-height: 1.7;
}

/* Images bien intégrées */
#presentation .images {
  margin-top: 40px;
}

/* ===== FIX ESPACES ENTRE SECTIONS ===== */

/* Supprime les marges parasites des titres en haut */
.section h2:first-child {
  margin-top: 0;
}

/* Harmonise les espacements verticaux */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Mobile : un peu moins d’air */
@media (max-width: 768px) {
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* ===== TITRES – DARK MODE ===== */

/* Tous les titres deviennent blancs en dark mode */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5 {
  color: #ffffff;
}

/* Exception : badges (on ne touche pas) */
body.dark-mode .badge-subhead {
  color: #2960f7;
}


/* ===== TEXTE CONTENU – DARK MODE ===== */

/* Tous les textes de contenu passent en clair */
body.dark-mode p,
body.dark-mode li,
body.dark-mode span,
body.dark-mode .service-text,
body.dark-mode .service-intro,
body.dark-mode .session-highlight,
body.dark-mode .session-list li,
body.dark-mode .team-role {
  color: rgba(255, 255, 255, 0.9);
}


/* ===== CONTACT – LIGHT MODE ===== */
body:not(.dark-mode) #contact {
  background: #3f3f3f; /* gris comme sur ton image */
  color: #ffffff;
}


/* ===== FOOTER / COPYRIGHT – LIGHT MODE ===== */
body:not(.dark-mode) .footer-section {
  background: #2a2a2a; /* plus foncé que Contact */
  color: rgba(255, 255, 255, 0.75);
}


body:not(.dark-mode) #contact h2,
body:not(.dark-mode) #contact h5,
body:not(.dark-mode) #contact p,
body:not(.dark-mode) #contact li {
  color: #ffffff;
}


/* ===== BOUTON DARK MODE – VERSION FINALE ===== */

.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icône */
.theme-icon {
  font-size: 1.3rem;
  display: inline-block;

  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}

/* Hover desktop */
@media (hover: hover) {
  .theme-toggle:hover .theme-icon {
    transform: rotate(20deg) scale(1.15);
  }
}

/* Animation au clic (mobile + desktop) */
.theme-icon.animate {
  transform: rotate(360deg) scale(1.3);
}

/* Animation déclenchée au clic */
.theme-toggle.rotate {
  transform: rotate(360deg) scale(1.15);
}


/* ===== TRANSITION GLOBALE THÈME ===== */
body,
.section,
.section-alt,
.service-item,
.team-card,
.rdv-card,
.contact-section,
.footer-section {
  transition:
    background-color 0.45s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

body {
  transition: background-color 0.5s ease, color 0.35s ease;
}


/* ===== HERO – MOTS ACCENTUÉS TOUJOURS BLEUS ===== */

.hero-content h1 span {
  color: #24D5E2;
  font-weight: 500;
}

/* Dark mode : on force la couleur */
body.dark-mode .hero-content h1 span {
  color: #24D5E2;
}


/* ===== ICONES ICONIFY – COULEUR ADAPTATIVE ===== */

/* Force les icônes Iconify à suivre la couleur du texte */
.iconify {
  color: currentColor;
}

/* Dark mode : icônes blanches */
body.dark-mode .service-icon .iconify {
  color: #ffffff;
}

/* Light mode : icônes foncées */
body:not(.dark-mode) .service-icon .iconify {
  color: #222222;
}


/* ===== SERVICE ICON – FOND FIXE, ICÔNE ADAPTATIVE ===== */

/* Cercle : TOUJOURS le même fond (light + dark) */
.service-icon {
  background: rgba(36, 213, 226, 0.12); /* fond bleu clair conservé */
}

/* Toutes les icônes suivent la couleur du texte */
.service-icon span,
.service-icon .iconify {
  color: #222222;
}

/* Dark mode : icônes blanches UNIQUEMENT */
body.dark-mode .service-icon span,
body.dark-mode .service-icon .iconify {
  color: #ffffff;
}
