/* ==========================================================================
   Alice Morieux — Psychologue clinicienne, Annecy
   Feuille de style unique
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables
   -------------------------------------------------------------------------- */

:root {
  /* Couleurs */
  --vert-profond: #4f5a4a;
  --vert-profond-fonce: #3c453a;
  --vert-taupe: #8b9585;
  /* assombri par rapport au vert taupe pour rester lisible sur fond clair (AA) */
  --vert-taupe-fonce: #66715f;
  --vert-clair: #dde2d9;
  --blanc: #ffffff;
  --blanc-casse: #faf8f5;
  --beige-sable: #efe9e1;
  --texte: #2e332c;
  --texte-doux: #5c635a;

  /* Typographie */
  --font-titre: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, serif;
  --font-corps: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Rythme */
  --largeur-max: 1180px;
  --largeur-texte: 68ch;
  --section-y: clamp(2.75rem, 5.5vw, 4.5rem);
  --gouttiere: clamp(1.25rem, 5vw, 2.5rem);

  /* Formes */
  --radius: 12px;
  --radius-lg: 20px;
  --ombre: 0 1px 2px rgba(46, 51, 44, 0.04), 0 8px 24px rgba(46, 51, 44, 0.06);
  --ombre-forte: 0 2px 4px rgba(46, 51, 44, 0.06),
    0 16px 40px rgba(46, 51, 44, 0.1);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & bases
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blanc-casse);
  color: var(--texte);
  font-family: var(--font-corps);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-titre);
  font-weight: 600;
  line-height: 1.15;
  color: var(--vert-profond);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 3.2vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.9vw, 2.6rem);
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.55rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1.15em;
  max-width: var(--largeur-texte);
}

a {
  color: var(--vert-profond);
  text-decoration-color: var(--vert-taupe);
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--vert-taupe-fonce);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  margin: 0 0 1.15em;
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.4em;
}

strong {
  font-weight: 600;
  color: var(--vert-profond);
}

:focus-visible {
  outline: 3px solid var(--vert-taupe);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100px;
  z-index: 200;
  background: var(--vert-profond);
  color: var(--blanc);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0.5rem;
  color: var(--blanc);
}

/* --------------------------------------------------------------------------
   3. Utilitaires de mise en page
   -------------------------------------------------------------------------- */

.conteneur {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.conteneur--etroit {
  max-width: 860px;
}

.conteneur--large {
  max-width: 1340px;
}

.section {
  padding-block: var(--section-y);
}

.section--beige {
  background: var(--beige-sable);
}

.section--blanc {
  background: var(--blanc);
}

.section--vert {
  background: var(--vert-profond);
  color: var(--blanc);
}

.section--vert h2,
.section--vert h3 {
  color: var(--blanc);
}

.section--vert p {
  color: rgba(255, 255, 255, 0.88);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* En-tête de section */
.section-titre {
  margin-bottom: 2rem;
}

.section-titre--centre {
  text-align: center;
}

.section-titre--centre p {
  margin-inline: auto;
}

.surtitre {
  display: block;
  font-family: var(--font-corps);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vert-taupe-fonce);
  margin-bottom: 0.9rem;
}

.section--vert .surtitre {
  color: var(--vert-clair);
}

.chapeau {
  font-size: 1.1rem;
  color: var(--texte-doux);
}

/* Filet décoratif sous les titres */
.filet {
  display: block;
  width: 54px;
  height: 3px;
  background: var(--vert-taupe);
  border-radius: 3px;
  margin: 1.25rem 0 0;
}

.section-titre--centre .filet {
  margin-inline: auto;
}

.section--vert .filet {
  background: var(--vert-clair);
}

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-corps);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--principal {
  background: var(--vert-profond);
  border-color: var(--vert-profond);
  color: var(--blanc);
  box-shadow: var(--ombre);
}

.btn--principal:hover {
  background: var(--vert-profond-fonce);
  border-color: var(--vert-profond-fonce);
  color: var(--blanc);
  box-shadow: var(--ombre-forte);
}

.btn--secondaire {
  background: transparent;
  border-color: var(--vert-taupe);
  color: var(--vert-profond);
}

