@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

/* ==========================================================================
   LE LIEN DU BIEN — Feuille de style principale
   Charte graphique officielle (voir README) :
     • Titres  : Quicksand (arrondie, chaleureuse)
     • Texte   : Nunito (lisible, formes douces)
     • Couleurs, coins arrondis et ombres douces définis ci-dessous.
   Modifie les variables :root pour changer l'apparence partout.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------------
     PALETTE OFFICIELLE « Le lien du bien »
     --------------------------------------------------------------------- */
  --taupe:        #7D5351;   /* Marron Taupe — couleur principale : titres, texte, bordures */
  --taupe-fonce:  #5E3D3C;   /* variante foncée pour dégradés/en-têtes */
  --rouge-coeur:  #E63956;   /* Action principale (CTA : contact, don, en savoir plus) */
  --magenta:      #D82282;   /* Accent 1 — survol boutons, badges, mises en avant */
  --orange:       #FF821C;   /* Accent 2 — petites touches, illustrations */
  --vert-vitalite:#92E022;   /* Accent 3 — validation, badges nature/fraîcheur */
  --sable:        #FAF6F3;   /* Fond doux (remplace le blanc pur) */
  --sable-fonce:  #F1E7E1;   /* fond alterné / cartes */
  --encre:        #5A4240;   /* texte courant (taupe assombri, lisible) */
  --gris:         #93807C;   /* texte secondaire */

  /* --- Alias sémantiques utilisés dans la feuille de style --- */
  --vert:              var(--taupe);        /* couleur de marque (liens, lignes) */
  --vert-fonce:        var(--taupe-fonce);  /* titres, dégradés, sections foncées */
  --terracotta:        var(--rouge-coeur);  /* boutons d'action (CTA) */
  --terracotta-fonce:  var(--magenta);      /* survol des boutons d'action */
  --creme:             var(--sable);
  --vert-nature:       var(--vert-vitalite);
  --rouge:             var(--rouge-coeur);

  /* Coins très arrondis + ombres douces teintées taupe (charte) */
  --ombre:       0 8px 26px rgba(125, 83, 81, .08);
  --ombre-fort:  0 16px 44px rgba(125, 83, 81, .14);
  --rayon:       20px;
  --rayon-petit: 14px;
  --max:         1120px;

  --police-titre: "Quicksand", "Trebuchet MS", system-ui, sans-serif;
  --police-texte: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--police-texte);
  color: var(--encre);
  background: var(--creme);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3 { font-family: var(--police-titre); font-weight: 700; line-height: 1.25; color: var(--taupe); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 0 0 .4em; }

