/* Chenal Nutrition — essai « Nourish » : pierre, vert feuille, une seule couleur (la grenade) pour l'action */

/* Polices hébergées sur le site (SIL Open Font License) : Petrona (titres) et Jost (texte), variables, jeu latin */
@font-face {
  font-family: "Petrona";
  src: url("fonts/petrona-variable-latin.woff2") format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-variable-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --pierre: #ece8e1;
  --pierre-carte: #e4dfd6;
  --blanc: #ffffff;
  --feuille: #24312d;
  --encre: #24312d;
  --gris: #5c6662;
  --trait: rgba(36, 49, 45, 0.16);
  --clair: #ede9e2;
  --clair-doux: rgba(237, 233, 226, 0.72);
  --trait-clair: rgba(237, 233, 226, 0.2);
  --grenade: #981d31;
  --grenade-fonce: #7a1427;
  --serif: "Petrona", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --rayon: clamp(20px, 2.6vw, 36px);
  --marge: clamp(10px, 1.6vw, 22px);
  --pad: clamp(28px, 6vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pierre);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
/* <picture> transparent pour la mise en page ; ses <source> ne doivent pas devenir des cases de grille */
picture { display: contents; }
picture > source { display: none; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
section[id] { scroll-margin-top: 16px; }
:focus-visible { outline: 2px solid var(--grenade); outline-offset: 3px; }

.evitement { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 18px; border-radius: 999px; background: var(--feuille); color: var(--clair); }
.evitement:focus { top: 12px; }

.sur-titre { margin-bottom: 18px; font-size: 15px; font-weight: 500; color: var(--gris); }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px;
  border: 1px solid currentColor; border-radius: 999px;
  font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.bouton-plein { background: var(--grenade); border-color: var(--grenade); color: #fff; }
.bouton-plein:hover { background: var(--grenade-fonce); border-color: var(--grenade-fonce); }
.bouton-trait { background: transparent; color: var(--encre); }
.bouton-trait:hover { background: var(--encre); border-color: var(--encre); color: var(--blanc); }

/* En-tête */
.entete {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px calc(var(--marge) + clamp(16px, 2.4vw, 40px)) 16px;
}
.nav-gauche, .nav-droite { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-droite { justify-content: flex-end; }
.nav-gauche a, .nav-droite a:not(.bouton) { font-size: 16px; text-decoration: none; }
.nav-gauche a:hover, .nav-droite a:not(.bouton):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; text-decoration: none; }
.logo-sur { margin-bottom: 5px; padding-left: .34em; font: 500 11px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; }
.logo-nom { font: 300 32px/1 var(--serif); letter-spacing: -0.01em; }
.menu-bouton { display: none; }

/* Panneaux arrondis */
.panneau { position: relative; margin: 0 var(--marge); border-radius: var(--rayon); overflow: hidden; }
.panneau-blanc { background: var(--blanc); }
.panneau-sombre { background: var(--feuille); color: var(--clair); }
.panneau-sombre .sur-titre { color: var(--clair-doux); }

/* Accueil */
.hero { display: flex; justify-content: flex-end; align-items: center; min-height: min(80vh, 780px); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero-texte { position: relative; width: min(56%, 720px); padding: var(--pad) var(--pad) var(--pad) 0; }
.hero h1 { margin-bottom: 28px; font-size: clamp(3rem, 5.6vw, 5.6rem); line-height: 1.02; }
/* le sur-titre fait partie du h1 (« Nutritionniste à Lausanne ») mais garde l'allure des autres sur-titres */
.hero h1 .sur-titre { display: block; font-family: var(--sans); line-height: 1.6; letter-spacing: 0; }
.hero h1 .titre { display: block; }
.chapeau { max-width: 30em; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--gris); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Approche */
.approche {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px);
  padding: clamp(80px, 11vw, 170px) calc(var(--marge) + var(--pad));
}
.approche h2 { font-size: clamp(2.4rem, 4.2vw, 4.2rem); }
.approche-texte { padding-top: 38px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.valeurs { margin-top: 2em; padding-top: 1.4em; border-top: 1px solid var(--trait); font: 300 clamp(1.3rem, 1.9vw, 1.65rem)/1.35 var(--serif); }

/* Premier rendez-vous */
.rendez-vous { padding: clamp(64px, 8vw, 120px) var(--pad); }
.rdv-tete { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.rdv-tete h2 { margin-bottom: 24px; font-size: clamp(2.3rem, 4vw, 3.9rem); }
.rdv-tete p:last-child { color: var(--clair-doux); }
.rdv-cartes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); max-width: 1180px; margin: 0 auto; }
.carte { margin: 0; border-radius: calc(var(--rayon) * 0.8); overflow: hidden; }
.carte-photo { display: grid; place-items: center; background: var(--blanc); }
.carte-photo img { width: 86%; }
.carte-texte { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(32px, 4vw, 56px); background: var(--pierre); color: var(--encre); }
.carte-texte h3 { margin-bottom: 28px; font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.etapes { width: 100%; margin: 0 0 28px; }
.etapes div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--trait); }
.etapes div:last-child { border-bottom: 1px solid var(--trait); }
.etapes dt { font: 400 1.3rem/1.3 var(--serif); }
.etapes dd { margin: 0; color: var(--gris); }
.lieu { margin-bottom: 28px; color: var(--gris); }
.carte-texte .bouton { margin-top: auto; }

/* Suivis */
.suivis { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; margin-top: clamp(14px, 1.6vw, 24px); }
.suivis-texte { padding: clamp(64px, 8vw, 120px) 0 clamp(64px, 8vw, 120px) var(--pad); }
.suivis h2 { max-width: 13em; margin-bottom: 20px; font-size: clamp(2.3rem, 4vw, 3.9rem); }
.suivis-intro { margin-bottom: 40px; color: var(--gris); }
.accordeon { border-top: 1px solid var(--trait); }
.accordeon details { border-bottom: 1px solid var(--trait); }
.accordeon summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 300 clamp(1.45rem, 2vw, 1.9rem)/1.2 var(--serif);
}
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: linear-gradient(currentColor, currentColor) center / 16px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 16px no-repeat;
  transition: transform .3s;
}
.accordeon details[open] summary::after { transform: rotate(45deg); }
.details-corps { max-width: 34em; padding: 0 0 26px; color: var(--gris); }
.details-corps p { margin-bottom: 12px; }
.details-corps a { color: var(--grenade); font-weight: 500; text-underline-offset: 5px; }
/* photo retournée : les graines entrent par le bord droit du panneau */
.suivis-photo { align-self: stretch; justify-self: end; width: auto; height: 100%; object-fit: cover; object-position: left center; transform: scaleX(-1); }