.btn--secondaire:hover {
  background: var(--vert-profond);
  border-color: var(--vert-profond);
  color: var(--blanc);
}

.btn--clair {
  background: var(--blanc);
  border-color: var(--blanc);
  color: var(--vert-profond);
}

.btn--clair:hover {
  background: var(--vert-clair);
  border-color: var(--vert-clair);
  color: var(--vert-profond-fonce);
}

.btn--contour-clair {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--blanc);
}

.btn--contour-clair:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--blanc);
  color: var(--blanc);
}

.groupe-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.groupe-btn--centre {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   5. En-tête & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* contexte de positionnement pour le panneau de navigation mobile */
  isolation: isolate;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vert-clair);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
  flex-shrink: 0;
}

.logo__nom {
  font-family: var(--font-titre);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--vert-profond);
  letter-spacing: -0.01em;
}

.logo__role {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--vert-taupe-fonce);
  margin-top: 0.22rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__lien {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--texte-doux);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.nav__lien:hover {
  background: var(--vert-clair);
  color: var(--vert-profond);
}

.nav__lien.is-active {
  color: var(--vert-profond);
  font-weight: 600;
  background: var(--vert-clair);
}

.nav__cta {
  margin-left: 0.6rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.92rem;
}

/* Bouton burger */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--vert-clair);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger__barre {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--vert-profond);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.burger[aria-expanded="true"] .burger__barre:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__barre:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__barre:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 1rem var(--gouttiere) 1.75rem;
    background: var(--blanc-casse);
    border-bottom: 1px solid var(--vert-clair);
    box-shadow: var(--ombre-forte);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition),
      visibility var(--transition);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__lien {
    padding: 0.85rem 1rem;
    font-size: 1.02rem;
    border-radius: var(--radius);
  }

  .nav__cta {
    margin: 0.6rem 0 0;
    padding: 0.85rem 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--vert-profond);
  color: var(--blanc);
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 70% 90% at 78% 15%,
      rgba(139, 149, 133, 0.55),
      transparent 60%
    ),
    linear-gradient(160deg, var(--vert-profond) 0%, var(--vert-profond-fonce) 100%);
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__grille {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  color: var(--blanc);
  margin-bottom: 0.35em;
}

.hero__role {
  font-family: var(--font-corps);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vert-clair);
  margin-bottom: 1.5rem;
}

.hero__accroche {
  font-family: var(--font-titre);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 32ch;
  text-align: justify;
}

.hero__portrait {
  position: relative;
  justify-self: center;
  width: min(340px, 100%);
  aspect-ratio: 1;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--ombre-forte);
}

/* Hero simplifié des pages intérieures */
.hero--page {
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
  text-align: center;
}

.hero--page h1 {
  margin-bottom: 0.4em;
}

.hero--page .hero__accroche {
  margin-inline: auto;
  max-width: 46ch;
}

.fil-ariane {
  font-size: 0.85rem;
  color: var(--vert-clair);
  margin-bottom: 1.1rem;
}

.fil-ariane a {
  color: var(--vert-clair);
  text-decoration-color: rgba(221, 226, 217, 0.5);
}

.fil-ariane a:hover {
  color: var(--blanc);
}

@media (max-width: 780px) {
  .hero__grille {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__grille .groupe-btn {
    justify-content: center;
  }

  .hero__accroche {
    margin-inline: auto;
  }

  .hero__portrait {
    order: -1;
    width: min(230px, 70%);
  }
}

/* --------------------------------------------------------------------------
   7. Blocs de contenu
   -------------------------------------------------------------------------- */

/* Bloc à deux colonnes texte + média */
.duo {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.duo--inverse {
  grid-template-columns: 1.15fr 0.85fr;
}

.duo__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--ombre);
}

.duo__media--medaillon {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
}

.duo__media--medaillon img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.duo__media--medaillon::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--vert-taupe);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 860px) {
  .duo,
  .duo--inverse {
    grid-template-columns: 1fr;
  }

  .duo__media {
    order: -1;
  }

  .duo__media--medaillon {
    max-width: 260px;
  }
}

