/* ----- Polices ----- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/newsreader-latin-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/newsreader-latin-standard-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/newsreader-latin-ext-standard-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/newsreader-latin-ext-standard-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----- Kit ----- */
:root {
  --Gris: #ECEEE8;
  --Gris-Light: #F7F8F4;
  --Vert: #2F3D34;
  --Vert-Light: #DCE3D5;
  --Vert-Alpha-Niveau-1: rgba(47, 61, 52, 0.8);
  --Vert-Alpha-Niveau-2: rgba(47, 61, 52, 0.16);
  --Brun: #7B5A41;
  --Blanc: #FFFFFF;
  --Noir: #000000;
  --Transparent: rgba(255, 255, 255, 0);

  --Police: 'Newsreader', Georgia, 'Times New Roman', serif;

  --Texte-Taille: 1.1875rem;
  --Texte-Interligne: 1.65;
  --Texte-Petit-Taille: 0.9375rem;
  --Texte-Grand-Taille: 1.625rem;
  --Titre-Leger-Taille: 1.75rem;
  --Titre-Grand-Taille: 3rem;
  --Titre-Tres-Grand-Taille: 7.5rem;
  --Action-Taille: 1.0625rem;

  --Gouttiere: 30px;
  --Section-Espace: 120px;
  --Gap: 60px;
  --Radius: 12px;
  --Radius-Demi: 6px;
  --Radius-Quart: 4px;
  --Header-Hauteur: 90px;

  --Courbe-Douce: cubic-bezier(0.2, 0.65, 0.25, 1);
}

@media (max-width: 1366px) {
  :root {
    --Titre-Tres-Grand-Taille: 6.25rem;
  }
}

@media (max-width: 1200px) {
  :root {
    --Titre-Tres-Grand-Taille: 5.5rem;
    --Titre-Grand-Taille: 2.625rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --Texte-Grand-Taille: 1.4375rem;
    --Titre-Leger-Taille: 1.5625rem;
    --Titre-Grand-Taille: 2.375rem;
    --Titre-Tres-Grand-Taille: 5rem;
    --Section-Espace: 60px;
    --Gap: 30px;
    --Header-Hauteur: 76px;
  }
}

@media (max-width: 767px) {
  :root {
    --Texte-Taille: 1.0625rem;
    --Texte-Petit-Taille: 0.875rem;
    --Texte-Grand-Taille: 1.25rem;
    --Titre-Leger-Taille: 1.375rem;
    --Titre-Grand-Taille: 2rem;
    --Titre-Tres-Grand-Taille: 3.75rem;
    --Action-Taille: 1rem;
  }
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 30px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--Gris);
  color: var(--Vert);
  font-family: var(--Police);
  font-size: var(--Texte-Taille);
  line-height: var(--Texte-Interligne);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

h1, h2, h3, p, figure, address { margin: 0; }
address { font-style: normal; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--Brun); }
:focus-visible { outline: 2px solid var(--Brun); outline-offset: 3px; border-radius: 2px; }

.sprite { display: none; }
.icone { width: 1.2em; height: 1.2em; fill: currentColor; flex-shrink: 0; }

.evitement {
  position: absolute; left: 15px; top: 15px; z-index: 2000; transform: translateY(-200%);
  padding: 15px 30px; background: var(--Vert); color: var(--Blanc); border-radius: var(--Radius-Demi);
}
.evitement:focus { transform: none; }

/* ----- Typographies ----- */
.texte-petit { font-size: var(--Texte-Petit-Taille); line-height: 1.5; }
.texte-grand { font-size: var(--Texte-Grand-Taille); line-height: 1.45; font-weight: 350; }
.titre-leger { display: block; font-size: var(--Titre-Leger-Taille); line-height: 1.3; font-weight: 400; }
.titre-grand { display: block; font-size: var(--Titre-Grand-Taille); line-height: 1.1; font-weight: 350; letter-spacing: -0.01em; }
.titre-tres-grand { display: block; font-size: var(--Titre-Tres-Grand-Taille); line-height: 0.92; font-weight: 300; letter-spacing: -0.03em; }

/* ----- Apparition des titres ----- */
.js [data-apparition] .mot {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(8px);
  transition: opacity 1.3s var(--Courbe-Douce), transform 1.3s var(--Courbe-Douce), filter 1.3s var(--Courbe-Douce);
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
}
.js [data-apparition].revele .mot { opacity: 1; transform: none; filter: none; }

