/* ==========================================================================
   Coquelicoop — maquette de site
   Polices : Poppins (titres, look plus moderne) + Source Sans Pro (texte courant)
   Couleurs officielles (charte) : blanc #FFFFFF, noir #000000,
   vert foncé #282819, rouge #EB6556.
   Les teintes "--cream" et "--olive" ci-dessous sont des dérivés (non
   présents dans la charte) ajoutés pour retrouver l'ambiance du dépliant
   existant — à valider avec Romane avant usage définitif.

   v6 : passe "plus moderne" (inspirée de babl-market.be) — typographie des
   titres remplacée (Leafy → Poppins), ombres et micro-interactions adoucies.
   Contenu et structure des pages inchangés.
   ========================================================================== */

@font-face {
  font-family: "Leafy";
  src: url("../fonts/Leafy.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/SourceSansPro-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  /* Charte officielle */
  --white: #FFFFFF;
  --black: #14140d;
  --green-dark: #282819;
  --red: #EB6556;

  /* Dérivés (à valider) pour retrouver l'ambiance du dépliant */
  --cream: #F5F1E3;
  --olive: #8C9552;
  --olive-dark: #6f7842;
  --green-tint: #e9e7da;

  --radius: 14px;
  --max-width: 1200px;
  --shadow: 0 8px 28px rgba(20, 20, 13, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: "Poppins", "Source Sans Pro", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.8px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--green-dark); }
h3 { font-size: 1.25rem; color: var(--green-dark); font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.tag {
  display: inline-block;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--red);
  margin-bottom: 0.6em;
}

/* ---------- Logo ---------- */
.logo-img {
  display: block;
  height: 88px;
  width: auto;
}
.footer-logo-img {
  display: block;
  height: 68px;
  width: auto;
}

/* ---------- Espace réservé image (en attendant les fichiers) ---------- */
.photo-placeholder {
  background: repeating-linear-gradient(135deg, var(--green-tint), var(--green-tint) 10px, #fff 10px, #fff 20px);
  border: 2px dashed var(--olive);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--olive-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 20px;
  min-height: 220px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 700;
  padding: 0.75em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #d8503f; box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-outline-dark { background: transparent; border-color: var(--green-dark); color: var(--green-dark); }
.btn-outline-dark:hover { background: var(--green-tint); }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  color: var(--black);
  border-bottom: 1px solid rgba(40,40,25,0.1);
}
.header-top {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 6px 24px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}
.header-top .social-row a {
  width: 36px; height: 36px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  color: var(--white);
}
.header-top .social-row a[aria-label="Facebook"] { background: #1877F2; }
.header-top .social-row a[aria-label="Instagram"] { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); }
.header-top .social-row a:hover { opacity: 0.85; background: inherit; }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}
.logo {
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}
nav.main-nav a {
  color: var(--black);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
nav.main-nav a.active { color: var(--red); }
nav.main-nav a:hover { color: var(--red); text-decoration: none; }
.nav-cta { flex-shrink: 0; }

#devenir-membre, #comment-ca-marche { scroll-margin-top: 180px; }

#nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: var(--black);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--green-dark) 0%, #33341f 100%);
  color: var(--white);
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero .lede-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 1.4em;
}
.hero h1 { color: var(--white); text-align: center; max-width: 900px; margin: 0 auto 0.6em; }
.hero .tag { display: block; text-align: center; }
.hero .lede {
  font-size: 1.12rem;
  color: #ece9d8;
}
.hero .lede strong { color: var(--white); }
.hero-photo-full {
  margin-top: 46px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo-full img { width: 100%; height: auto; display: block; }
.hero-photo-full.photo-placeholder { min-height: 320px; }

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.photo-frame:hover img { transform: scale(1.04); }

/* ---------- Coulisses / vidéo ---------- */
.coulisses {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.coulisses .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.2em; }
.coulisses-photo .photo-frame { max-width: 640px; margin: 0 auto 28px; }
.media-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.4em;
}
.media-links a {
  background: var(--white);
  border: 2px solid var(--olive);
  border-radius: 999px;
  padding: 0.6em 1.4em;
  font-weight: 700;
  color: var(--green-dark);
}
.media-links a:hover { background: var(--olive); color: var(--white); text-decoration: none; }

/* ---------- Sections generic ---------- */
section { padding: 68px 0; }
.section-cream { background: var(--cream); }
.section-olive { background: var(--olive); color: var(--white); }
.section-olive h2 { color: var(--white); }
.section-green { background: var(--green-dark); color: var(--white); }
.section-green h2 { color: var(--white); }

.section-head { max-width: 700px; margin-bottom: 2.4em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,20,13,0.12); }
.card.olive-outline { border: 2px solid var(--olive); box-shadow: none; }
.card.olive-outline:hover { box-shadow: none; }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.callout {
  border: 2px dashed var(--red);
  border-radius: var(--radius);
  padding: 26px 30px;
  background: var(--white);
  color: var(--black);
}