/* Bloc à deux colonnes de texte (titre / contenu) */
.duo-texte {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.duo-texte .section-titre {
  margin-bottom: 0;
  position: sticky;
  top: 110px;
}

.duo-texte p:last-child {
  margin-bottom: 0;
}

.duo-texte p {
  text-align: justify;
}

@media (max-width: 860px) {
  .duo-texte {
    grid-template-columns: 1fr;
  }

  .duo-texte .section-titre {
    position: static;
    margin-bottom: 1.5rem;
  }
}

/* Grille de cartes */
.grille {
  display: grid;
  gap: 1.5rem;
}

.grille--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grille--3 {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.carte {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--blanc);
  border: 1px solid var(--vert-clair);
  border-radius: var(--radius-lg);
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}

.section--blanc .carte {
  background: var(--blanc-casse);
}

.carte:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-forte);
}

.carte p:last-child {
  margin-bottom: 0;
}

.carte__numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.15rem;
  border-radius: 50%;
  background: var(--vert-clair);
  color: var(--vert-profond);
  font-family: var(--font-titre);
  font-size: 1.05rem;
  font-weight: 600;
}

.carte__lien {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--vert-taupe-fonce);
  text-decoration: none;
}

.carte__lien:hover {
  color: var(--vert-profond);
  text-decoration: underline;
}

.carte__lien::after {
  content: " →";
}

/* Motifs de consultation regroupés par domaine de vie */
.domaines {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

/* deux colonnes dès qu'une carte peut accueillir ses étiquettes sans casser */
@media (min-width: 760px) {
  .domaines {
    grid-template-columns: repeat(2, 1fr);
  }
}

.domaine {
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem);
  background: var(--blanc-casse);
  border: 1px solid var(--vert-clair);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.domaine:hover {
  transform: translateY(-3px);
  border-color: var(--vert-taupe);
  box-shadow: var(--ombre);
}

.domaine__icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--vert-clair);
  color: var(--vert-profond);
}

.domaine__icone svg {
  width: 21px;
  height: 21px;
}

.domaine__titre {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  margin-bottom: 1rem;
}

.domaine__liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.domaine__liste li {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--vert-clair);
  border-radius: 999px;
  background: var(--beige-sable);
  color: var(--texte-doux);
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Conclusion : ce que ces difficultés peuvent provoquer */
.consequences {
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--vert-clair);
  text-align: center;
}

.consequences__intro {
  max-width: none;
  margin-bottom: 1.25rem;
  font-family: var(--font-titre);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  color: var(--vert-profond);
}

.consequences__liste {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.consequences__liste li {
  margin: 0;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: var(--vert-clair);
  color: var(--vert-profond);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Diplômes & formations : logos des organismes */
.formations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.formation {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--blanc-casse);
  border: 1px solid var(--vert-clair);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.formation:hover {
  transform: translateY(-3px);
  border-color: var(--vert-taupe);
  box-shadow: var(--ombre);
}

/* cadre neutre : les logos ont des fonds très différents */
.formation__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  margin-bottom: 1.35rem;
  padding: 0.9rem 1.1rem;
  background: var(--blanc);
  border-radius: var(--radius);
}

.formation__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.formation__titre {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  margin-bottom: 0.55rem;
}

.formation__texte {
  margin: 0;
  max-width: 34ch;
  font-size: 0.95rem;
  color: var(--texte-doux);
}

/* Section d'approche détaillée */
.approche {
  scroll-margin-top: 90px;
}

.etiquette {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--vert-clair);
  color: var(--vert-profond);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carte--approche h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.55rem);
  margin: 0 0 0.6em;
}

.carte--approche p {
  text-align: justify;
}

/* cartes de lecture, pas de survol qui laisserait croire à un lien */
.carte--approche:hover {
  transform: none;
  box-shadow: var(--ombre);
}

/* --------------------------------------------------------------------------
   Carrousel des approches
   Sans JavaScript, les cartes restent simplement empilées : la classe
   .is-actif n'est posée qu'une fois le script chargé.
   -------------------------------------------------------------------------- */

.carrousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

