/* ==========================================================
   CG Communication — feuille de style
   Palette : beige #ccc3b7 · brun #3e2f2b · taupe #6a6156 · jaune #fdf59b · blanc
   Polices : Boozy TM (titres, fichier à déposer dans /fonts) · Poppins (texte)
   Idée de mise en page : sections blanc / brun en alternance, autocollants jaunes
   un peu de travers, photos aux formes organiques. Le jaune reste rare.
   ========================================================== */

@font-face {
  font-family: "Boozy TM";
  src: url("fonts/BoozyTM.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brun: #3e2f2b;
  --taupe: #6a6156;
  --beige: #ccc3b7;
  --jaune: #fdf59b;
  --blanc: #ffffff;
  --sable: #f4f0ea; /* beige très éclairci, pour les fonds doux */

  --titres: "Boozy TM", "Fraunces", Georgia, serif;
  --texte: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gouttiere: clamp(18px, 4.5vw, 36px);
  --rayon: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanc);
  color: var(--brun);
  font-family: var(--texte);
  font-size: 1rem;
  line-height: 1.7;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--brun); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--jaune); }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gouttiere); }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--titres); font-weight: 400; font-synthesis: none; line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; letter-spacing: .05em; font-kerning: none; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--taupe); margin: 0 0 1rem;
}
.on-dark .eyebrow { color: var(--beige); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--taupe); max-width: 58ch; }
.on-dark .lead { color: var(--beige); }

/* surligneur : le jaune, par petites touches */
.hl {
  background: linear-gradient(to top, var(--jaune) 0 40%, transparent 40%);
  padding: 0 .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- en-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--blanc);
  border-bottom: 1px solid var(--beige);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 84px; }
.logo { font-family: var(--titres); font-weight: 400; font-synthesis: none; font-size: 1.35rem; text-decoration: none; display: inline-flex; align-items: baseline; gap: .45rem; }
.logo-img { height: 50px; width: auto; display: block; }
.site-footer .logo-img { height: 84px; margin-bottom: .4rem; }
.logo small { font-family: var(--texte); font-size: .72rem; font-weight: 500; color: var(--taupe); letter-spacing: .04em; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--brun); border-radius: 999px;
  padding: .45rem 1rem; font: 600 .9rem var(--texte); color: var(--brun); cursor: pointer;
}
.nav ul { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2rem); }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .3rem .1rem; }
.nav a:hover { background: linear-gradient(to top, var(--beige) 0 35%, transparent 35%); }
.nav a[aria-current="page"] { background: linear-gradient(to top, var(--jaune) 0 40%, transparent 40%); font-weight: 600; }
.nav .btn { padding: .6rem 1.2rem; font-size: .9rem; border: 0; box-shadow: none; }
.nav .btn:hover { transform: none; box-shadow: none; filter: brightness(.95); }
.nav .btn[aria-current="page"] { background: var(--jaune); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--blanc); border-bottom: 1px solid var(--beige); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1rem var(--gouttiere) 1.4rem; }
  .nav a { font-size: 1.05rem; }
}

/* ---------- boutons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font: 600 1rem/1.2 var(--texte); color: var(--brun);
  background: var(--jaune); border: 0; border-radius: 999px;
  padding: .9rem 1.5rem; box-shadow: none;
  transition: filter .15s ease;
}
.btn:hover { filter: brightness(.95); }
.btn.ghost { background: var(--beige); }
.on-dark .btn.ghost { background: rgba(255,255,255,.14); color: var(--blanc); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; margin-top: 1.8rem; }

/* ---------- sections ---------- */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.on-dark { background: var(--brun); color: var(--blanc); }
.soft { background: var(--sable); }
.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }

.wave { line-height: 0; margin-block: -1px; }
.wave svg { width: 100%; height: 44px; }