/* ----- Conteneurs ----- */
.section { padding-left: var(--Gouttiere); padding-right: var(--Gouttiere); }
.boxed { width: 100%; max-width: 1400px; margin: 0 auto; }

/* ----- Boutons ----- */
.boutons { display: flex; flex-wrap: wrap; gap: 15px; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  font-family: var(--Police); font-size: var(--Action-Taille); font-weight: 600; line-height: 1.2;
  text-decoration: none; border-radius: var(--Radius-Demi); border: 1px solid var(--Vert);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.bouton-plein { background: var(--Vert); color: var(--Blanc); }
.bouton-plein:hover { background: var(--Brun); border-color: var(--Brun); color: var(--Blanc); }
.bouton-contour { background: var(--Transparent); color: var(--Vert); }
.bouton-contour:hover { background: var(--Vert-Light); color: var(--Vert); }

.bouton-doctolib { gap: 9px; }
.bouton-doctolib img { width: auto; height: 1.05em; margin-top: 0.12em; }

.lien-icone { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }

/* ----- Header ----- */
.header { position: relative; z-index: 10; background: var(--Gris-Light); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  min-height: var(--Header-Hauteur);
}
.marque { font-size: 1.3125rem; font-weight: 500; text-decoration: none; letter-spacing: -0.005em; white-space: nowrap; }
.marque span { font-style: italic; font-weight: 400; color: var(--Vert-Alpha-Niveau-1); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.bouton) { font-size: var(--Action-Taille); font-weight: 500; text-decoration: none; }
.nav a:not(.bouton):hover { text-decoration: underline; }
.nav .bouton { min-height: 46px; padding: 10px 20px; }

.menu-ouvrir, .menu-fermer {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; margin-right: -12px;
  background: none; border: 0; color: var(--Vert); cursor: pointer; border-radius: var(--Radius-Demi);
}
.menu-ouvrir .icone, .menu-fermer .icone { width: 28px; height: 28px; }

/* ----- Modale - Menu ----- */
.menu {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 var(--Gouttiere);
  border: 0; background: var(--Gris); color: var(--Vert);
}
.menu::backdrop { background: rgba(47, 61, 52, 0.4); }
.menu[open] { animation: apparition .3s ease; }
.menu-inner { display: flex; flex-direction: column; gap: 60px; min-height: 100%; padding-bottom: 60px; }
.menu-haut { display: flex; align-items: center; justify-content: space-between; min-height: var(--Header-Hauteur); }
.menu-haut .menu-fermer { display: inline-flex; }
.menu-liens { display: flex; flex-direction: column; gap: 15px; }
.menu-liens a {
  font-size: var(--Titre-Grand-Taille); line-height: 1.2; font-weight: 350; text-decoration: none;
  padding: 15px 0; border-bottom: 1px solid var(--Vert-Alpha-Niveau-2);
}
.menu .boutons { flex-direction: column; align-items: stretch; }

@keyframes apparition { from { opacity: 0; } to { opacity: 1; } }

/* ----- Hero ----- */
.hero { padding-top: 30px; padding-bottom: var(--Section-Espace); background: var(--Gris-Light); }
.hero-grille { display: flex; align-items: center; gap: var(--Gap); }
.hero-texte { width: calc(50% - var(--Gap) / 2); display: flex; flex-direction: column; gap: 60px; }
.hero-texte h1 { display: flex; flex-direction: column; gap: 30px; }
.hero-sous-titre { font-style: italic; color: var(--Vert-Alpha-Niveau-1); max-width: 22em; }
.hero-arbre { width: calc(50% - var(--Gap) / 2); }
.hero-arbre img { width: 100%; will-change: transform; }

/* ----- Parcours ----- */
.parcours { padding-top: var(--Section-Espace); padding-bottom: var(--Section-Espace); }
.parcours-grille { display: flex; align-items: flex-start; gap: var(--Gap); }
.parcours-titre { margin-bottom: 30px; }
.parcours-tete { width: calc(50% - var(--Gap) / 2); display: flex; flex-direction: column; gap: 24px; }
.parcours-tete .texte-grand { max-width: 18em; }
.parcours-texte { width: calc(50% - var(--Gap) / 2); display: flex; flex-direction: column; gap: 24px; }

/* ----- Consultations ----- */
.consultations { padding-top: var(--Section-Espace); padding-bottom: var(--Section-Espace); background: var(--Vert-Light); }
.consultations-tete { display: flex; flex-direction: column; gap: 24px; max-width: 46em; }
.consultations-grille { display: flex; gap: var(--Gap); margin-top: 60px; }
.public {
  width: calc(50% - var(--Gap) / 2); display: flex; flex-direction: column; gap: 15px;
  padding-top: 30px; border-top: 1px solid var(--Vert-Alpha-Niveau-2);
}
.public h3 { margin-bottom: 3px; }
.public p { max-width: 34em; }

/* ----- Cabinets et rendez-vous ----- */
.rendez-vous { padding-top: var(--Section-Espace); padding-bottom: var(--Section-Espace); }
.contact { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--Gap); }
.contact-texte { width: calc(50% - var(--Gap) / 2); display: flex; flex-direction: column; gap: 24px; }
.contact-texte p { max-width: 30em; }
.contact-actions { width: calc(50% - var(--Gap) / 2); display: flex; flex-direction: column; align-items: flex-end; gap: 15px; }
.contact-actions .boutons { justify-content: flex-end; }
.telephone { text-decoration: none; font-variant-numeric: lining-nums; white-space: nowrap; }