/* repli sans JS : les trois cartes l'une sous l'autre */
.carrousel:not(.is-actif) .carrousel__piste {
  display: grid;
  gap: 1.5rem;
}

.carrousel.is-actif {
  padding: 0 clamp(0px, 4vw, 72px);
}

.carrousel__cadre {
  overflow: hidden;
}

/* Le débord vertical laisse respirer les ombres portées, la marge négative
   annule la place qu'il prendrait ; le dégradé adoucit la coupe des cartes
   entrevues sur les côtés. */
.carrousel.is-actif .carrousel__cadre {
  padding: 32px 0;
  margin: -32px 0;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 7%,
    #000 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 7%,
    #000 93%,
    transparent 100%
  );
}

/* Les cartes sont superposées dans une même case de grille : la plus haute
   impose sa hauteur aux autres, elles ont donc toutes le même format. */
.carrousel.is-actif .carrousel__piste {
  display: grid;
  perspective: 1600px;
}

.carrousel.is-actif .carrousel__slide {
  grid-area: 1 / 1;
  justify-self: center;
  width: min(100%, 620px);
  /* état par défaut : hors du champ (cas d'un carrousel de plus de 3 cartes) */
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 520ms cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
}

/* carte affichée */
.carrousel.is-actif .carrousel__slide[data-position="0"] {
  z-index: 3;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* cartes entrevues de part et d'autre, un clic les ramène au centre */
.carrousel.is-actif .carrousel__slide[data-position="-1"],
.carrousel.is-actif .carrousel__slide[data-position="1"] {
  z-index: 2;
  opacity: 0.5;
  pointer-events: auto;
  cursor: pointer;
}

.carrousel.is-actif .carrousel__slide[data-position="-1"] {
  transform: translateX(-72%) scale(0.86) rotateY(14deg);
}

.carrousel.is-actif .carrousel__slide[data-position="1"] {
  transform: translateX(72%) scale(0.86) rotateY(-14deg);
}

/* Flèches */
.carrousel__fleche {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--vert-clair);
  border-radius: 50%;
  background: var(--blanc);
  color: var(--vert-profond);
  box-shadow: var(--ombre);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
}

.carrousel__fleche:hover {
  background: var(--vert-profond);
  border-color: var(--vert-profond);
  color: var(--blanc);
}

.carrousel__fleche svg {
  width: 18px;
  height: 18px;
}

/* sur grand écran, les flèches encadrent la carte */
@media (min-width: 861px) {
  .carrousel__fleche {
    position: absolute;
    top: 0;
    bottom: 84px;
    margin: auto 0;
  }

  .carrousel__fleche--prec {
    left: 0;
  }

  .carrousel__fleche--suiv {
    right: 0;
  }
}

/* Barre de commandes : points + lecture/pause */
.carrousel__barre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.carrousel__points {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.carrousel__point {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--vert-clair);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.carrousel__point:hover {
  background: var(--vert-taupe);
}

.carrousel__point[aria-current="true"] {
  background: var(--vert-profond);
  transform: scale(1.3);
}

.carrousel__lecture {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--vert-clair);
  border-radius: 50%;
  background: transparent;
  color: var(--vert-profond);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition);
}

.carrousel__lecture:hover {
  background: var(--vert-profond);
  border-color: var(--vert-profond);
  color: var(--blanc);
}

.carrousel__lecture svg {
  width: 13px;
  height: 13px;
}

