@font-face { font-family: "Philosopher"; src: url("/fonts/philosopher.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  /* DA du 15/11/2026 : framboise + trois verts de l'illustration jungle du Haricot */
  --piment: #C8103F;        /* framboise */
  --piment-fonce: #9A0B30;
  --feuille: #0B7A5A;       /* vert émeraude (choix de Caro, 15/11) */
  --feuille-fonce: #08513F; /* émeraude profond */
  --haricot: #82AF54;       /* vert haricot (décor, jamais pour du texte sur blanc) */
  --pousse: #E4F0DC;
  --menthe: #EEF6EA;
  --encre: #14261B;
  --blanc: #FFFFFF;
  --gris: #4C5C52;
  --titre: "Philosopher", Georgia, serif;
  --poids: 700;
  --texte: "Instrument Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--blanc); color: var(--encre); font: 400 1.0625rem/1.65 var(--texte); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--piment); text-underline-offset: 3px; }
a:hover { color: var(--piment-fonce); }
:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); font-weight: var(--poids); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--feuille); margin: 2.2rem 0 .7rem; }
h3, h4 { font-size: 1.25rem; margin: 1.6rem 0 .4rem; }
h4 { font-family: var(--texte); font-weight: 700; }
ul { padding-left: 1.2rem; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saut { position: absolute; left: -999px; background: var(--blanc); padding: .5rem 1rem; z-index: 10; }
.saut:focus { left: 1rem; top: 1rem; }

/* En-tête */
.tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding: .7rem clamp(1rem, 4vw, 3rem); background: var(--blanc); border-bottom: 4px solid var(--piment); position: relative; z-index: 5; }
.marque { display: flex; align-items: center; gap: .6rem; font: var(--poids) 1.4rem/1 var(--titre); color: var(--feuille); text-decoration: none; }
.marque img { width: 50px; height: auto; }
.tete nav > ul { display: flex; flex-wrap: wrap; gap: .1rem .3rem; list-style: none; margin: 0; padding: 0; }
.tete nav li { position: relative; }
.tete nav a { display: block; padding: .4rem .65rem; color: var(--encre); font-weight: 600; text-decoration: none; border-radius: 999px; }
.tete nav a:hover { background: var(--pousse); color: var(--feuille-fonce); }
.tete nav a[aria-current] { background: var(--piment); color: var(--blanc); }
.sous { display: none; position: absolute; top: 100%; left: 0; min-width: 16rem; list-style: none; margin: 0; padding: .4rem; background: var(--blanc); border: 2px solid var(--feuille); border-radius: 14px; }
.tete nav li:hover > .sous, .tete nav li:focus-within > .sous { display: block; }
.sous a { font-weight: 500; }
.cadenas { display: inline-block; width: .85em; height: .7em; margin-right: .45em; background: currentColor; border-radius: 2px; position: relative; top: .05em; }
.cadenas::before { content: ""; position: absolute; left: .17em; top: -.42em; width: .5em; height: .5em; border: .11em solid currentColor; border-bottom: 0; border-radius: .3em .3em 0 0; box-sizing: border-box; }
.cadenas.grand { font-size: 3.2rem; color: var(--piment); margin: 1.5rem 0 .5rem; }