a { color: var(--vert); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.conteneur { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section--sable { background: var(--sable); }
.section--vert  { background: var(--vert-fonce); color: #fff; }
.section--vert h2, .section--vert h3 { color: #fff; }

.centre { text-align: center; }
.surtitre {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--magenta);
  margin-bottom: .6em;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primaire { background: var(--terracotta); color: #fff; box-shadow: var(--ombre); }
.btn--primaire:hover { background: var(--terracotta-fonce); }
.btn--vert { background: var(--vert); color: #fff; }
.btn--vert:hover { background: var(--vert-fonce); }
.btn--fantome { background: transparent; border-color: currentColor; color: var(--vert-fonce); }
.btn--clair { background: #fff; color: var(--vert-fonce); }

/* ==========================================================================
   EN-TÊTE / NAVIGATION  (généré par main.js)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sable);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 20px; max-width: var(--max); margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: var(--police-titre); font-weight: 700; font-size: 1.3rem; color: var(--vert-fonce); }
.nav__logo:hover { text-decoration: none; }
.nav__logo img { height: 44px; width: auto; }
.nav__logo--image img { height: 56px; }
@media (max-width: 480px) { .nav__logo--image img { height: 46px; } }
.nav__logo-marque { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-marque small { font-family: var(--police-texte); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; }

.nav__liens { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__liens a { padding: 9px 14px; border-radius: 8px; color: var(--encre); font-weight: 600; font-size: .98rem; }
.nav__liens a:hover { background: var(--sable); text-decoration: none; }
.nav__liens a.actif { color: var(--vert); background: var(--sable); }
.nav__liens .btn { padding: 9px 20px; color: #fff; }
.nav__liens .btn:hover { color: #fff; }

.nav__burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--encre); margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__liens {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--creme); padding: 12px 20px 20px;
    border-bottom: 1px solid var(--sable);
    box-shadow: var(--ombre);
    display: none;
  }
  .nav__liens.ouvert { display: flex; }
  .nav__liens a, .nav__liens .btn { text-align: center; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 96px 0;
  background:
    linear-gradient(135deg, rgba(43,90,65,.90), rgba(43,90,65,.55)),
    var(--vert-fonce);
  color: #fff;
  overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; z-index: 0; }
.hero .conteneur { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; opacity: .95; margin: 0 0 1.6em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   GRILLES & CARTES
   ========================================================================== */
.grille { display: grid; gap: 26px; }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grille--3, .grille--2 { grid-template-columns: 1fr; } }

.carte {
  background: #fff; border-radius: var(--rayon); padding: 30px;
  box-shadow: var(--ombre); border: 1px solid var(--sable);
  transition: transform .18s ease, box-shadow .18s ease;
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-fort); }
.carte__icone {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sable); font-size: 1.6rem; margin-bottom: 16px;
}
/* Touches multicolores reprises des rubans du logo */
.grille--3 .carte:nth-child(1) .carte__icone { background: #fbe6d2; }   /* orange clair */
.grille--3 .carte:nth-child(2) .carte__icone { background: #f6dcec; }   /* magenta clair */
.grille--3 .carte:nth-child(3) .carte__icone { background: #e6f1d6; }   /* vert clair */

/* Deux colonnes texte/image */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.duo img { border-radius: var(--rayon); box-shadow: var(--ombre); }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; gap: 28px; } }

/* Emplacement photo (placeholder tant que pas d'image) */
.photo-placeholder {
  border-radius: var(--rayon);
  background: repeating-linear-gradient(45deg, var(--sable), var(--sable) 12px, #e7ddcb 12px, #e7ddcb 24px);
  display: grid; place-items: center; text-align: center;
  color: var(--gris); font-weight: 600; padding: 40px 20px; min-height: 260px;
}

/* ==========================================================================
   CATALOGUE
   ========================================================================== */
.catalogue-filtres { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.filtre {
  padding: 8px 18px; border-radius: 30px; border: 1.5px solid var(--sable);
  background: #fff; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--gris);
  transition: .15s;
}
.filtre:hover { border-color: var(--terracotta); }
.filtre.actif { background: var(--vert); color: #fff; border-color: var(--vert); }

.grille-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }

.article {
  background: #fff; border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); border: 1px solid var(--sable); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.article:hover { transform: translateY(-4px); box-shadow: var(--ombre-fort); }
.article__media { position: relative; aspect-ratio: 4/3; background: var(--sable); overflow: hidden; }
.article__media img { width: 100%; height: 100%; object-fit: cover; }
.article__badge {
  position: absolute; top: 10px; left: 10px; background: var(--magenta); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em;
}
.article__badge--vendu { background: var(--gris); }
.article__corps { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.article__cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta); font-weight: 700; }
.article__titre { font-family: var(--police-titre); font-size: 1.1rem; color: var(--vert-fonce); margin: 0; }
.article__desc { font-size: .9rem; color: var(--gris); margin: 0; flex: 1; }
.article__bas { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.article__prix { font-size: 1.3rem; font-weight: 800; color: var(--encre); }
.article__prix small { font-size: .8rem; font-weight: 600; color: var(--gris); }
.article .btn { padding: 8px 16px; font-size: .9rem; }
.catalogue-vide { text-align: center; padding: 50px; color: var(--gris); }

/* ==========================================================================
   FORMULAIRE
   ========================================================================== */
.form { display: grid; gap: 16px; max-width: 620px; }
.form label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--sable); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--encre);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--vert); }
.form textarea { min-height: 140px; resize: vertical; }

.info-bloc { display: grid; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .ico { font-size: 1.4rem; }

/* ==========================================================================
   PIED DE PAGE  (généré par main.js)
   ========================================================================== */
.site-footer { background: var(--encre); color: #cfcabf; padding: 56px 0 28px; }
.site-footer a { color: #cfcabf; }
.site-footer a:hover { color: #fff; }
.footer__grille { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .footer__grille { grid-template-columns: 1fr; gap: 28px; } }
.footer__marque { font-family: var(--police-titre); font-size: 1.4rem; color: #fff; margin-bottom: 10px; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__reseaux { display: flex; gap: 12px; margin-top: 14px; }
.footer__reseaux a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 1.1rem; }
.footer__bas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; text-align: center; color: #9c968a; }

/* ==========================================================================
   DIVERS
   ========================================================================== */
.bandeau-note {
  background: #fff7e6; border: 1px dashed var(--terracotta); color: #8a5a2b;
  padding: 12px 18px; border-radius: 10px; font-size: .9rem; margin-bottom: 22px;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stat__num { font-family: var(--police-titre); font-size: 2.6rem; color: var(--terracotta); font-weight: 700; }
.carte-map { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); border: 0; width: 100%; height: 320px; }
.liste-horaires { list-style: none; padding: 0; margin: 0; }
.liste-horaires li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--sable); }
.liste-horaires li span:last-child { font-weight: 600; }

/* ==========================================================================
   BANDEAU PROMO (boutique / catalogue) — ponctuel, activable via l'admin
   ========================================================================== */
.promo-banniere {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(120deg, var(--rouge-coeur), var(--magenta), var(--orange), var(--rouge-coeur));
  background-size: 300% 300%; animation: promoGrad 9s ease infinite;
  color: #fff; padding: 18px 26px; border-radius: var(--rayon); box-shadow: var(--ombre-fort);
}
/* Reflet qui balaie le bandeau */
.promo-banniere::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); animation: promoShine 6s ease-in-out infinite; pointer-events: none;
}
.promo-banniere > * { position: relative; z-index: 1; }
.promo-banniere__img {
  width: 84px; height: 84px; border-radius: 14px; object-fit: cover;
  border: 3px solid rgba(255,255,255,.65); flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.promo-banniere__badge {
  background: #fff; color: var(--rouge-coeur); font-weight: 800; padding: 7px 14px;
  border-radius: 30px; text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; white-space: nowrap;
  animation: promoPulse 1.8s ease-in-out infinite;
}
.promo-banniere strong { font-family: var(--police-titre); font-size: 1.3rem; display: block; }
.promo-banniere p { margin: 3px 0 0; opacity: .96; font-size: .96rem; }
@keyframes promoGrad { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes promoShine { 0% { left: -60%; } 55% { left: 130%; } 100% { left: 130%; } }
@keyframes promoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@media (max-width: 560px) { .promo-banniere { flex-direction: column; text-align: center; } }
@media (prefers-reduced-motion: reduce) {
  .promo-banniere { animation: none; }
  .promo-banniere::after, .promo-banniere__badge { animation: none; }
}

/* ==========================================================================
   NOS ACTIONS — blocs avec galerie de photos
   ========================================================================== */
.action-bloc { max-width: 920px; margin: 0 auto; padding: 8px 0 24px; }
.action-bloc__texte { margin-bottom: 22px; }
.action-bloc__texte h2 { margin-bottom: .3em; }
.action-bloc__texte p { white-space: pre-wrap; }
/* Diaporama (défilement automatique des photos) */
.diaporama {
  position: relative; max-width: 860px; margin: 0 auto;
  border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre);
  aspect-ratio: 16 / 10; background: #f2ece4;
}
.diaporama__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.diaporama__slide.actif { opacity: 1; }
/* contain = photo entière visible, adaptée au cadre (sans rognage/zoom) */
.diaporama__slide img { width: 100%; height: 100%; object-fit: contain; }
.diaporama__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.32); color: #fff; border: 0; width: 42px; height: 42px;
  border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; z-index: 2; transition: background .2s;
}
.diaporama__nav:hover { background: rgba(0,0,0,.6); }
.diaporama__nav--prev { left: 12px; }
.diaporama__nav--next { right: 12px; }
.diaporama__points { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.diaporama__point { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); border: 0; padding: 0; cursor: pointer; transition: background .2s, transform .2s; }
.diaporama__point.actif { background: #fff; transform: scale(1.25); }
.diaporama--solo .diaporama__nav, .diaporama--solo .diaporama__points { display: none; }

/* ==========================================================================
   SÉPARATEUR « RUBAN » ondulé multicolore (rappel du logo)
   Utilisation : placer  <div class="ruban"></div>  entre deux sections.
   Le SVG est injecté automatiquement par main.js.
   ========================================================================== */
.ruban { line-height: 0; padding: 10px 0; background: transparent; }
.ruban svg { display: block; width: 100%; height: 30px; }
