/* ========================== Base responsive globale ========================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img, video, canvas { max-width: 100%; height: auto; display: block; }

/* Wrapper responsive pour iframes (YouTube/Calendly/Maps) */
.embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================== Styles généraux ================== */
body {
  font-family: 'Georgia', serif;
  background-color: #fdfdfd;
  color: #333;
  margin: 0;
  padding: 0;
  padding-top: 100px; /* ✅ Ajuste selon la hauteur réelle du header */
}


header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1a1a40;
  color: white;
  padding: 1em 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2em;
  padding: 0;
  margin: 0;
  flex-wrap: wrap; /* responsive */
}
nav li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
nav li a:hover { color: #d4af37; }

#accueil {
  background-color: #1a1a40;
  color: white;
  padding: 2em 2em;
  text-align: center;
  animation: fadeIn 1s ease;
}
#accueil h2 { font-size: 2.5em; margin-bottom: 0.5em; }
#accueil p {
  font-size: 1.1em;
  max-width: 700px;
  margin: auto;
  line-height: 1.6;
}

main section {
  max-width: 1000px;
  margin: 3em auto;
  padding: 3em 2em;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
  animation: fadeIn 1s ease;
}
section h2 { color: #1a1a40; margin-bottom: 1em; font-size: 1.8em; }
section p { line-height: 1.7; }

footer {
  background-color: #1a1a40;
  color: white;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================== Domaines / cartes ================== */
.domaines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin-top: 2em;
}
.domaine {
  background-color: #f7f7f7;
  border-left: 4px solid #1a1a40;
  padding: 1.5em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.domaine:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.domaine h3 { margin-top: 0; color: #1a1a40; font-size: 1.2em; }

/* ================== À propos / contenu ================== */
.a-propos-contenu {
  font-size: 1.05em; line-height: 1.8; color: #444; padding: 1em;
  background-color: #fafafa; border-left: 4px solid #1a1a40; border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.a-propos-contenu p { margin-bottom: 1.5em; }

/* ================== Timeline horizontale ================== */
.about-2c-section {
  padding: 4rem 1.25rem;
  background: #fff;
}

.about-2c-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: start;
}

/* 2 colonnes à partir de 800px */
@media (min-width: 800px) {
  .about-2c-container {
    grid-template-columns: 1fr 1.4fr; /* photo / texte */
    gap: 3rem;
  }
}

.about-text h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.25rem);
  margin: 0 0 1rem 0;
  position: relative;
}

.about-text h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0f172a;
  margin-top: .5rem;
}

.about-text p {
  margin: 0 0 1rem 0;
  line-height: 1.8;
  color: #1f2937;
}

.about-text strong { font-weight: 600; }

/* Photo : ratio, rognage doux, ombre */
.about-photo {
  margin: 0;
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;           /* portrait harmonieux */
  object-fit: cover;             /* recadre sans déformer */
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}