/* ---------- accueil : hero ---------- */
.hero { padding-block: clamp(2.2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 18ch; }
.hero .lead { margin-top: 1.4rem; }
.visuel { position: relative; max-width: 380px; justify-self: center; width: 100%; }
.photo {
  aspect-ratio: 4 / 5; width: 100%;
  border: 2px solid var(--brun);
  border-radius: 58% 42% 46% 54% / 40% 46% 54% 60%;
  background: var(--beige);
  display: grid; place-items: center; overflow: hidden; text-align: center;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo span { color: var(--taupe); font-size: .9rem; padding: 1.5rem; max-width: 22ch; }
.photo.carre { aspect-ratio: 1 / 1; border-radius: 44% 56% 52% 48% / 52% 44% 56% 48%; }
.sticker {
  position: absolute; right: -4%; bottom: 8%;
  background: var(--jaune); color: var(--brun);
  border-radius: 14px;
  padding: .55rem 1rem; font-family: var(--titres); font-weight: 400; font-synthesis: none; font-size: 1.1rem;
  transform: rotate(-6deg);
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .visuel { max-width: 300px; justify-self: start; margin-left: 4%; }
  .hero h1 { max-width: none; }
}

/* bandeau défilant */
.strip { background: var(--brun); color: var(--blanc); overflow: hidden; border-block: 2px solid var(--brun); }
.strip-track { display: flex; width: max-content; animation: defile 32s linear infinite; }
.strip-track p { margin: 0; padding: .8rem 0; font-family: var(--titres); font-size: 1.3rem; white-space: nowrap; }
.strip-track p span { color: var(--beige); padding-inline: 1.1rem; }
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gouttiere); }
  .strip-track p:nth-child(2) { display: none; }
  html { scroll-behavior: auto; }
}

/* ça te parle ? */
.constats { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; margin-top: 2rem; }
.constats li {
  background: var(--sable); padding: .8rem 1.2rem;
  font-weight: 500; max-width: 30ch;
}
.constats li:nth-child(1) { border-radius: 20px 6px 20px 6px; transform: rotate(-1.2deg); }
.constats li:nth-child(2) { border-radius: 6px 20px 6px 20px; transform: rotate(1deg) translateY(6px); }
.constats li:nth-child(3) { border-radius: 20px 20px 6px 20px; transform: rotate(-.6deg); }
.reponse { margin-top: 2.2rem; font-family: var(--titres); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; max-width: 26ch; line-height: 1.2; }

/* offres */
.offres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: start; }
.offre {
  background: var(--blanc); color: var(--brun); padding: 1.8rem 1.6rem 1.7rem;
  border-radius: 28px 10px 28px 10px;
  display: flex; flex-direction: column; gap: .3rem;
}
.offre:nth-child(2) { border-radius: 10px 28px 10px 28px; }
@media (min-width: 900px) { .offre:nth-child(2) { margin-top: 1.6rem; } }
.offre .repere { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); margin: 0; }
.offre h3 { margin: .2rem 0 .5rem; }
.offre p { color: var(--taupe); font-size: .96rem; }
.offre .prix { font-family: var(--titres); font-weight: 400; font-synthesis: none; font-size: 1.3rem; color: var(--brun); margin-top: .6rem; }
.note-atelier { margin-top: 2rem; color: var(--beige); max-width: 60ch; }
@media (max-width: 899px) { .offres { grid-template-columns: 1fr; } }

/* étapes */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: etape; }
.etape { counter-increment: etape; position: relative; padding-top: 3.2rem; }
.etape::before {
  content: counter(etape);
  position: absolute; top: 0; left: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brun); color: var(--blanc);
  font-family: var(--titres); font-weight: 400; font-synthesis: none; font-size: 1.2rem;
}
.etape p { color: var(--taupe); }
@media (max-width: 760px) { .etapes { grid-template-columns: 1fr; gap: 1.6rem; } }