.cabinets { display: flex; gap: var(--Gap); margin-top: 60px; }
.cabinet {
  width: calc(50% - var(--Gap) / 2); display: flex; flex-direction: column;
  padding: 15px; background: var(--Blanc); border-radius: var(--Radius);
}
.cabinet-infos { display: flex; flex-direction: column; gap: 12px; padding: 30px 15px 15px; }
.cabinet-infos .lien-icone { align-self: flex-start; }

.carte {
  height: 300px; border-radius: var(--Radius-Demi); overflow: hidden;
  background: var(--Vert-Light); z-index: 1; isolation: isolate;
}
.carte .leaflet-tile-pane { filter: grayscale(1) sepia(0.2) hue-rotate(45deg) saturate(0.6) brightness(1.04) contrast(0.88); }
.carte .leaflet-container, .carte.leaflet-container { font-family: var(--Police); background: var(--Vert-Light); }
.carte .leaflet-control-zoom { border: 0; border-radius: var(--Radius-Quart); box-shadow: none; overflow: hidden; }
.carte .leaflet-control-zoom a { color: var(--Vert); background: var(--Gris); border-color: var(--Vert-Alpha-Niveau-2); }
.carte .leaflet-control-zoom a:hover { background: var(--Vert-Light); }
.carte .leaflet-control-attribution { font-size: 0.6875rem; background: rgba(236, 238, 232, 0.85); color: var(--Vert); }
.repere { color: var(--Vert); }
.repere svg { width: 40px; height: 40px; fill: currentColor; filter: drop-shadow(0 2px 2px rgba(47, 61, 52, 0.25)); }

/* ----- Pages secondaires ----- */
.page-tete { padding-top: 60px; padding-bottom: 60px; background: var(--Gris-Light); }
.page-tete .boxed { display: flex; flex-direction: column; gap: 15px; }
.page-date { color: var(--Vert-Alpha-Niveau-1); }
.page-contenu { padding-bottom: var(--Section-Espace); }
.legal { display: flex; flex-direction: column; gap: 60px; max-width: 46em; }
.legal-bloc { display: flex; flex-direction: column; gap: 15px; padding-top: 30px; border-top: 1px solid var(--Vert-Alpha-Niveau-2); }
.legal-bloc h2 { margin-bottom: 3px; }
.legal ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.legal li::marker { color: var(--Brun); }
.a-completer { padding: 1px 6px; background: var(--Vert-Light); color: var(--Brun); border-radius: var(--Radius-Quart); font-style: italic; }
.page-404 { padding-top: var(--Section-Espace); padding-bottom: 240px; flex: 1; }
.page-erreur main { display: flex; flex-direction: column; }
.page-404 .boxed { gap: 30px; }
.footer a[aria-current="page"] { text-decoration: none; }

/* ----- Liens discrets ----- */
.hero-sous-titre a, .cabinet-infos h3 a {
  color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--Vert-Alpha-Niveau-2); text-underline-offset: 0.18em;
  transition: color .2s ease, text-decoration-color .2s ease;
}
[data-apparition] a .mot {
  text-decoration-line: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--Vert-Alpha-Niveau-2); text-underline-offset: 0.18em;
}
.hero-sous-titre a:hover, .cabinet-infos h3 a:hover { color: var(--Brun); text-decoration-color: currentColor; }
[data-apparition] a:hover .mot { text-decoration-color: currentColor; }
.nav a[aria-current="page"], .menu-liens a[aria-current="page"] { color: var(--Brun); }

