/* ============================================================================
   theme.css — variation C · « Nature et action » · Kin & Masso
   18 septembre 2026 · YannCode Solutions

   Idée : les PHOTOS portent tout. Grandes, pleines, sans voile, couleurs vraies.
   Le CSS s'efface : blanc pur, un serif léger pour les titres, deux accents.

   Palette (contenu/palette.md)
     blanc pur   #FFFFFF   fond, partout
     sous-bois   #7A4A32   titres de section, boutons, puces
     bleu foncé  #2E6E8E   liens
     anthracite  #22262B   texte courant
     crème       #FBF7F2   le seul aplat doux (jamais un beige : blanc réchauffé)

   Aucun vert, aucun beige, aucun sépia, aucun voile global, aucun coin arrondi
   sur une photo (--rayon: 0 partout). Polices système, jamais Google Fonts.
   ponytail: 2 fragments seulement (constellation d'accueil, tuiles massothérapie) ;
   tout le reste tient dans ce fichier.
   ============================================================================ */

:root {
  --fond: #ffffff;
  --texte: #22262b;
  --accent: #7a4a32;            /* sous-bois */
  --accent-2: #2e6e8e;          /* bleu du logo, foncé pour le contraste */
  --pale: #fbf7f2;              /* crème */

  --sousbois-pale: #a9755a;
  --bord: rgba(34, 38, 43, .12);
  --largeur: 72rem;
  --gouttiere: 1.25rem;
  --rayon: 0;                   /* aucune photo aux coins arrondis */
  --pile: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pile-titre: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

/* ---------- Typographie : serif léger pour les titres ---------- */
h1, h2, h3 { font-weight: 400; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--accent); }
h3 { font-weight: 600; }
h4 { font-family: var(--pile); font-size: 1.15rem; }

/* filet court au-dessus des titres de section (décor, aucun texte ajouté) */
.section > .conteneur > h2 { position: relative; padding-top: 1.5rem; margin-bottom: 1.4rem; }
.section > .conteneur > h2::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 3.2rem; height: 2px; background: var(--accent);
}