/* ================== En-tête / branding ================== */
.cabinet-header {
  background-color: #1c1c2e; color: white; padding: 2em 1em; text-align: center;
  border-bottom: 4px solid #c9a45c;
}
.branding h1 { font-size: 2.5em; margin: 0; font-family: 'Georgia', serif; letter-spacing: 1px; }
.branding h1 span { color: #c9a45c; font-weight: 600; }
.tagline { font-size: 1.1em; margin-top: 0.5em; font-style: italic; color: #e0e0e0; }

.main-nav ul {
  list-style: none; padding: 1em 0 0 0; margin: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 2em;
}
.main-nav a { color: white; text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.main-nav a:hover { color: #c9a45c; }

/* ================== Section accueil ================== */
.accueil-section {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1em 1em; background: #1c1c2e; color: white; margin-bottom: 0;
}
/* conteneur centré */
.accueil-photo { display: flex; justify-content: center; }
/* wrapper = taille + halo */
.photo-wrap {
  position: relative;
  width: clamp(120px, 18vw, 180px);  /* min 120, max 180, fluide entre */
  aspect-ratio: 1 / 1;               /* carré */
}
/* halo doré autour (en dehors de l'image) */
.photo-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;                       /* halo dépasse un peu le cadre */
  border-radius: 50%;
  box-shadow: 0 0 22px 8px rgba(201, 164, 92, 0.55);
  pointer-events: none;
}
/* l'image elle-même */
.photo {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%;
  border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.accueil-texte h2 { font-size: 2em; margin: 0.3em 0; color: #c9a45c; }
.accueil-texte p  { font-size: 1.1em; max-width: 600px; line-height: 1.5; margin: 0; }

/* ================== Prendre rendez-vous / Domaines ================== */
.rendezvous-section { background-color: #f8f9fb; padding: 3em 1em; text-align: center; }
.rendezvous-section h2 { color: #1a1a40; font-size: 2em; margin-bottom: 0.5em; }
.rendezvous-section p  { max-width: 600px; margin: 0 auto 2em; color: #333; font-size: 1.1em; }

.domaines-section { background: #f8f9fb; padding: 4em 1em; text-align: center; }
.domaines-section h2 { font-size: 2.2em; color: #1a1a40; margin-bottom: 1em; }

.domaines-grid-refonte {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em; max-width: 1200px; margin: 0 auto;
}
.domaine-refonte {
  background: white; padding: 2em; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.domaine-refonte:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.domaine-refonte .icone { font-size: 3em; color: #c9a45c; margin-bottom: 0.5em; }
.domaine-refonte h3 { color: #1a1a40; margin-bottom: 0.3em; font-size: 1.4em; }
.domaine-refonte hr  { width: 50px; border: 2px solid #c9a45c; margin: 1em auto; }
.domaine-refonte p   { color: #333; font-size: 1em; line-height: 1.6; }

/* ================== Footer ================== */
.site-footer { background-color: #1a1a40; color: #ffffff; padding: 3em 1em; font-size: 0.95em; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em; max-width: 1200px; margin: 0 auto;
}
.footer-col h3 { color: #c9a45c; font-size: 1.2em; margin-bottom: 0.8em; }
.footer-col p, .footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 0.5em; }
.footer-col a { color: #ffffff; text-decoration: none; transition: color 0.3s ease; }
.footer-col a:hover { color: #c9a45c; }
.footer-bottom { text-align: center; margin-top: 2em; font-size: 0.9em; color: #cccccc; }

/* =============================== BANNIÈRE COOKIES : STYLE =============================== */
.cc-window.cc-floating {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
  max-width: 520px;
  width: 92%;
  border-radius: 12px;
  padding: 18px 20px;
  background-color: #1a1a40 !important;
  color: #ffffff !important;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 9999 !important;
}
.cc-window .cc-message {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  white-space: normal !important;
}
.cc-compliance {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}
.cc-window .cc-btn,
.cc-window .cc-deny {
  display: inline-block !important;
  box-sizing: border-box !important;
  min-width: 140px !important;
  text-align: center !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  background-color: #c9a45c !important;
  color: #1a1a40 !important;
  border: 1px solid #c9a45c !important;
  cursor: pointer;
  transition: background-color .2s ease;
}
.cc-window .cc-btn:hover,
.cc-window .cc-deny:hover { background-color: #a18249 !important; }
.cc-extra-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cc-extra-links a { color: #c9a45c !important; text-decoration: underline; font-size: 0.95em; }
.cc-revoke { display: none !important; }

@media (max-width: 600px) {
  .cc-window.cc-floating {
    right: 12px !important;
    left: 12px !important;
    width: auto;
    max-width: none;
    padding: 16px 14px;
  }
  .cc-window .cc-btn,
  .cc-window .cc-deny {
    min-width: 120px !important;
    font-size: 13px !important;
    padding: 9px 12px !important;
  }
  .cc-extra-links { gap: 10px; margin-top: 10px; }
}

/* =============================== Styles pages légales (ajustés responsive) =============================== */
.policy-body { font-family: 'Bitter', sans-serif; color: #333; margin: 0; padding: 0; }
.policy-container {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 24px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-size: 1em;
  line-height: 1.6;
}
.policy-container h1 { color: #1a1a40; text-align: center; font-size: 1.8em; margin-bottom: 30px; }
.policy-container h2 { color: #1a1a40; font-size: 1.1em; margin-top: 20px; margin-bottom: 15px; }
.policy-container h3 { color: #1a1a40; font-size: 1.1em; margin-top: 20px; margin-bottom: 10px; }
.policy-container p  { color: #666; font-size: 1em; margin-bottom: 20px; }

.legal-body { font-family: 'Bitter', serif; background-color: #f4f4f4; color: #333; margin: 0; padding: 0; }
.legal-container {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  padding: 24px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  font-size: 1.1em;
  line-height: 1.6;
}
.legal-container h1, .legal-container h2, .legal-container h3 { color: #1a1a40; font-weight: bold; }
.legal-container h1 { font-size: 2.2em; margin-bottom: 30px; text-align: center; }
.legal-container h2 { font-size: 1.6em; margin-top: 20px; margin-bottom: 15px; }
.legal-container h3 { font-size: 1.3em; margin-top: 20px; margin-bottom: 10px; }
.legal-container p  { color: #666; font-size: 1.05em; margin-bottom: 20px; }
.contact-info { color: #1a1a40; font-weight: bold; }

/* ================== Media queries globales ================== */
@media (max-width: 768px) {
  main section { margin: 1.5em auto; padding: 1.5em 1.25em; }
}
@media (max-width: 640px) {
  header { padding: 0.6em 0; }
  #accueil h2 { font-size: 1.8em; }
  #accueil p  { font-size: 1em; padding: 0 0.5rem; }
  .main-nav ul, nav ul { gap: 0.75rem; }
}


/* ======================= MENU HAMBURGER RESPONSIVE ======================= */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem .6rem;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1100;
}
.nav-toggle:focus-visible {
  outline: 2px solid #c9a45c;
  outline-offset: 3px;
}
.nav-toggle-box {
  display: inline-block;
  width: 28px;
  height: 22px;
  position: relative;
}
.nav-toggle-line {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transform-origin: center;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle-line:nth-child(1) { top: 0; }
.nav-toggle-line:nth-child(2) { top: 9px; }
.nav-toggle-line:nth-child(3) { top: 18px; }

body.nav-open .nav-toggle-line:nth-child(1) {
  top: 9px; transform: rotate(45deg);
}
body.nav-open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-toggle-line:nth-child(3) {
  top: 9px; transform: rotate(-45deg);
}

/* ======= Styles spécifiques mobile ======= */
@media (max-width: 800px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(80vw, 300px);
    background: #1a1a40;
    padding: 80px 24px 24px;
    box-shadow: -10px 0 30px rgba(0,0,0,.25);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 1090;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .main-nav a {
    display: block;
    font-size: 1.05rem;
    padding: .4rem 0;
  }

  body.nav-open .main-nav {
    transform: translateX(0%);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(1px);
    z-index: 1080;
  }

  .nav-overlay[hidden] {
    display: none !important;
  }

  body.nav-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav, .nav-toggle-line { transition: none !important; }
}

/* ====== Décalage global pour ne pas masquer le contenu sous le header ====== */
:root { --header-h: 100px; } /* valeur par défaut, sera mise à jour par JS */

body {
  /* garde TON body existant, on ajoute juste la ligne ci-dessous */
  padding-top: var(--header-h);
}

/* ====== Corrige le scroll sur les ancres (#accueil, #domaines, etc.) ====== */
/* Tout élément cible d’une ancre (avec un id) s’arrête sous le header */
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Optionnel: si tu as un premier <main> ou <section> collé au haut de page,
   s'assurer qu'il n'a pas de marge négative qui remonterait sous le header */
main > section:first-child {
  margin-top: max(0px, 1.5rem);
}
/* --- CORRECTIF CLICS MENU MOBILE (à coller en fin de style.css) --- */

/* 1) L’overlay est inerte quand le menu est fermé (aucun clic absorbé) */
.nav-overlay { pointer-events: none; }
body.nav-open .nav-overlay { pointer-events: auto; }
.nav-overlay[hidden] { display: none !important; }

/* Place ceci TOUT EN BAS du fichier */
@media (max-width: 800px){
  /* L’overlay ne couvre plus la bande occupée par le panneau */
  body.nav-open .nav-overlay { right: min(80vw, 300px); }
}



