/* ==========================================================================
   cr-nutrition.fr — feuille de style unique
   Mobile-first · breakpoints : 600px (tablette) et 1024px (desktop)
   ========================================================================== */

/* ---------- Polices (self-hostées, sous-ensemble latin, licence OFL) ----- */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-700.woff2") format("woff2");
  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: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/outfit-800.woff2") format("woff2");
  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: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
  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: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500.woff2") format("woff2");
  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: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
  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;
}

/* ---------- Variables ----------------------------------------------------- */

:root {
  --olive-950: #1f2318;
  --olive-900: #262b1e;
  --olive-700: #454d30;
  --olive-600: #57603c;
  --cream: #f4f3eb;
  --ink: #20211c;
  --ink-soft: #45473b;
  --gold: #d9a441;
  --overlay: rgba(30, 34, 22, 0.68);

  --font-display: "Outfit", "Trebuchet MS", sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  /* Largeur maximale de la mise en page. Au-delà, la composition se fige au lieu
     de s'étirer : sans ce plafond, les colonnes photos (des %) continuent de
     grandir alors que leurs max-height restent en px, et object-fit: cover finit
     par couper la tête des portraits sur un grand écran. */
  --maxw: 1440px;
  --header-h: 72px;
  --radius: 16px;
}

/* ---------- Base ----------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--olive-600);
  outline-offset: 3px;
}

.hero :focus-visible,
.services :focus-visible,
.site-header :focus-visible,
.modal :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

section {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75em 1.25em;
  background: var(--olive-950);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

/* Titres display (géométrique bold, comme la maquette) */
.display-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

/* Étiquette de section encadrée, comme sur la maquette */
.section-tag {
  width: fit-content;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1.5px solid currentColor;
  padding: 0.65em 1.5em;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-tag--light {
  color: #fff;
}

/* ---------- Boutons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.6em;
  width: 100%;
  max-width: 320px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--olive-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--olive-700);
}

.btn-outline {
  border-color: var(--olive-600);
  color: var(--olive-700);
  background: transparent;
}

.btn-outline:hover {
  background: var(--olive-600);
  color: #fff;
}

.btn-ghost {
  background: none;
  border: none;
  min-height: 44px;
  color: var(--olive-700);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--olive-950);
}

.btn-lg {
  min-height: 54px;
  font-size: 1.05rem;
  max-width: 360px;
}

/* ---------- Header --------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(31, 35, 24, 0.94);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.header-inner {
  height: var(--header-h);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  min-height: 44px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.15;
}

.brand-role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

@media (min-width: 600px) {
  .brand-name {
    font-size: 1.75rem;
  }

  .brand-role {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
  }
}

@media (min-width: 1024px) {
  .brand-name {
    font-size: 1.9rem;
  }

  .brand-role {
    font-size: 0.86rem;
    letter-spacing: 0.16em;
  }
}

/* Burger (mobile + tablette) */
.nav-toggle {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle-bar {
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Panneau de navigation mobile */
.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(31, 35, 24, 0.97);
  padding: 0.5rem var(--pad) 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.site-header.is-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.5rem 0.25rem;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Séparateurs de la liste déroulante — strictement mobile/tablette : hors de cette
   media query, `li:last-child` l'emporterait sur la bordure complète du bloc desktop
   (les media queries n'ajoutent pas de spécificité). */
@media (max-width: 1023.98px) {
  .site-nav:not(.site-nav--static) a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-nav:not(.site-nav--static) li:last-child a {
    border-bottom: none;
  }
}

/* Nav toujours visible (page mentions légales : un seul lien, pas de burger) */
.site-nav--static {
  position: static;
  background: none;
  padding: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav--static a {
  min-height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  padding: 0.5em 1.2em;
  font-size: 0.78rem;
}

.site-nav--static a:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (min-width: 1024px) {
  :root {
    --header-h: 84px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    background: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 0.9rem;
  }

  /* Liens encadrés, fidèles à la planche 1 */
  .site-nav a {
    min-height: 44px;
    padding: 0.55em 1.5em;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    font-size: 0.82rem;
    transition: background-color 0.2s ease;
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
  }
}

/* ---------- Fonds photo (hero + services) ---------------------------------- */

.section-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) var(--pad) 2.5rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(30, 34, 22, 0.62), rgba(30, 34, 22, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 68rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.2vw + 0.5rem, 5rem);
  line-height: 1.06;
  color: #fff;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.94);
}

/* ---------- À propos --------------------------------------------------------- */

.about {
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

/* L'étiquette est hors du bloc plafonné : on aligne sa gouttière sur celui-ci. */
.about > .section-tag {
  margin-left: max(var(--pad), calc((100% - var(--maxw)) / 2 + var(--pad)));
  margin-right: var(--pad);
}

.about-block + .about-block {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
}

.about-text {
  padding-inline: var(--pad);
}

.about-text .display-title {
  margin-bottom: 1.25rem;
}

.about-lead {
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
}

.about-text p + p {
  margin-top: 1rem;
}

.about-text p {
  color: var(--ink-soft);
  max-width: 62ch;
}

.about-media {
  margin-top: 1.75rem;
}

/* object-position remonté : le visage est dans le tiers supérieur des 4 photos,
   un recadrage centré lui coupe la tête dès que la boîte devient large et plate. */
.about-media img {
  width: 100%;
  height: auto;
  max-height: 58vh;
  object-fit: cover;
  object-position: 50% 22%;
}

.about-media--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .about-block {
    display: grid;
    grid-template-columns: 1fr 42%;
    align-items: center;
    gap: clamp(2rem, 4vw, 4.5rem);
    max-width: var(--maxw);
    margin-inline: auto;
  }

  .about-block--goal {
    grid-template-columns: 1fr 54%;
  }

  .about-media {
    margin-top: 0;
    height: 100%;
  }

  .about-media img {
    height: 100%;
    max-height: 560px;
  }

  .about-media--duo {
    height: auto;
    align-items: stretch;
  }

  .about-media--duo img {
    max-height: 420px;
  }
}

/* ---------- Mes services ------------------------------------------------------ */

.services {
  position: relative;
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.services::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(30, 34, 22, 0.72), rgba(30, 34, 22, 0.78));
}

.services-inner {
  position: relative;
  z-index: 1;
  padding-inline: var(--pad);
  max-width: 1240px;
  margin-inline: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  }
}

.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 30ch;
}

