/*
 * site.css — pages du site (accueil, pages par thème…). Le créateur garde style.css.
 */
:root { --olive: #494e2a; --olive-clair: #eef0e4; --terre: #c8735a; --moutarde: #e5b03c; --creme: #f6f5f0; }
body { background: var(--creme); }
a { color: var(--olive); }
.conteneur { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* En-tête */
.entete { background: #fff; border-bottom: 1px solid var(--line); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.entete img { display: block; height: 76px; width: auto; }
.entete nav { display: flex; gap: 6px; flex-wrap: wrap; }
.entete nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 8px; }
.entete nav a:hover { background: var(--olive-clair); }
.entete nav a { display: inline-block; }
.entete nav a::first-letter { text-transform: uppercase; }   /* « mensuel » devient « Mensuel » sur mobile */

/* Bandeau */
.bandeau { padding: 26px 0 22px; overflow: hidden; }
.bandeau .conteneur { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: center; }
.bandeau h1 { font: 600 clamp(1.6rem, 2.6vw, 2.15rem)/1.18 Montserrat, system-ui, sans-serif; color: var(--olive); margin: 0 0 10px; letter-spacing: -.5px; }
.bandeau h1 em { font-style: normal; color: var(--terre); }
.bandeau p.accroche { font-size: 1.05rem; color: #4a4a44; margin: 0 0 18px; max-width: 36em; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.bouton { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1.02rem; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.bouton:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(73, 78, 42, .25); }
.bouton.plein { background: var(--olive); color: #fff; }
.bouton.contour { background: #fff; color: var(--olive); border: 2px solid var(--olive); }
.atouts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.atouts li::before { content: "✓"; color: var(--terre); font-weight: 700; margin-right: 6px; }

.eventail { position: relative; height: 270px; }
.eventail img { position: absolute; top: 14px; width: 170px; height: auto; aspect-ratio: 210 / 297; background: #fff; border-radius: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); transition: transform .25s; }
.eventail a:nth-child(1) img { left: 2%; transform: rotate(-8deg); }
.eventail a:nth-child(2) img { left: 50%; margin-left: -85px; top: 0; z-index: 2; }
.eventail a:nth-child(3) img { right: 2%; transform: rotate(8deg); }
.eventail.n1 a img { left: 50%; margin-left: -85px; transform: none; }
.eventail.n2 a:nth-child(1) img { left: 12%; }
.eventail.n2 a:nth-child(2) img { left: auto; right: 12%; margin-left: 0; transform: rotate(6deg); }
.eventail[class] a:hover img { z-index: 3; transform: rotate(0) scale(1.04); }

/* Sections */
section.bloc { padding: 46px 0; }
section.bloc.avec-pub { padding-top: 4px; }
section.bloc.avec-pub .pub { margin-bottom: 26px; }
section.bloc.blanc { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bloc h2 { font: 600 1.6rem/1.2 Montserrat, system-ui, sans-serif; color: var(--olive); text-align: center; margin: 0 0 8px; }
.bloc .sous-titre { text-align: center; color: var(--muted); margin: 0 0 30px; }

/* Les trois créateurs */
.choix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.choix a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.bloc.blanc .choix a { background: var(--creme); }
.choix a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); border-color: var(--olive); }
.choix .ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; font-size: 1.6rem; margin-bottom: 14px; }
.choix a:nth-child(1) .ico { background: #f6e3dc; }
.choix a:nth-child(2) .ico { background: #faf0d7; }
.choix a:nth-child(3) .ico { background: var(--olive-clair); }
.choix h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--olive); }
.choix p { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.choix .lien { font-weight: 600; color: var(--terre); }

/* Comment ça marche */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: etape; margin: 0; padding: 0; list-style: none; }
.etapes li { text-align: center; padding: 0 10px; }
.etapes li::before { counter-increment: etape; content: counter(etape); display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; background: var(--olive); color: #fff; font: 600 1.2rem Montserrat, sans-serif; }
.etapes h3 { margin: 0 0 6px; font-size: 1.05rem; }
.etapes p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Derniers créés */
.compteur { text-align: center; color: var(--muted); margin: -18px 0 26px; }
.compteur b { color: var(--terre); font-size: 1.15rem; }
.derniers-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.derniers-grille a { display: block; text-decoration: none; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.derniers-grille img { display: block; width: 100%; height: auto; aspect-ratio: 210 / 297; background: #fff; border-radius: 4px; box-shadow: 0 3px 12px rgba(0, 0, 0, .14); margin-bottom: 8px; transition: transform .15s; }
.derniers-grille a:hover img { transform: translateY(-4px); }
.derniers-grille .refaire { display: block; margin-top: 2px; color: var(--terre); font-weight: 600; }

/* Présentation et questions */
.texte { max-width: 780px; margin: 0 auto; }
.texte p { color: #4a4a44; }
.faq h2 { margin-top: 34px; }
.faq details { background: var(--creme); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--olive); }
.faq details p { margin: 0 0 14px; }

/* Pied de page */
.pied { background: var(--olive); color: #e8e9de; padding: 30px 0; font-size: .9rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.pied a { color: #fff; text-decoration: none; margin-left: 16px; }
.pied a:hover { text-decoration: underline; }

/* Fil d'Ariane */
.ariane { font-size: .88rem; color: var(--muted); margin: 0 0 10px; }
.ariane a { text-decoration: none; }
.ariane a:hover { text-decoration: underline; }
.ariane span { margin: 0 6px; }

/* Pages par thème */
.theme-intro { padding: 24px 0 20px; }
.theme-intro h1 { font: 600 clamp(1.5rem, 2.6vw, 2.05rem)/1.2 Montserrat, system-ui, sans-serif; color: var(--olive); margin: 0 0 10px; }
.theme-intro p { color: #4a4a44; margin: 0 0 16px; max-width: 52em; }
.sous-themes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; padding: 0; list-style: none; }
.sous-themes a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; text-decoration: none; }
.sous-themes a:hover { border-color: var(--olive); }
.sous-themes small { color: var(--muted); }
.cartes-grille { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }   /* 6, 3 ou 2 par ligne : voir page.php */
.cartes-grille .carte { text-align: center; font-size: .85rem; line-height: 1.3; }
.cartes-grille .carte > a { display: block; text-decoration: none; color: var(--ink); }
.cartes-grille img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 6px; background: #eee; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); margin-bottom: 6px; transition: transform .15s; }
.cartes-grille a:hover img { transform: translateY(-3px); }
.cartes-grille .faire { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; }
.cartes-grille .faire a { color: var(--terre); font-weight: 600; text-decoration: none; padding: 2px 3px; }
.cartes-grille .faire a:hover { text-decoration: underline; }
/* Encart Ma Gazette Souvenirs (includes/gazette.php) */
.gazette { max-width: 1000px; margin: 40px auto 0; }
.gazette-titre { margin: 0 0 8px; text-align: center; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.gazette a { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); transition: transform .15s, box-shadow .15s; }
.gazette a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .16); }
.gazette img { display: block; width: 100%; height: auto; }

.pub-createur { max-width: 1180px; margin: 10px auto 30px; padding: 0 24px; }
.pub-createur > div { border-top: 1px solid var(--line); padding-top: 24px; }
.pub-liste { margin: 34px 0; padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.themes-liste { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.themes-liste a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; text-decoration: none; }
.bloc.blanc .themes-liste a { background: var(--creme); }
.themes-liste a:hover { border-color: var(--olive); }
.themes-liste small { font-weight: 400; color: var(--muted); }

/* Pages de texte (à propos, mentions légales, confidentialité, contact) */
.page { max-width: 820px; margin: 0 auto; padding: 26px 24px 50px; }
.page .ariane { margin-bottom: 14px; }
.page h1 { font: 600 clamp(1.6rem, 3vw, 2.1rem)/1.2 Montserrat, system-ui, sans-serif; color: var(--olive); margin: 0 0 18px; }
.page-carte { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px; }
.page-carte h2 { font: 600 1.2rem/1.3 Montserrat, system-ui, sans-serif; color: var(--olive); margin: 28px 0 10px; }
.page-carte h3 { font-size: 1.02rem; margin: 22px 0 10px; }
.page-carte p, .page-carte li { color: #3f3f3a; }
.page-carte .intro { font-size: 1.08rem; margin-top: 0; }
.page-carte .avertissement { background: #faf0d7; border-left: 4px solid var(--moutarde); padding: 12px 16px; border-radius: 6px; }
.page-carte .avertissement p { margin: 0; }
.page-carte .mise-a-jour { color: var(--muted); font-size: .88rem; margin-top: 30px; }
.page-carte .signature { font-style: italic; color: var(--olive); margin-top: 24px; }
.sites-grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sites-grille a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--creme); text-decoration: none; }
.sites-grille a:hover { border-color: var(--olive); }
.sites-grille strong { display: block; color: var(--olive); }
.sites-grille span { color: var(--muted); font-size: .9rem; }

/* Formulaire de contact */
.formulaire .champ { margin-bottom: 16px; }
.formulaire label { color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.formulaire input[type="email"], .formulaire textarea { width: 100%; padding: 9px 11px; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: #fff; box-sizing: border-box; }
.formulaire textarea { min-height: 180px; resize: vertical; }
.formulaire .aide { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.formulaire .accord { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 20px; }
.formulaire .accord input { margin-top: 5px; }
.formulaire .accord label { font-weight: 400; font-size: .92rem; color: #4a4a44; margin: 0; }
.formulaire button { border: 0; cursor: pointer; font: inherit; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.message-ok, .message-erreur { border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }
.message-ok { background: var(--olive-clair); border: 1px solid #c9cdb3; }
.message-erreur { background: #f6e3dc; border: 1px solid #e3b9aa; }
.message-ok p, .message-erreur p { margin: 0 0 6px; }
.message-erreur ul { margin: 0; padding-left: 20px; }

@media (max-width: 860px) {
  .bandeau .conteneur { grid-template-columns: 1fr; }
  .pub-createur { margin-top: 70px; }   /* sur mobile, les boutons Télécharger sont juste au-dessus */
  .eventail { display: none; }   /* sur mobile, la pub et les boutons passent avant les aperçus */
  .choix, .etapes { grid-template-columns: 1fr; }
  .derniers-grille { grid-template-columns: repeat(2, 1fr); }
  .cartes-grille { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .page-carte { padding: 20px 18px; }
  .sites-grille { grid-template-columns: 1fr; }
  .cartes-grille { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cartes-grille img { height: 120px; }
  /* Sur mobile : le logo et le menu restent sur une seule ligne, en plus petit */
  .entete .conteneur { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .entete img { height: 42px; }
  .entete nav { flex-wrap: nowrap; gap: 0; }
  .entete nav a { padding: 6px 6px; font-size: .84rem; white-space: nowrap; }
  .entete nav .long { display: none; }
  .bouton { width: 100%; justify-content: center; }
  .bandeau p.accroche { font-size: .98rem; }
  .atouts { display: none; }
  .pied a { margin: 0 16px 0 0; }
}
/* Très petits écrans : le menu passe sous le logo, pour ne jamais dépasser de la page */
@media (max-width: 390px) {
  .entete .conteneur { flex-direction: column; gap: 0; padding-top: 6px; padding-bottom: 2px; }
  .entete nav { justify-content: center; }
}