/* sur mobile, les flèches rejoignent la barre de commandes */
@media (max-width: 860px) {
  .carrousel__barre {
    gap: 0.85rem;
  }

  .carrousel__fleche {
    width: 42px;
    height: 42px;
    order: -1;
  }

  .carrousel__fleche--suiv {
    order: 1;
  }

  /* les flèches sont passées sous la carte : plus besoin de marge latérale,
     on rend la largeur au texte et les voisines ne dépassent que d'un liseré */
  .carrousel.is-actif {
    padding: 0;
  }

  .carrousel.is-actif .carrousel__slide {
    width: 88%;
  }

  .carrousel.is-actif .carrousel__slide[data-position="-1"] {
    transform: translateX(-88%) scale(0.9) rotateY(10deg);
  }

  .carrousel.is-actif .carrousel__slide[data-position="1"] {
    transform: translateX(88%) scale(0.9) rotateY(-10deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .carrousel.is-actif .carrousel__slide {
    transition: none;
  }
}

/* Encadré d'information */
.encadre {
  padding: 1.5rem 1.75rem;
  background: var(--blanc);
  border-left: 4px solid var(--vert-taupe);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--ombre);
}

.section--beige .encadre {
  background: var(--blanc-casse);
}

.encadre p:last-child {
  margin-bottom: 0;
}

.encadre--accent {
  border-left-color: var(--vert-profond);
}

.encadre__titre {
  font-family: var(--font-corps);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--vert-profond);
  margin-bottom: 0.45rem;
}

/* Page de texte long (mentions légales) */
.texte-legal__maj {
  font-size: 0.9rem;
  color: var(--texte-doux);
  margin-bottom: 2rem;
}

/* Repère visuel des informations restant à renseigner avant mise en ligne.
   Supprimer la classe (et cette règle) une fois toutes les pages complétées. */
.a-completer {
  background: rgba(214, 158, 46, 0.3);
  box-shadow: inset 0 -2px 0 rgba(166, 116, 20, 0.65);
  border-radius: 3px;
  padding: 0 0.15em;
}

.encadre.a-completer {
  background: rgba(214, 158, 46, 0.14);
  border-left-color: rgb(191, 138, 26);
  box-shadow: var(--ombre);
  padding: 1.5rem 1.75rem;
}

.texte-legal .encadre {
  margin: 1.75rem 0 2rem;
}

.texte-legal h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.5rem);
  margin-top: 2.75rem;
}

.texte-legal > h2:first-child {
  margin-top: 0;
}

.texte-legal h3 {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  margin-top: 1.75rem;
}

/* --------------------------------------------------------------------------
   8. Cabinet & contact
   -------------------------------------------------------------------------- */

.adresse {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.75;
}

.adresse strong {
  display: block;
  font-family: var(--font-titre);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.carte-embed {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--vert-clair);
  border-radius: var(--radius-lg);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.carte-embed {
  display: block;
  text-decoration: none;
  color: inherit;
}

.carte-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Repère du cabinet : la pointe du marqueur vise le centre exact de l'image,
   qui correspond au 5 ter avenue des Trois Fontaines. */
.carte-embed__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.carte-embed__pin svg {
  display: block;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 3px 5px rgba(46, 51, 44, 0.35));
}

.carte-embed__pin path {
  fill: var(--vert-profond);
  stroke: var(--blanc);
  stroke-width: 1.2;
}

.carte-embed__pin circle {
  fill: var(--blanc);
}

.carte-embed__cta {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--blanc);
  color: var(--vert-profond);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--ombre);
  transition: background var(--transition), color var(--transition);
}

.carte-embed__cta::after {
  content: " ↗";
}

.carte-embed:hover .carte-embed__cta,
.carte-embed:focus-visible .carte-embed__cta {
  background: var(--vert-profond);
  color: var(--blanc);
}

.carte-embed__credit {
  max-width: 640px;
  margin: 0.9rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--texte-doux);
}

/* Moyens de contact */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacts > li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  background: var(--blanc);
  border: 1px solid var(--vert-clair);
  border-radius: var(--radius-lg);
  box-shadow: var(--ombre);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.section--beige .contact-item {
  background: var(--blanc-casse);
}

.contact-item:hover {
  transform: translateY(-3px);
  border-color: var(--vert-taupe);
  box-shadow: var(--ombre-forte);
}

.contact-item__icone {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--vert-clair);
  color: var(--vert-profond);
}

.contact-item__icone svg {
  width: 21px;
  height: 21px;
}

.contact-item__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert-taupe-fonce);
  margin-bottom: 0.15rem;
}

.contact-item__valeur {
  display: block;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--vert-profond);
  word-break: break-word;
}

/* Bandeau Doctolib */
.doctolib {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--vert-profond);
  border-radius: var(--radius-lg);
  color: var(--blanc);
}