/* Témoignage */
.temoignage { max-width: 1040px; margin: 0 auto; padding: clamp(90px, 12vw, 180px) var(--pad); text-align: center; }
.temoignage figure { margin: 0; }
.temoignage blockquote { margin: 0 0 32px; font: 300 clamp(1.7rem, 3.1vw, 2.75rem)/1.28 var(--serif); letter-spacing: -0.005em; }
.temoignage figcaption { font-size: 16px; color: var(--gris); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 100px); padding: clamp(64px, 8vw, 120px) var(--pad); }
.contact h2 { margin-bottom: 24px; font-size: clamp(2.3rem, 4vw, 3.9rem); }
.contact-infos > p:not(.sur-titre) { color: var(--gris); }
.coordonnees { margin: 36px 0 0; }
.coordonnees div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--trait); }
.coordonnees dt { color: var(--gris); }
.coordonnees dd { margin: 0; }
.coordonnees a { text-decoration: none; }
.coordonnees a:hover { text-decoration: underline; text-underline-offset: 5px; }
.formulaire { display: grid; gap: 18px; align-content: start; padding: clamp(24px, 3.4vw, 48px); border-radius: calc(var(--rayon) * 0.8); background: var(--pierre); }
.champs-paire { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.formulaire label { display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.facultatif { font-weight: 400; color: var(--gris); }
.formulaire input, .formulaire select, .formulaire textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid transparent; border-radius: 14px; background: var(--blanc);
  color: var(--encre); font: 400 17px/1.4 var(--sans);
}
.formulaire select { appearance: none; padding-right: 44px; background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2324312d' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 18px center / 12px no-repeat; }
.formulaire textarea { resize: vertical; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: none; border-color: var(--encre); }
.formulaire .bouton { justify-self: start; margin-top: 6px; }
.note { margin: 0; font-size: 14px; color: var(--gris); }

/* Pied de page */
.pied {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 40px;
  margin-top: clamp(14px, 1.6vw, 24px); margin-bottom: var(--marge);
  padding: clamp(56px, 7vw, 96px) var(--pad) 28px;
}
.pied h2 { margin-bottom: 14px; font: 500 15px/1.3 var(--sans); color: var(--clair-doux); }
.pied p { margin: 0; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pied-droite { text-align: right; }
.pied-centre { display: grid; justify-items: center; gap: 22px; text-align: center; }
.pied-centre p { max-width: 14em; font: 300 1.5rem/1.3 var(--serif); }
.logo-clair .logo-nom { font-size: 40px; }
.pied-bas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(40px, 6vw, 72px) !important; padding-top: 22px; border-top: 1px solid var(--trait-clair); font-size: 14px; color: var(--clair-doux); }

/* Page introuvable (404) */
.entete-simple { display: flex; justify-content: center; }
.introuvable { max-width: 1100px; margin: 0 auto var(--marge); padding: clamp(64px, 9vw, 140px) var(--pad); }
.introuvable h1 { max-width: 12em; margin-bottom: 28px; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.introuvable > p:not(.sur-titre) { max-width: 32em; color: var(--gris); }

/* Mentions légales */
.mentions { max-width: 900px; margin: 0 auto var(--marge); padding: clamp(56px, 8vw, 120px) var(--pad); }
.mentions h1 { margin-bottom: 12px; font-size: clamp(2.6rem, 5vw, 4.4rem); }
.mentions h2 { margin: 2.2em 0 .6em; font: 400 clamp(1.4rem, 2vw, 1.7rem)/1.2 var(--serif); }
.mentions > p:not(.sur-titre) { max-width: 40em; color: var(--gris); }
.mentions a { color: var(--encre); text-underline-offset: 4px; }
.mentions .actions { margin-top: 48px; }

/* Bouton rond flottant */
.rdv-flottant {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 30;
  display: grid; place-items: center; width: 104px; height: 104px; padding: 12px;
  border-radius: 50%; background: var(--grenade); color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.55);
  font: 500 15px/1.15 var(--sans); text-align: center; text-decoration: none;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s, transform .35s, background-color .25s;
}
.rdv-flottant.visible { opacity: 1; transform: none; pointer-events: auto; }
.rdv-flottant:hover { background: var(--grenade-fonce); }

/* Tablette et mobile */
@media (max-width: 1080px) {
  .nav-gauche a:nth-child(2) { display: none; }
  .etapes div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .entete { grid-template-columns: 1fr auto; padding: 14px calc(var(--marge) + 10px); }
  .entete-simple { justify-content: flex-start; }
  .introuvable, .mentions { margin-inline: var(--marge); padding: 56px 26px; }
  .nav-gauche, .nav-droite { display: none; }
  .logo { align-items: flex-start; }
  .logo-sur { padding-left: 0; }
  .logo-nom { font-size: 28px; }
  .menu-bouton {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
    border: 1px solid var(--encre); border-radius: 999px; background: transparent; color: var(--encre);
    font: 500 15px/1 var(--sans); cursor: pointer;
  }
  .menu-ouvert .menu-bouton { background: var(--encre); color: var(--blanc); }
  .menu-mobile {
    position: fixed; inset: 82px var(--marge) auto; z-index: 40;
    display: grid; gap: 28px; padding: 28px 28px 32px;
    border-radius: var(--rayon); background: var(--feuille); color: var(--clair);
    box-shadow: 0 24px 60px rgba(20, 28, 25, 0.25);
  }
  .menu-mobile[hidden] { display: none; }
  .menu-mobile nav { display: grid; }
  .menu-mobile nav a { padding: 12px 0; border-bottom: 1px solid var(--trait-clair); font: 300 1.7rem/1.2 var(--serif); text-decoration: none; }
  .menu-mobile .bouton { justify-self: start; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-photo { position: static; order: 2; height: 300px; object-position: left top; }
  .hero-texte { width: auto; padding: 44px 26px 36px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .approche h2, .rdv-tete h2, .suivis h2, .contact h2 { font-size: clamp(2rem, 8.6vw, 2.6rem); }

  .approche { grid-template-columns: 1fr; gap: 8px; padding: 80px calc(var(--marge) + 16px); }
  .approche-texte { padding-top: 16px; }

  .rendez-vous { padding: 64px 22px 22px; }
  .rdv-tete { text-align: left; }
  .rdv-cartes { grid-template-columns: 1fr; }
  .carte-photo img { width: 80%; }

  .suivis { grid-template-columns: 1fr; }
  .suivis-texte { padding: 64px 26px 24px; }
  .suivis-photo { display: none; }

  .temoignage { padding: 90px 26px; text-align: left; }

  .contact { grid-template-columns: 1fr; padding: 64px 22px 22px; }
  .contact-infos { padding: 0 4px; }
  .champs-paire { grid-template-columns: 1fr; }
  .coordonnees div { grid-template-columns: 1fr; gap: 0; }

  .pied { grid-template-columns: 1fr; gap: 36px; padding: 56px 26px 24px; }
  .pied-centre { order: -1; justify-items: start; text-align: left; }
  .logo-clair { align-items: flex-start; }
  .pied-droite { text-align: left; }
  .pied-bas { margin-top: 12px !important; }

  .rdv-flottant { width: 88px; height: 88px; padding: 4px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