.quote-card {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quote-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,20,13,0.12); }
.quote-card p.quote { font-style: italic; font-size: 1.05rem; }
.quote-card .who { font-weight: 700; color: var(--green-dark); font-style: normal; }

table.hours { width: 100%; border-collapse: collapse; }
table.hours td { padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,0.25); }
table.hours.dark td { border-bottom: 1px solid var(--green-tint); }
table.hours td:first-child { font-weight: 700; }
table.hours td:last-child { text-align: right; }

/* ---------- FAQ accordion ---------- */
.faq-group { margin-bottom: 2.6em; }
.faq-group h3 { margin-bottom: 0.9em; font-size: 1.7rem; }
details.faq-item {
  background: var(--cream);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 10px;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--red);
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: "–"; }
details.faq-item .a { margin-top: 12px; }
.faq-note {
  background: var(--white);
  border-left: 4px solid var(--red);
  padding: 12px 18px;
  font-size: 0.92rem;
  margin-top: 10px;
}

/* ---------- Categories (produits) ---------- */
.cat {
  background: var(--cream);
  color: var(--black);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.cat .emoji { font-size: 2rem; margin-bottom: 10px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--green-dark);
  color: #d9d6c4;
  padding: 56px 0 30px;
}
footer.site-footer h3 { color: var(--white); font-size: 1.05rem; }
footer.site-footer a { color: #d9d6c4; }
footer.site-footer a:hover { color: var(--red); }
.footer-cta {
  text-align: center;
  background: var(--olive);
  border-radius: var(--radius);
  padding: 36px 30px;
  margin-bottom: 40px;
}
.footer-cta h2 { color: var(--white); margin-bottom: 0.7em; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 40px;
  margin-bottom: 40px;
}
.footer-logo { margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}
.social-row a:hover { background: var(--red); border-color: var(--red); }

.draft-banner {
  background: #fff7e6;
  color: #6b4b00;
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-bottom: 1px solid #f0d98c;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .lede-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1360px) {
  /* Avec le logo agrandi + 8 liens + le bouton CTA, la nav a besoin d'environ
     1270px pour tenir sur une seule ligne sans se déformer : on bascule sur
     le menu hamburger dès que la fenêtre est plus étroite que ça, avec une
     marge de sécurité, plutôt que de laisser le logo/nav s'écraser. */
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(40,40,25,0.12);
    box-shadow: var(--shadow);
  }
  #nav-toggle:checked ~ nav.main-nav { display: flex; }
  .nav-toggle-label { display: block; }
  .nav-wrap { position: relative; flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

.nowrap-desktop { white-space: nowrap; }
@media (max-width: 680px) { .nowrap-desktop { white-space: normal; } }

/* ---------- Albums photos ---------- */
details.album {
  background: var(--cream);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}
details.album summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px;
}
details.album summary::-webkit-details-marker { display: none; }
.album-info h2 { font-size: 1.7rem; margin-bottom: 0.3em; }
.album-count { color: var(--olive-dark); font-weight: 600; margin-bottom: 0.9em; }
.album-toggle {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
}
details.album summary:hover .album-toggle { text-decoration: underline; }
.album .when-open { display: none; }
details.album[open] .when-open { display: inline; }
details.album[open] .when-closed { display: none; }
.album-grid { padding: 0 22px 26px; }
.album-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--olive);
  border-radius: var(--radius);
  color: var(--olive-dark);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.5);
}
.album-empty { padding: 0 22px 26px; margin: 0; color: var(--olive-dark); }
@media (max-width: 680px) {
  details.album summary { grid-template-columns: 1fr; gap: 16px; }
}

/* Albums : photos à leur proportion naturelle (portrait et paysage mélangés) */
.album-masonry { padding: 0 22px 26px; column-count: 3; column-gap: 20px; }
.album-masonry .photo-frame { break-inside: avoid; margin-bottom: 20px; }
.album-masonry .photo-frame img { height: auto; }
@media (max-width: 900px) { .album-masonry { column-count: 2; } }
@media (max-width: 520px) { .album-masonry { column-count: 1; } }
