/* ════════════════════════════════════════════
   PAGES DE CONTENU — calendrier, fonctionnement, à propos
   ════════════════════════════════════════════ */

.content {
  max-width: 80%;
  margin: auto;
  padding: 2.5em 0 4em;
  color: #2c3e50;
  font-family: var(--font);
  line-height: 1.65;
}
.content h2 {
  margin: 0 0 1em;
  padding-top: 1.2em;
  color: #00427f;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -.01em;
}
.content h3 {
  color: #1a2f42;
  font-weight: 700;
}
.content p, .content ul, .content li { margin: 1em 0; }
.content a { color: #00427f; font-weight: 600; }
.content a:hover { color: #718daa; }
.content em { font-weight: 700; font-style: normal; }

.story {
  display: block;
  margin: 3em auto;
  max-width: 100%;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,66,127,.15);
}

/* À propos — sur le principe de l'artifact "La Planche" : portrait +
   texte, galerie photo, citations en pull-quote, dossier en <details>
   natif, ligne de mentions en pied de section. */
.about-lead {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 800px) {
  .about-lead { grid-template-columns: 1.1fr .9fr; align-items: start; }
}
.about-lead .photo {
  aspect-ratio: 4/5;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 45px rgba(0,66,127,.2);
}
.about-lead .text { font-size: 1.08rem; color: #4a5b6e; }
.about-lead .text p { margin: 0 0 1.1rem; }
.about-lead .text p:first-of-type::first-letter {
  font-family: var(--font);
  font-size: 3.4rem;
  font-weight: 800;
  color: #FDC500;
  float: left;
  line-height: .8;
  margin: .1rem .4rem 0 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0;
}
.gallery figure {
  margin: 0;
  aspect-ratio: 16/10;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,66,127,.15);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pull-quote {
  font-family: var(--font);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(.9rem, 2vw, 1.3rem);
  line-height: 1.35;
  color: #1a2f42;
  max-width: 44rem;
  margin: 4rem auto;
  text-align: center;
}
.pull-quote cite {
  display: block;
  font-family: var(--font);
  font-style: normal;
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #FDC500;
  margin-top: 1.1rem;
}

/* Dossier (mentions légales, CGV…) → <details> natif */
.stub-list { border-top: 1px solid #e3e9f0; margin: 2.5rem 0; }
.stub { border-bottom: 1px solid #e3e9f0; }
.stub summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem .25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  color: #1a2f42;
}
.stub summary::-webkit-details-marker { display: none; }
.stub summary .plus { color: #FDC500; font-size: 1.3rem; font-weight: 400; transition: transform .2s; }
.stub[open] summary .plus { transform: rotate(45deg); }
.stub[open] summary { color: #00427f; }
.stub .stub-body { padding: 0 .25rem 1.4rem; color: #4a5b6e; font-size: .93rem; }
.stub .stub-body h4 { color: #1a2f42; font-weight: 700; font-size: .92rem; margin: 1.1rem 0 .3rem; }
.stub .stub-body ul { padding-left: 1.1rem; }
.stub .stub-body li { margin: .3rem 0; }

.credits-strip {
  display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: .5rem 1rem;
  font-family: var(--font);
  font-size: .78rem;
  color: #7a8a9a;
  letter-spacing: .02em;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #e3e9f0;
}
.credits-strip span::after { content: '·'; margin-left: 1rem; color: #c7d3e0; }
.credits-strip span:last-child::after { content: ''; }

/* Offre hebdomadaire — sur le principe de l'artifact "Le Carnet" : la
   photo occupe toute la carte, le nom sur un bandeau bleu, le prix au kg
   en macaron jaune qui déborde du coin. */
.offer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 0;
}
@media (min-width: 720px) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }

/* Le "+1" : 4 pains de la carte, plus le pain de la semaine qui change
   selon le calendrier — le gros signe rend ce cinquième pain évident. */
.offer-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  height: 0;
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  font-size: 5.5rem;
  color: #FDC500;
  -webkit-text-stroke: 3px #00427f;
  text-shadow: 0 2px 0 #00427f;
}
.offer-grid { margin-bottom: 1rem; }
.offer-card {
  position: relative;
  display: block;
  background: #00427f;
  border-radius: 10px;
  overflow: visible;
  text-decoration: none;
  transition: transform .15s;
}
a.offer-card:hover { transform: translateY(-2px); }
.offer-card .ph { aspect-ratio: 1/1; overflow: hidden; border-radius: 10px 10px 0 0; }
.offer-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-card .txt { padding: .8rem .9rem 1rem; }
.offer-card h3 { color: #fff; font-size: 1.05rem; margin: 0; }
.offer-card .sub {
  display: block;
  margin-top: .2em;
  font-family: var(--font);
  font-size: .78rem;
  color: #cddcee;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.offer-card .price-tag {
  position: absolute;
  top: -12px; right: -8px;
  width: 3.2rem; height: 3.2rem;
  border-radius: 50%;
  background: #FDC500;
  color: #1a1400;
  font-family: var(--font);
  font-weight: 700;
  font-size: .74rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  transform: rotate(6deg);
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
}

.recettes-liste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.recettes-liste-card {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  background: #00427f;
  transition: transform .15s;
}
.recettes-liste-card:hover { transform: translateY(-2px); }
.recettes-liste-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.recettes-liste-nom {
  padding: .7rem .9rem;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}

.programme-liste {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.programme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem;
}
.programme-card .programme-titre {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: .4rem;
}
.programme-card p { margin: .3rem 0; color: var(--text2); }
.programme-card .programme-complet { color: #b5460a; font-weight: 700; }

.fiche-recette-photo {
  aspect-ratio: 16/9;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
}
.fiche-recette-sous-titre { color: #5a6b7d; font-size: 1.05rem; margin-top: -.5em; }
.fiche-recette-prix { font-family: var(--font); font-weight: 700; color: #00427f; }
.fiche-recette-description { margin: 1em 0 1.5em; }

.recette-semaine-kicker {
  font-family: var(--font);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #00427f;
  margin: 0 0 .2em;
}
.recette-semaine-histoire p { margin: 0 0 1em; }
.recette-semaine-podcast { margin: 1.5em 0; }
.recette-semaine-galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75em;
  margin: 1.5em 0;
}
.recette-semaine-galerie img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
}

.this-week {
  position: relative;
  display: block;
  margin: 0 0 2em;
  padding: 2.25em 1.75em;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background-image: url('/static/images/mauricettes.jpg');
  background-size: cover;
  background-position: center;
  transition: transform .15s;
}
a.this-week:hover { transform: translateY(-2px); }
.this-week::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,20,40,.82) 0%, rgba(0,20,40,.55) 55%, rgba(0,20,40,.25) 100%);
}
.this-week > * { position: relative; z-index: 1; }
.this-week h2 { color: #fff; padding-top: 0; margin-bottom: .4em; text-shadow: 0 2px 10px rgba(0,0,0,.3); }
.this-week p { color: #f0f0f0; margin: .5em 0; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.this-week strong { color: #fff; }
.this-week .cta { margin-top: .5em; }

.newsletter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1em;
  margin: 1.5em 0;
}
.newsletter-card {
  position: relative;
  display: block;
  min-height: 160px;
  padding: 1.25em 1.5em;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background-image: url('/static/images/meule-redon.jpg');
  background-size: cover;
  background-position: center;
  transition: transform .15s;
}
a.newsletter-card:hover { transform: translateY(-2px); }
.newsletter-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,20,40,.85) 0%, rgba(0,20,40,.6) 60%, rgba(0,20,40,.35) 100%);
}
.newsletter-card > * { position: relative; z-index: 1; }
.newsletter-card .newsletter-titre { color: #fff; font-family: var(--font-display, inherit); font-size: 1.15rem; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.newsletter-card .newsletter-meta { color: #f0f0f0; margin-top: .5em; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

a.cta, span.cta {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--font);
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  background: #00427f;
  padding: .65em 1.3em;
  border-radius: 999px;
  text-decoration: none;
}
a.cta:hover { background: #002d57; color: #fff; }

.subscribe h2 { margin-top: .2em; }

.maps {
  display: block;
  max-width: 100%;
  margin: 1.5em auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,66,127,.15);
  border: 1px solid #e3e9f0;
}
.maps iframe { width: 100%; max-width: 100%; height: 380px; display: block; margin: auto; border: 0; }

/* Fonctionnement — sur le principe de l'artifact "Le Carnet" : photo
   plein cadre en ouverture, étapes numérotées, jours de livraison en
   cartes navy à liseré jaune. */
.fonc-hero {
  position: relative;
  margin: 0 calc(50% - 50vw) 3rem;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  scroll-margin-top: 5rem;
}
.fonc-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0; }
.fonc-hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, #00427f 0%, rgba(0,66,127,.75) 35%, rgba(0,66,127,.1) 70%);
  z-index: 1;
}
.fonc-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 55%;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  width: 100%;
  box-sizing: border-box;
}
.fonc-hero-inner h1 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 .5em;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.fonc-hero-inner p {
  color: #eaf1fb;
  font-size: 1rem;
  max-width: 46ch;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
@media (max-width: 1024px) { .fonc-hero-inner { max-width: 80%; } }
@media (max-width: 640px) { .fonc-hero { min-height: 46vh; } .fonc-hero-inner h1 { font-size: 1.8rem; } }

.procedure {
  counter-reset: step;
  display: grid;
  gap: 1.1em;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 1.5em 0 2em;
}
.procedure-card {
  counter-increment: step;
  background: #00427f;
  border-radius: 10px;
  padding: 1.3em;
  position: relative;
}
.procedure-card::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font);
  font-weight: 800;
  font-size: 2rem;
  color: #FDC500;
  display: block;
  line-height: .8;
  margin-bottom: .5em;
}
.procedure-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: .3em; }
.procedure-card p { margin: 0; color: #cddcee; font-size: .9rem; }
.procedure-card a { color: #fff; text-decoration: underline; }

.delivery-zone { margin-top: 1.5em; }
.day-grid { display: grid; gap: .9em; }
.day-card {
  margin: 0;
  padding: 1em 1.1em;
  background: #00427f;
  border-left: 5px solid #FDC500;
  border-radius: 8px;
}
.day-card h3 {
  margin: 0 0 .4em;
  color: #FDC500;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.day-card p { margin: 0; color: #cddcee; }
.day-card strong { color: #fff; }
.day-card a { color: #fff; }
.delivery-zone a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* Calendrier prévisionnel (3 mois roulants) — frise horizontale, sur le
   principe de l'artifact "La Planche" : plus de longue liste empilée,
   une carte par mois qu'on fait défiler. */
.calendrier-previsionnel { margin-top: .5em; }
.timeline-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.2rem; flex-wrap: wrap; gap: .5rem; }
.timeline-head h2 { padding-top: 0; margin: 0; }
.timeline-head .hint {
  font-family: var(--font);
  font-size: .72rem;
  color: #7a8a9a;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.timeline {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: .5rem .25rem 1.5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.timeline-month {
  flex: 0 0 auto;
  width: min(78vw, 280px);
  scroll-snap-align: start;
}
.timeline-month > h3 {
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: #00427f;
  padding: .45rem .7rem;
  border-radius: 6px;
  margin-bottom: .7rem;
  display: inline-block;
}
.timeline-week {
  border-left: 2px solid #e3e9f0;
  padding: .5rem 0 .5rem .85rem;
  margin-bottom: .15rem;
  position: relative;
}
.timeline-week::before {
  content: '';
  position: absolute;
  left: -5px; top: .7rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e3e9f0;
}
.timeline-week.current { border-left-color: #00427f; }
.timeline-week.current::before { background: #00427f; border-color: #00427f; }
.timeline-week .num { font-family: var(--font); font-size: .7rem; color: #7a8a9a; }
.timeline-week h3 {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  color: #1a2f42;
}
.timeline-week.current h3 { color: #00427f; }
.timeline-week h3 em { font-style: italic; font-weight: 400; color: #7a8a9a; }
.timeline-week h3 a { color: inherit; font-weight: inherit; text-decoration: none; }
.timeline-week h3 a:hover { text-decoration: underline; }

@media (min-width: 1025px) {
  .content { max-width: 55%; text-align: justify; }
  .day-grid { grid-template-columns: 1fr 1fr; }
}

/* Onepage : calendrier + fonctionnement + à propos dans un seul récit
   continu — sous-sections légères séparées par un simple trait plutôt
   que trois pages distinctes. Le hero photo d'ouverture reste celui de
   l'accueil (.accueil-hero, dans accueil.css). */
.section-head { padding-top: .2em; }
.section-head h2 { padding-top: 0; }
hr.divider { border: 0; border-top: 1px solid #e3e9f0; margin: 3.5em 0 0; }