/* ---------- Rythme : de l'air, pas de filets entre les sections ---------- */
.section { padding: 4rem 0; }
.section + .section { border-top: 0; }
.section a { color: var(--accent-2); }
.section a.bouton { color: #fff; }
.section ul li::before { background: var(--accent); }

/* ---------- Entête : discrète, la photo commence tout de suite ---------- */
.entete { border-bottom: 1px solid var(--bord); }
.entete__logo img { height: 2.9rem; }
.nav__liste a { font-weight: 600; letter-spacing: .02em; }
.nav__liste a:hover, .nav__liste a[aria-current="page"] { color: var(--accent); }

/* ---------- Héros : une photo pleine, sans voile global ----------
   Le scrim est LOCAL : un dégradé sur le bas seulement, là où le texte se pose.
   Le haut de la photo reste intact. */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(26rem, 74vh, 46rem); overflow: hidden;
}
.hero__image { position: absolute; inset: 0; }
.hero__image picture, .hero__image img {
  width: 100%; height: 100%; max-height: none;
  object-fit: cover; object-position: center 40%;
}
.hero:has(.hero__image) .hero__texte {
  position: relative; z-index: 2; color: #fff; padding: 0 0 clamp(2.4rem, 7vh, 5rem);
}
.hero:has(.hero__image)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: 1;
  background: linear-gradient(to top, rgba(18, 20, 22, .72), rgba(18, 20, 22, .34) 45%, rgba(18, 20, 22, 0));
}
.hero h1 { max-width: 20ch; }
.hero:has(.hero__image) h1 { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.hero__texte p {
  font-size: 1.25rem; margin-top: .9rem;
  letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.hero:has(.hero__image) .hero__texte p { text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }

/* Pages sans photo de héros (Contact, Programme 5 km) : aplat crème, pas de trou blanc */
.hero:not(:has(.hero__image)) {
  min-height: 0; background: var(--pale); border-bottom: 1px solid var(--bord);
}
.hero:not(:has(.hero__image)) .hero__texte { padding: 3.2rem 0 3rem; }
.hero:not(:has(.hero__image)) .hero__texte p { color: var(--accent); }

/* ---------- Constellation d'accueil et tuiles photo (fragments) ---------- */
.constellation__grille {
  display: grid; gap: 1.6rem 1.4rem; margin-top: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
.tuile { display: block; text-decoration: none; color: inherit; }
.tuile__cadre { display: block; position: relative; overflow: hidden; background: var(--pale); }
.tuile__cadre img { width: 100%; height: 100%; object-fit: cover; }
.tuile__cadre::after {          /* scrim local, bas de la photo seulement */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background: linear-gradient(to top, rgba(18, 20, 22, .68), rgba(18, 20, 22, 0));
}
.tuile__nom {
  position: absolute; left: 1rem; right: 1rem; bottom: .85rem; z-index: 2;
  font-family: var(--pile-titre); font-size: 1.3rem; line-height: 1.2; color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}
.tuile__mot { display: block; margin-top: .7rem; font-size: 1.1rem; }
.tuile__lire { display: inline-block; margin-top: .4rem; font-weight: 700; color: var(--accent); }
.tuile:hover .tuile__lire { text-decoration: underline; }
.tuile:hover .tuile__cadre img { transform: scale(1.03); }
.tuile__cadre img { transition: transform .35s ease; }

/* aucune photo disponible : aplat crème, jamais une photo reprise ailleurs */
.tuile--sansphoto .tuile__cadre { background: var(--pale); border: 1px solid var(--bord); }
.tuile--sansphoto .tuile__cadre::after { display: none; }
.tuile--sansphoto .tuile__nom { color: var(--accent); text-shadow: none; }
/* pas de photo libre pour ce soin : un bandeau crème, jamais une photo reprise ailleurs */
.tuiles--soins .tuile--sansphoto .tuile__cadre { aspect-ratio: 16 / 5; }

/* Accueil : trois formats différents, dispersés (esprit Nordik) */
.constellation__grille .tuile--1 .tuile__cadre { aspect-ratio: 16 / 10; }
.constellation__grille .tuile--2 .tuile__cadre { aspect-ratio: 3 / 4; }
.constellation__grille .tuile--3 .tuile__cadre { aspect-ratio: 4 / 3; }

@media (min-width: 52rem) {
  .constellation__grille { grid-template-columns: repeat(12, 1fr); gap: 2.6rem 2rem; }
  .constellation__grille .tuile--1 { grid-column: 1 / 8; }
  .constellation__grille .tuile--2 { grid-column: 8 / 13; margin-top: 3.5rem; }
  .constellation__grille .tuile--3 { grid-column: 3 / 9; }
  .tuile__nom { font-size: 1.6rem; left: 1.4rem; right: 1.4rem; bottom: 1.1rem; }
}

/* Massothérapie : grille de photos pleines, 2 colonnes desktop, 1 mobile */
.tuiles--soins { display: grid; gap: 2rem 1.6rem; margin-top: 2rem; grid-template-columns: 1fr; }
.tuiles--soins .tuile__cadre { aspect-ratio: 4 / 3; }
.tuiles--soins .tuile { display: flex; flex-direction: column; }
.tuiles--soins .tuile__lire { margin-top: auto; padding-top: .4rem; }
@media (min-width: 52rem) {
  .tuiles--soins { grid-template-columns: 1fr 1fr; gap: 2.8rem 2rem; }
}

/* ---------- Cartes standard (pages non retravaillées) ---------- */
.carte { background: #fff; border: 1px solid var(--bord); }
.carte img { aspect-ratio: 3 / 2; }
.carte__bouton { color: var(--accent); }

/* ---------- Images de contenu : jamais de coins arrondis ---------- */
figure img { border-radius: 0; }
@media (min-width: 52rem) {
  figure.gauche, figure.droite { width: 26rem; max-width: 46%; }
}

/* ---------- Témoignages : blanc, un filet sous-bois ---------- */
.temoignages { gap: 1.4rem; }
.temoignage {
  background: var(--pale); border-left: 3px solid var(--accent); border-radius: 0;
  padding: 1.2rem 1.4rem;
}
.temoignage cite { color: var(--accent); }

/* ---------- Tarifs, cadres, boutons, formulaire ---------- */
.tarifs { background: #fff; }
.tarifs th { color: var(--accent); border-bottom-color: var(--sousbois-pale); }
.cadre { background: var(--pale); border: 1px solid var(--sousbois-pale); border-left-width: 3px; }
.bouton { background: var(--accent); border-radius: 0; letter-spacing: .01em; }
.bouton--f { background: #1877f2; }
.form__groupe input, .form__groupe select, .form__groupe textarea { border-radius: 0; }
.form__note { border: 1px solid var(--sousbois-pale); border-left-width: 3px; border-radius: 0; font-weight: 600; }

/* ---------- Contact : le formulaire prend la largeur (aucune photo libre) ---------- */
@media (min-width: 52rem) {
  #ecrire .form {
    max-width: none; grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem; align-items: start;
  }
  #ecrire .form__groupe:nth-of-type(5),   /* message */
  #ecrire .form__groupe:nth-of-type(6),   /* comment nous avez-vous trouvés */
  #ecrire .form__consentement, #ecrire .form__note, #ecrire .bouton { grid-column: 1 / -1; }
  #ecrire .bouton { justify-self: start; }
}

/* ---------- Contact : coordonnées sur aplat crème ---------- */
#telephone .coord, #ecrire + * .coord, #contact .coord { background: var(--pale); padding: 1.2rem 1.4rem; }
.coord a { color: var(--accent-2); }

/* ---------- Pied de page ---------- */
.pied { background: var(--pale); border-top: 1px solid var(--bord); }
.pied a { color: var(--accent-2); }

/* ---------- Mobile ---------- */
@media (max-width: 52rem) {
  .section { padding: 2.8rem 0; }
  .hero { min-height: clamp(20rem, 62vh, 30rem); }
  .hero__texte p { font-size: 1.05rem; }
  .tuile__nom { font-size: 1.15rem; }
  .tuile__mot { font-size: 1rem; }
  .constellation__grille { gap: 1.4rem 1rem; }
  .constellation__grille .tuile--1 { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .tuile__cadre img { transition: none; }
}