.doctolib h2,
.doctolib h3 {
  color: var(--blanc);
  margin-bottom: 0.4rem;
}

.doctolib p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .doctolib {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .doctolib p {
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   8 bis. Formulaire de contact
   -------------------------------------------------------------------------- */

/* Panneau vert du formulaire, détaché du pied de page */
.formulaire-panneau {
  padding: clamp(1.75rem, 5vw, 3.25rem);
  background: var(--vert-profond);
  border-radius: var(--radius-lg);
  box-shadow: var(--ombre-forte);
  color: var(--blanc);
}

.formulaire-panneau h2 {
  color: var(--blanc);
}

.formulaire-panneau .filet {
  background: var(--vert-clair);
}

.formulaire-panneau .section-titre {
  margin-bottom: 1.75rem;
}

.formulaire__intro {
  max-width: none;
  margin-bottom: 2.5rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
}

.formulaire {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.champ {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.champ__label {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 600;
  color: var(--blanc);
}

.champ__label span {
  color: var(--vert-clair);
}

.champ__saisie {
  width: 100%;
  padding: 0.6rem 0.1rem 0.85rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0;
  color: var(--blanc);
  font-family: var(--font-corps);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--transition);
}

.champ__saisie::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.champ__saisie:hover {
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

.champ__saisie:focus {
  outline: none;
  border-bottom-color: var(--blanc);
  border-bottom-width: 2px;
  padding-bottom: calc(0.85rem - 1px);
}

/* le focus clavier reste visible sans doubler le contour du navigateur */
.champ__saisie:focus-visible {
  outline: 2px solid var(--vert-clair);
  outline-offset: 4px;
}

.champ__saisie--zone {
  resize: vertical;
  min-height: 8rem;
}

/* champ signalé en erreur par la validation */
.champ__saisie[aria-invalid="true"] {
  border-bottom-color: #ffc9c9;
  border-bottom-width: 2px;
}

.champ__erreur {
  font-size: 0.88rem;
  color: #ffc9c9;
}

.formulaire__envoi {
  width: 100%;
  margin-top: 0.5rem;
  padding-block: 1rem;
  border-radius: var(--radius);
}

/* pendant l'envoi, le bouton reste lisible mais n'accepte plus de clic */
.formulaire__envoi[disabled] {
  opacity: 0.65;
  cursor: progress;
}

/* champ leurre anti-robots : hors écran plutôt que display:none,
   que certains robots savent détecter */
.pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formulaire__note {
  max-width: none;
  margin: 0;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.7);
}

.formulaire__note--succes {
  color: var(--blanc);
  font-weight: 600;
}

.formulaire__note--erreur {
  color: #ffc9c9;
  font-weight: 600;
}

.formulaire__note a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   9. Pied de page
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--vert-profond);
  color: rgba(255, 255, 255, 0.82);
  padding-block: clamp(2.25rem, 4.5vw, 3.25rem) 1.75rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blanc);
  text-decoration: underline;
}

.footer__grille {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1.15fr 0.85fr 1.25fr;
  column-gap: 1.75rem;
  row-gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer__titre {
  font-family: var(--font-corps);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert-clair);
  margin-bottom: 1rem;
  white-space: nowrap;
}

.footer__nom {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  color: var(--blanc);
  margin-bottom: 0.3rem;
}

.footer__liste {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__liste li {
  margin-bottom: 0.55rem;
}

.footer p {
  max-width: none;
}

.footer__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 860px) {
  .footer__grille {
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 1.75rem;
    row-gap: 2.25rem;
  }

  .footer__titre {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .footer__grille {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .footer__bas {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   10. Animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .carte:hover,
  .domaine:hover,
  .formation:hover,
  .contact-item:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   11. Impression
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .burger,
  .groupe-btn,
  .carte-embed,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .hero,
  .section--vert,
  .site-footer,
  .doctolib {
    background: #fff !important;
    color: #000 !important;
  }

  .hero h1,
  .hero__role,
  .hero__accroche,
  .section--vert h2,
  .section--vert p {
    color: #000 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