/* Accueil (choix de Caro, 15/11/2026) : fond menthe, titre framboise, cuisinière peinte dans une arche */
.une { background: var(--menthe); color: var(--encre); display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 30rem); justify-content: center; gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 5vw, 4rem); max-width: 96rem; margin: 0 auto; }
.page-accueil main > .une { box-shadow: 0 0 0 100vmax var(--menthe); clip-path: inset(0 -100vmax); }
.surtitre { font: 700 .85rem/1.6 var(--texte); letter-spacing: .14em; text-transform: uppercase; color: var(--feuille); margin: 0 0 .8rem; }
.une h1 { font-size: clamp(3rem, 7.5vw, 6.4rem); line-height: .96; color: var(--piment); margin: 0 0 1.1rem; }
.h1-logo { display: inline-block; width: .9em; height: auto; margin-left: .18em; vertical-align: -.08em; filter: drop-shadow(0 4px 8px rgba(8, 81, 63, .2)); }
.une .salut { margin: 0 0 1.8rem; max-width: 26em; font-size: clamp(1.08rem, 1.6vw, 1.25rem); }
.une-boutons { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0; }
.une .bouton.clair { background: var(--piment); color: var(--blanc); }
.une .bouton.clair:hover { background: var(--piment-fonce); }
.bouton.contour { background: transparent; color: var(--feuille-fonce); box-shadow: inset 0 0 0 2px var(--feuille-fonce); }
.bouton.contour:hover { background: var(--pousse); color: var(--feuille-fonce); }
.une-arche { margin: 0; justify-self: end; width: min(100%, 30rem); }
.une-arche img { width: 100%; aspect-ratio: 1100 / 1369; object-fit: cover; border: 8px solid var(--blanc); border-radius: 50% 50% 26px 26px / 40.2% 40.2% 26px 26px; box-shadow: 0 22px 48px rgba(8, 81, 63, .22); }
.arc-en-ciel { height: 12px; background: linear-gradient(90deg, var(--piment) 0%, #F0703A 18%, #F2C418 36%, var(--haricot) 54%, var(--feuille) 72%, #14A9A4 90%, #1E8FC0 100%); }
.page-accueil .banniere { margin: 0; }
.page-accueil .banniere img { width: 100%; }
.page-accueil .accueil-trois { margin-top: clamp(2.5rem, 5vw, 4rem); }
.bienvenue { max-width: 78rem; margin: clamp(2rem, 5vw, 4rem) auto 0; padding: 0 clamp(1rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.bienvenue-photo { margin: 2.5rem 0 0; position: sticky; top: 1.5rem; }
.bienvenue-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 48% 30%; border: 8px solid var(--blanc); border-radius: 22px; box-shadow: 0 18px 40px rgba(20, 38, 27, .18); transform: rotate(-1.2deg); }
.bienvenue-photo figcaption { display: inline-block; margin: -1.3rem 0 0 1.2rem; position: relative; background: var(--feuille); color: var(--blanc); font-weight: 700; padding: .5rem 1rem; border-radius: 999px; }
.bienvenue .texte { margin: 0; padding-left: 0; padding-right: 0; }
.salut { margin: 0 0 clamp(1.5rem, 4vw, 3.5rem); max-width: 26em; }
.accueil-texte { padding-top: 2.5rem; }

/* Trois portes */
.trois { list-style: none; margin: 2rem auto; padding: 0 clamp(1rem, 4vw, 3rem); max-width: 78rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.trois.quatre { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .trois.quatre { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trois a { display: flex; flex-direction: column; height: 100%; color: var(--encre); text-decoration: none; }
.trois img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; }
.trois strong { font: var(--poids) 1.7rem/1.1 var(--titre); color: var(--piment); margin: .8rem 0 .25rem; }
.trois li:nth-child(even) strong { color: var(--feuille); }
.trois a:hover strong { text-decoration: underline; text-decoration-thickness: 3px; }

/* Bandeaux */
.bandeau { padding: clamp(2.2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem); color: var(--blanc); }
.bandeau h1 { font-size: clamp(2.8rem, 8vw, 6rem); margin: 0 0 .6rem; line-height: 1; }
.bandeau p { max-width: 40em; margin: 0 0 .8rem; }
.bandeau.rouge { background: var(--piment); }
.bandeau.vert { background: var(--feuille); }

/* Boutons */
.bouton { display: inline-block; padding: .75rem 1.5rem; background: var(--piment); color: var(--blanc); border: 0; border-radius: 999px; font: 700 1.0625rem/1.2 var(--texte); text-decoration: none; cursor: pointer; transition: transform .12s ease-out, background-color .12s ease-out; }
.bouton:hover { background: var(--piment-fonce); color: var(--blanc); }
.bouton:active { transform: scale(.97); }
.bouton.clair { background: var(--blanc); color: var(--piment-fonce); }
.bouton.clair:hover { background: var(--pousse); color: var(--feuille-fonce); }
.bouton.clair-vert { background: var(--feuille); }
.bouton.clair-vert:hover { background: var(--feuille-fonce); }
.appel { margin-top: 2rem; }

/* Cuisine */
.cuisine-tete { background: var(--feuille); color: var(--blanc); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem); }
.cuisine-tete h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); line-height: 1; margin: 0 0 1.2rem; }
.cuisine-tete p { max-width: 32em; }
.cuisine-tete p a:not(.bouton) { color: var(--blanc); }
.cuisine-tete img { width: 100%; border: 8px solid var(--blanc); border-radius: 22px; }
.galerie { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.bande-photos { padding: 2rem clamp(1rem, 5vw, 4rem) 1rem; }
.bande-photos h2 { color: var(--feuille); margin: 0 0 1rem; }
.bande-photos ul { list-style: none; margin: 0; padding: 0 0 .8rem; display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.bande-photos li { flex: 0 0 auto; scroll-snap-align: start; }
.bande-photos a { display: block; border-radius: 12px; overflow: hidden; }
.bande-photos img { display: block; width: 12rem; height: 7.5rem; object-fit: cover; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.bande-photos a:hover img, .bande-photos a:focus-visible img { transform: scale(1.06); }
.visionneuse { border: 0; padding: 0; background: transparent; max-width: min(96vw, 960px); overflow: visible; }
.visionneuse::backdrop { background: rgba(8, 81, 63, .88); }
.visionneuse img { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; border-radius: 14px; }
.visionneuse p { color: #fff; text-align: center; margin: .7rem 0 0; }
.visionneuse button { position: absolute; border: 0; border-radius: 50%; width: 2.8rem; height: 2.8rem; background: #fff; color: var(--feuille-fonce); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.visionneuse button:active { transform: scale(.94); }
.v-prec { left: -1rem; top: 40%; } .v-suiv { right: -1rem; top: 40%; } .v-fermer { right: -1rem; top: -1rem; }
@media (max-width: 760px) { .v-prec { left: .4rem; } .v-suiv { right: .4rem; } .v-fermer { right: .4rem; top: .4rem; } }

/* Texte courant */
.texte { max-width: 44rem; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 1.5rem) 3rem; }
.texte h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); color: var(--piment); margin: .4rem 0 1.2rem; }
.texte img { margin: 1.4rem 0; border-radius: 14px; }
.fil { margin: 0; font-weight: 600; }
.date { color: var(--gris); font-size: .95rem; }
.petit { color: var(--gris); font-size: .95rem; margin-top: 2rem; }
blockquote { margin: 1.4rem 0; padding-left: 1rem; border-left: 4px solid var(--piment); }

/* Articles */
.grille-articles { list-style: none; margin: 2.5rem auto; padding: 0 clamp(1rem, 4vw, 3rem); max-width: 78rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2rem clamp(1rem, 2.5vw, 2rem); }
.grille-articles a { display: flex; flex-direction: column; color: var(--encre); text-decoration: none; }
.grille-articles img, .sans-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; background: var(--pousse); display: block; }
.grille-articles strong { font: var(--poids) 1.35rem/1.15 var(--titre); color: var(--feuille); margin: .7rem 0 .3rem; }
.grille-articles a:hover strong { color: var(--piment); }
.encadre img { object-fit: contain; background: var(--blanc); border: 2px solid var(--feuille); padding: .5rem; }

/* Historique */
.historique { max-width: 78rem; margin: 3rem auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.historique > p { max-width: 44rem; }
.fiches { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1.4rem 1rem; }
.fiche details[open] { background: var(--pousse); border-radius: 18px; padding: .7rem; }
.fiche:has(details[open]) { grid-column: 1 / -1; }
.fiche summary, .fiche-lien a { display: block; cursor: pointer; list-style: none; color: var(--encre); text-decoration: none; }
.fiche summary::-webkit-details-marker { display: none; }
.fiche summary img, .fiche-lien img, .fiche .sans-image { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--feuille); background: var(--blanc); }
.fiche:nth-child(3n+2) summary img { border-color: var(--piment); }
.fiche details[open] summary img { width: 6rem; }
.fiche strong { display: block; margin-top: .55rem; text-align: center; font-weight: 600; line-height: 1.25; }
.fiche details[open] strong { text-align: left; font: var(--poids) 1.4rem/1.15 var(--titre); color: var(--feuille-fonce); }
.fiche summary:hover strong, .fiche-lien a:hover strong { color: var(--piment); }
.fiche-lien img { border-color: var(--piment); border-width: 6px; }
.fiche-lien strong { font-weight: 700; color: var(--piment); }
.fiche-texte { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 1.2rem; margin-top: .8rem; }
.fiche-texte p { margin: 0 0 .35rem; }
.affiche { border-radius: 12px; }

/* Contact et coffre */
.contact { max-width: 70rem; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 3rem) 4rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(1.5rem, 5vw, 4rem); }
.contact h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); color: var(--piment); margin: 0 0 1rem; }
.contact img { width: 170px; margin-top: 1.5rem; }
form label { display: block; font-weight: 600; margin: 1rem 0 .25rem; }
input, select, textarea { width: 100%; padding: .65rem .8rem; font: inherit; color: inherit; background: var(--blanc); border: 2px solid var(--gris); border-radius: 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--feuille); outline: 2px solid var(--feuille); outline-offset: 0; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
form .bouton { margin-top: 1.3rem; }
#retour { min-height: 1.6em; font-weight: 600; margin: .8rem 0 0; }
#retour.erreur { color: var(--piment-fonce); }
#retour.bon { color: var(--feuille); }
.piege { position: absolute; left: -9999px; }
.porte { max-width: 28rem; margin: 0 auto; padding: 3rem 1rem 5rem; text-align: center; }
.porte h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--piment); margin: 0 0 .6rem; }
.porte form { text-align: left; }
.liste-coffre { list-style: none; padding: 0; }
.liste-coffre li { padding: .4rem 0; border-bottom: 1px solid var(--pousse); }
.sortir { margin-top: 2.5rem; }
.sortir button { font: inherit; font-weight: 600; background: none; border: 2px solid var(--feuille); color: var(--feuille); padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; }