/* ----- Page Le Mans ----- */
.bouton-blanc { background: var(--Blanc); color: var(--Vert); border-color: var(--Blanc); }
.bouton-blanc:hover { background: var(--Vert-Light); border-color: var(--Vert-Light); color: var(--Vert); }
.lm-fil { color: var(--Vert-Alpha-Niveau-1); }
.lm-fil a { text-decoration: none; }
.lm-fil a:hover { text-decoration: underline; }
.lm-hero .hero-texte { gap: 30px; }
.lm-titre { font-size: calc(var(--Titre-Tres-Grand-Taille) * 0.74); }
.lm-intro { max-width: 24em; }
.lm-arbre img { max-width: 600px; margin-left: auto; }
.lm-section { padding-top: var(--Section-Espace); padding-bottom: var(--Section-Espace); }
.lm-faq { padding-top: 0; }
.lm-titre-section { margin-bottom: 30px; }
.lm-grille { display: flex; align-items: flex-start; gap: var(--Gap); }
.lm-texte { width: calc(50% - var(--Gap) / 2); display: flex; flex-direction: column; gap: 24px; }
.lm-texte .lien-icone { align-self: flex-start; }
.lm-adresse { font-size: var(--Titre-Leger-Taille); line-height: 1.35; }
.lm-carte { width: calc(50% - var(--Gap) / 2); }
.lm-carte .carte { height: 440px; }
.lm-blocs { width: calc(50% - var(--Gap) / 2); display: flex; flex-direction: column; gap: 30px; }
.lm-bloc, .lm-question { display: flex; flex-direction: column; gap: 12px; padding-top: 30px; border-top: 1px solid var(--Vert-Alpha-Niveau-2); }
.lm-questions { display: flex; flex-wrap: wrap; gap: 30px var(--Gap); }
.lm-question { width: calc(50% - var(--Gap) / 2); }
.lm-question p, .lm-bloc p { max-width: 34em; }

/* ----- Footer ----- */
.footer { background: var(--Vert); color: var(--Gris); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px 30px;
  padding-top: 30px; padding-bottom: 30px;
}
.footer a:hover { color: var(--Vert-Light); }

/* ----- Responsive ----- */
@media (max-width: 1200px) {
  .nav { gap: 24px; }
  .contact { flex-direction: column; align-items: flex-start; }
  .contact-texte, .contact-actions { width: 100%; }
  .contact-actions { align-items: flex-start; }
  .contact-actions .boutons { justify-content: flex-start; }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-ouvrir { display: inline-flex; }
  .hero { padding-top: 0; }
  .hero-grille { flex-direction: column-reverse; align-items: flex-start; }
  .hero-texte { width: 100%; gap: 30px; }
  .hero-texte h1 { gap: 15px; }
  .hero-arbre { width: 76%; max-width: 560px; align-self: center; }
  .parcours-grille { flex-direction: column; gap: 24px; }
  .parcours-tete, .parcours-texte { width: 100%; }
  .consultations-grille { margin-top: 30px; }
  .cabinets { margin-top: 30px; }
  .carte { height: 260px; }
  .page-tete { padding-top: 30px; padding-bottom: 30px; }
  .legal { gap: 30px; }
  .page-404 { padding-top: 60px; padding-bottom: 120px; }
  .lm-grille { flex-direction: column; align-items: stretch; }
  .lm-texte, .lm-carte, .lm-blocs { width: 100%; }
  .lm-carte .carte { height: 320px; }
  .lm-arbre img { margin: 0 auto; }
}

@media (max-width: 767px) {
  .marque span { display: none; }
  .hero-arbre { width: 92%; }
  .boutons { flex-direction: column; align-items: stretch; }
  .contact-actions .boutons { align-self: stretch; }
  .consultations-grille { flex-direction: column; gap: 30px; }
  .public { width: 100%; }
  .cabinets { flex-direction: column; gap: 15px; }
  .cabinet { width: 100%; }
  .cabinet-infos { padding: 15px 15px 15px; }
  .carte { height: 220px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .lm-question { width: 100%; }
  .lm-carte .carte { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu[open] { animation: none; }
  .bouton { transition: none; }
  .js [data-apparition] .mot { opacity: 1; transform: none; filter: none; transition: none; }
}