.service-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin-top: auto;
}

.service-card--featured {
  position: relative;
  border: 2.5px solid var(--olive-600);
  padding-top: 2.75rem;
  gap: 0.9rem;
}

.service-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--olive-600);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45em 1.3em;
  border-radius: 999px;
  white-space: nowrap;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 1.75rem;
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
  }

  .service-card {
    padding: 2.5rem 1.75rem;
  }

  .service-card--featured {
    padding-block: 3.25rem;
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  }

  /* La carte vedette est déjà surélevée : son survol conserve le même écart. */
  @media (hover: hover) {
    .service-card--featured:hover {
      transform: translateY(-10px);
    }
  }
}

/* ---------- Contact ------------------------------------------------------------ */

.contact-text {
  padding: clamp(2.75rem, 6vw, 4.5rem) var(--pad) clamp(2.5rem, 5vw, 4.5rem);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
  width: fit-content;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--olive-600);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-link--reviews .stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.9em;
}

.partners {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.partners h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.partners p {
  color: var(--ink-soft);
  padding-block: 0.15rem;
}

.contact-media img {
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: cover;
  object-position: 50% 18%;
}

@media (min-width: 1024px) {
  .contact {
    display: grid;
    grid-template-columns: 1fr 45%;
    align-items: stretch;
    max-width: var(--maxw);
    margin-inline: auto;
  }

  .contact-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .contact-media img {
    height: 100%;
    max-height: 620px;
  }
}

/* ---------- Modales -------------------------------------------------------------- */

.modal {
  border: none;
  padding: 0;
  background: transparent;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
}

.modal::backdrop {
  background: rgba(18, 21, 13, 0.65);
}

.modal-body {
  background: var(--olive-900);
  color: #fff;
  min-height: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Le scroll de la page est verrouillé tant qu'une modale est ouverte */
html:has(dialog[open]) {
  overflow: hidden;
}

/* Même verrou quand le panneau de navigation mobile recouvre la page */
@media (max-width: 1023.98px) {
  html:has(.site-header.is-open) {
    overflow: hidden;
  }
}

.modal-close {
  position: sticky;
  top: 0.25rem;
  z-index: 2;
  margin-left: auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(31, 35, 24, 0.85);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.modal-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  padding: 0.6em 1.4em;
  margin-bottom: 1.75rem;
}

.modal .display-title {
  color: #fff;
  font-weight: 800;
}

.modal-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
}

.modal-sub {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.modal-text {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.modal-cta-label {
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
}

/* Liste à puces "check" */
.check-list li {
  position: relative;
  padding-left: 2.05em;
  padding-block: 0.4em;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.3em;
  height: 1.3em;
  background-color: var(--check-color, var(--cream));
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10.5"/><path d="m7.5 12.5 3 3 6.5-7"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10.5"/><path d="m7.5 12.5 3 3 6.5-7"/></svg>') center / contain no-repeat;
}

.modal > .modal-body > .check-list {
  margin-top: 1.5rem;
  font-size: 1.02rem;
}

/* Formules des suivis */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
  margin-top: 2rem;
}

.plan {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  --check-color: var(--olive-600);
}

/* Durée et prix étaient dans le même h3, différenciés par la seule couleur :
   ils se lisaient comme une chaîne unique. Quatre axes de contraste désormais
   (taille, graisse, casse, couleur), le prix dominant. */
.plan-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-align: center;
  margin-bottom: 0.35rem;
}

.plan-duration {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--olive-700);
}