.galerie-acc { list-style: none; margin: 2rem 0; padding: 0; columns: 2 220px; column-gap: 1rem; }
.galerie-acc li { break-inside: avoid; margin: 0 0 1rem; }
.galerie-acc img { margin: 0; width: 100%; height: auto; border-radius: 14px; }

/* Pied */
.pied { background: var(--feuille-fonce); color: var(--blanc); margin-top: 3rem; padding: 0 clamp(1rem, 4vw, 3rem) 2.5rem; }
.pied-jungle { margin: 0 calc(-1 * clamp(1rem, 4vw, 3rem)) 2.2rem; }
.pied-jungle img { width: 100%; aspect-ratio: 1241 / 308; object-fit: cover; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }

.pied-dedans { max-width: 78rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem 4rem; justify-content: space-between; align-items: start; }
.pied a { color: var(--blanc); }
.pied a:hover { color: var(--pousse); }
.pied p { margin: 0; }
.voix { font: var(--poids) 1.7rem/1.1 var(--titre); max-width: 11em; }
.page-cuisine .pied { margin-top: 0; }
.page-accueil .pied { margin-top: 4rem; }

@media (max-width: 760px) {
  .une, .cuisine-tete, .contact, .bienvenue { grid-template-columns: minmax(0, 1fr); }
  .une-arche { justify-self: center; width: min(100%, 23rem); }
  .page-accueil .banniere img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 22% 40%; }
  .bienvenue-photo { position: static; margin-top: 0; }
  .trois, .trois.quatre { grid-template-columns: minmax(0, 1fr); }
  .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiche-texte { grid-template-columns: minmax(0, 1fr); }
  .tete nav li:hover > .sous, .tete nav li:focus-within > .sous, .sous { display: none; }
  .tete nav { width: 100%; }
  .tete nav a { padding: .3rem .6rem; font-size: 1rem; }
  .deux { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}
.pied .credit-site { flex-basis: 100%; font-size: .9rem; opacity: .85; }
.pied .credit-site a { text-decoration: underline; }

/* Devise et citations de l'accueil : compact, petite étoile framboise */
.devise { color: var(--feuille); }
.citations-titre { margin: 1.2rem 0 .5rem; font-weight: 600; color: var(--feuille-fonce); }
.citations { list-style: none; margin: 0 0 1.5rem; padding: 0; columns: 2 18rem; column-gap: 2rem; font-size: .95rem; line-height: 1.45; }
.citations li { break-inside: avoid; position: relative; padding: 0 0 .55rem 1.3rem; margin: 0; }
.citations li::before { content: "✦"; position: absolute; left: 0; top: .05em; color: var(--piment); font-size: .9em; }
.citations .auteur { display: inline-block; margin-left: .25rem; font-size: .82em; font-style: italic; color: var(--feuille); }