/* chiffres */
.chiffres { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.chiffres li { max-width: 18ch; }
.chiffres strong { display: block; font-family: var(--titres); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; }
.chiffres span { color: var(--taupe); font-size: .95rem; }

/* citation */
.citation { margin: 0; }
.citation blockquote { margin: 0; font-family: var(--titres); font-weight: 400; font-synthesis: none; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.25; max-width: 30ch; text-wrap: balance; }
.citation figcaption { margin-top: 1.2rem; color: var(--taupe); font-weight: 500; }

/* cartes cas / avis */
.grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.grille.trois { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 899px) { .grille.trois { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grille, .grille.trois { grid-template-columns: 1fr; } }
.cas {
  border-radius: var(--rayon); padding: 1.6rem; background: var(--sable);
  display: flex; flex-direction: column; gap: .6rem;
}
.cas:nth-child(even) { border-radius: 8px var(--rayon) 8px var(--rayon); }
.cas h3 { margin: 0; font-size: 1.3rem; }
.cas p { color: var(--taupe); font-size: .96rem; }
.cas .resultat { color: var(--brun); font-weight: 500; border-top: 2px dashed var(--beige); padding-top: .8rem; margin-top: auto; }
.tag { align-self: flex-start; background: var(--blanc); border-radius: 999px; padding: .1rem .8rem; font-size: .78rem; font-weight: 600; color: var(--taupe); }
.lien-fleche { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--brun); align-self: flex-start; }
.lien-fleche:hover { background: var(--jaune); }

/* page offres : blocs détaillés */
.bloc-offre { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); padding-block: clamp(2rem, 5vw, 3.2rem); border-top: 1px solid var(--beige); }
.bloc-offre:first-of-type { border-top: 0; }
.bloc-offre h2 { margin-bottom: .3rem; }
.bloc-offre .prix { font-family: var(--titres); font-size: 1.5rem; font-weight: 700; margin-top: .8rem; }
.bloc-offre ul li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; }
.bloc-offre ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 2px; background: var(--brun); }
.bloc-offre h3 { font-size: 1.1rem; margin: 1.2rem 0 .5rem; }
.bloc-offre h3:first-child { margin-top: 0; }
.option { margin-top: 1.4rem; padding: 1rem 1.2rem; background: var(--sable); border-radius: 16px; font-size: .96rem; }
@media (max-width: 760px) { .bloc-offre { grid-template-columns: 1fr; gap: 1rem; } }
.choix { display: grid; gap: 1rem; }
.choix li { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--taupe); }
.choix strong { font-family: var(--titres); font-size: 1.2rem; }
@media (max-width: 640px) { .choix li { grid-template-columns: 1fr; gap: .2rem; } }

/* à propos */
.duo { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo .visuel { max-width: 280px; } }
.parcours li { padding: .9rem 0; border-bottom: 2px solid var(--beige); display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.parcours li strong { color: var(--taupe); font-weight: 600; font-size: .9rem; }
@media (max-width: 560px) { .parcours li { grid-template-columns: 1fr; gap: .1rem; } }
.valeurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.valeurs h3 { margin-bottom: .3rem; }
.valeurs p { color: var(--beige); }
@media (max-width: 760px) { .valeurs { grid-template-columns: 1fr; } }

/* contact */
form { display: grid; gap: 1.1rem; }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; font: 400 1rem var(--texte); color: var(--brun);
  background: var(--sable); border: 2px solid transparent; border-radius: 14px; padding: .8rem 1rem;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brun); background: var(--blanc); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.coordonnees li { margin-bottom: 1rem; }
.coordonnees strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); }
.message-envoi { display: none; padding: 1rem 1.2rem; background: var(--sable); border-radius: 14px; font-weight: 500; }
.message-envoi.visible { display: block; }
.hp { position: absolute; left: -9999px; }