/* Le filet passe sous le descriptif : au-dessus l'identité de la formule
   (durée, prix, en deux mots), en dessous le détail des prestations. */
.plan-desc {
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--olive-600);
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 2px solid rgba(32, 33, 28, 0.12);
}

.plan--featured {
  border: 2px solid var(--olive-600);
}

.plan .check-list {
  font-size: 0.93rem;
  line-height: 1.5;
}

.plan .check-list strong {
  color: var(--olive-950);
}

.modal-cta-block {
  width: 100%;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* CTA dans les modales : crème sur fond sombre, contraste maximal */
.modal .btn-primary {
  background: var(--cream);
  color: var(--olive-950);
}

.modal .btn-primary:hover {
  background: #fff;
}

@media (min-width: 600px) {
  .modal {
    width: min(92vw, 660px);
    height: auto;
    max-height: min(88vh, 920px);
    margin: auto;
    border-radius: 20px;
  }

  .modal--wide {
    width: min(94vw, 1120px);
  }

  .modal-body {
    border-radius: 20px;
    padding: 1.5rem clamp(1.75rem, 4vw, 3.25rem) 3rem;
    max-height: inherit;
  }

  .modal-close {
    top: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 1.5rem;
  }

  .modal-cta-block {
    margin-top: 2.25rem;
  }
}

/* ---------- Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--olive-950);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 2.75rem var(--pad) 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.site-footer > * {
  max-width: var(--maxw);
}

.disclaimer {
  color: #fff;
  font-weight: 500;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.85);
  text-underline-offset: 4px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Page mentions légales ------------------------------------------------------ */

.legal {
  max-width: 46rem;
  margin-inline: auto;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem)) var(--pad) clamp(3rem, 7vw, 5rem);
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin: 2.25rem 0 0.75rem;
}

.legal p {
  color: var(--ink-soft);
}

.legal p + p {
  margin-top: 0.75rem;
}

.legal a {
  color: var(--olive-700);
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--olive-950);
}

/* ---------- Apparition au scroll ------------------------------------------------------- */

/* L'état masqué n'est appliqué que si main.js a posé .reveal-enabled : sans JS
   (ou en mouvement réduit, où l'observateur n'est pas installé) tout reste visible. */
.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Divers -------------------------------------------------------------------- */

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

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