/* pied de page */
.site-footer { background: var(--brun); color: var(--blanc); padding-block: 3rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1.1rem; font-family: var(--texte); font-weight: 600; margin-bottom: .8rem; color: var(--beige); letter-spacing: .02em; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--jaune); text-underline-offset: 4px; }
.site-footer .logo { font-size: 1.5rem; margin-bottom: .6rem; }
.site-footer p { color: var(--beige); }
.copy { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--taupe); font-size: .85rem; color: var(--beige); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* mots-clés de l'accueil */
.stickers { display: grid; gap: 1.1rem; justify-items: start; padding-block: 1rem; }
.stickers li {
  font-family: var(--titres); font-weight: 400; font-synthesis: none; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.15;
  padding: .9rem 1.6rem; background: var(--sable);
}
.stickers li:nth-child(1) { border-radius: 26px 8px 26px 8px; transform: rotate(-2.5deg); }
.stickers li:nth-child(2) { border-radius: 8px 26px 8px 26px; transform: rotate(1.8deg) translateX(1.8rem); background: var(--beige); }
.stickers li:nth-child(3) { border-radius: 26px 26px 8px 26px; transform: rotate(-1.2deg) translateX(.6rem); background: var(--jaune); }
@media (max-width: 760px) { .stickers li:nth-child(2) { transform: rotate(1.8deg) translateX(.8rem); } }
.mention { font-size: .8rem; color: var(--taupe); margin-top: .2rem; }

/* photo affichée telle quelle, sans cadre */
.photo-brute { width: 100%; height: auto; display: block; }
.duo .visuel { max-width: 340px; }

/* cas en pleine largeur + galerie de visuels */
.cas.large { grid-column: 1 / -1; }
.medias { display: flex; gap: .9rem; margin-top: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.medias img, .medias video {
  flex: 0 0 auto; height: 300px; width: auto; display: block; scroll-snap-align: start;
  border-radius: 16px; background: var(--sable);
}
@media (max-width: 640px) { .medias img, .medias video { height: 250px; } }

/* cartes sans cadre : le fond fait la séparation */
.soft .cas, .on-dark .cas { background: var(--blanc); }
.soft .cas .tag { background: var(--sable); }

/* newsletter */
.newsletter { background: var(--sable); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.newsletter .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 800px) { .newsletter .wrap { grid-template-columns: 1fr; } }
.nl-form { display: grid; gap: .9rem; }
.nl-ligne { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: end; }
.nl-ligne .btn { border: 0; font-family: inherit; }
.newsletter input[type="email"] { background: var(--blanc); }
.nl-form input[type="checkbox"] { width: auto; margin: 0 .5rem 0 0; accent-color: var(--brun); vertical-align: middle; }
.nl-consent { font-weight: 400; font-size: .85rem; color: var(--taupe); margin: 0; }
.nl-msg { margin: 0; padding: .8rem 1rem; background: var(--blanc); border-radius: 14px; font-weight: 500; }
.nl-msg[hidden] { display: none; }
@media (max-width: 520px) { .nl-ligne { grid-template-columns: 1fr; } }

.nl-popup {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 60; width: min(380px, calc(100vw - 2.4rem));
  background: var(--blanc); color: var(--brun); border-radius: 22px; padding: 1.5rem 1.4rem 1.3rem;
  box-shadow: 0 10px 40px rgba(62, 47, 43, .22);
}
.nl-popup[hidden] { display: none; }
.nl-popup h2 { font-size: 1.35rem; margin: 0 1.6rem .4rem 0; }
.nl-popup p { margin: 0 0 1rem; font-size: .95rem; }
.nl-popup .nl-ligne { grid-template-columns: 1fr; }
.nl-popup input[type="email"] { background: var(--sable); }
.nl-fermer {
  position: absolute; top: .6rem; right: .8rem; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%;
  background: transparent; color: var(--brun); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.nl-fermer:hover { background: var(--sable); }

/* mentions légales */
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.legal ul { margin: .6rem 0 1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal .actions { margin-top: 2.5rem; }
.copy a { color: var(--beige); }
.legal { overflow-wrap: anywhere; }
