/* ==========================================================================
   ChezFloCréatif — Design system 2026
   Rose poudré & terracotta — CSS moderne, responsive, sans framework
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Couleurs */
  --creme: #fdf9f6;
  --creme-2: #f9f1ec;
  --blanc: #ffffff;
  --rose: #e8b4b8;
  --rose-clair: #f7e9ea;
  --rose-soutenu: #d98e94;
  --terracotta: #c4674a;
  --terracotta-fonce: #a34f35;
  --terracotta-clair: #f3e0d7;
  --prune: #4a2f3d;
  --prune-doux: #6d4a5a;
  --gris-texte: #7a6a70;
  --or: #d4a857;
  --sauge: #8fa68e;
  --ok: #5f9e6e;
  --erreur: #c0453e;

  /* Dégradés */
  --degrade-hero: linear-gradient(135deg, #e8b4b8 0%, #c4674a 100%);
  --degrade-doux: linear-gradient(135deg, #f7e9ea 0%, #f3e0d7 100%);
  --degrade-bouton: linear-gradient(135deg, #d98e94 0%, #c4674a 100%);

  /* Typographie */
  --font-titres: "Playfair Display", Georgia, serif;
  --font-texte: "Nunito Sans", "Segoe UI", system-ui, sans-serif;

  /* Espacements */
  --esp-xs: 0.35rem;
  --esp-s: 0.75rem;
  --esp-m: 1.25rem;
  --esp-l: 2rem;
  --esp-xl: 3.5rem;

  /* Rayons */
  --rayon-s: 10px;
  --rayon-m: 16px;
  --rayon-l: 24px;
  --rayon-pill: 999px;

  /* Ombres */
  --ombre-s: 0 2px 8px rgba(74, 47, 61, 0.08);
  --ombre-m: 0 8px 24px rgba(74, 47, 61, 0.12);
  --ombre-l: 0 18px 48px rgba(74, 47, 61, 0.18);

  /* Transitions */
  --vitesse: 0.25s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-texte);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--prune);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-titres);
  color: var(--prune);
  line-height: 1.25;
  margin: 0 0 var(--esp-m);
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 var(--esp-m); }

a { color: var(--terracotta); text-decoration: none; transition: color var(--vitesse); }
a:hover { color: var(--terracotta-fonce); }

/* ---------- Accessibilité ---------- */
:focus-visible {
  outline: 3px solid var(--rose-soutenu);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Structure ---------- */
.conteneur {
  width: min(1180px, 92%);
  margin-inline: auto;
}
.section { padding: var(--esp-xl) 0; }
.section-douce { background: var(--creme-2); }
.section-centre { text-align: center; }

.sur-titre {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: var(--terracotta-clair);
  border-radius: var(--rayon-pill);
  padding: 0.3rem 1rem;
  margin-bottom: var(--esp-s);
}

.grille {
  display: grid;
  gap: var(--esp-m);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grille-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grille-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- En-tête / Navigation ---------- */
.entete-site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 249, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 103, 74, 0.12);
}
.entete-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--esp-m);
  min-height: 72px;
}
.logo-site { display: flex; align-items: center; gap: 0.6rem; }
.logo-site img { height: 48px; width: auto; }
.logo-site span {
  font-family: var(--font-titres);
  font-size: 1.35rem;
  color: var(--prune);
  font-weight: 700;
}
.logo-site span em { color: var(--terracotta); font-style: normal; }

.nav-principale ul {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-principale a {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: var(--rayon-pill);
  color: var(--prune-doux);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-principale a:hover { background: var(--rose-clair); color: var(--terracotta-fonce); }
.nav-principale a.actif { background: var(--terracotta); color: #fff; }

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: var(--rayon-s);
}
.burger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--terracotta);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform var(--vitesse), opacity var(--vitesse);
}
.burger.ouvert span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.ouvert span:nth-child(2) { opacity: 0; }
.burger.ouvert span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav-principale {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--blanc);
    box-shadow: var(--ombre-m);
    border-top: 1px solid var(--rose-clair);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-principale.ouvert { max-height: 420px; }
  .nav-principale ul {
    flex-direction: column;
    align-items: stretch;
    padding: var(--esp-s);
    gap: 0.15rem;
  }
  .nav-principale a { padding: 0.8rem 1.2rem; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.7rem;
  border-radius: var(--rayon-pill);
  border: 0;
  cursor: pointer;
  font-family: var(--font-texte);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  transition: transform var(--vitesse), box-shadow var(--vitesse), background var(--vitesse);
}
.btn-primaire {
  background: var(--degrade-bouton);
  color: #fff;
  box-shadow: 0 6px 18px rgba(196, 103, 74, 0.35);
}
.btn-primaire:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(196, 103, 74, 0.45);
}
.btn-secondaire {
  background: var(--blanc);
  color: var(--terracotta-fonce);
  border: 2px solid var(--rose);
}
.btn-secondaire:hover { background: var(--rose-clair); color: var(--terracotta-fonce); }
.btn-clair { background: rgba(255,255,255,0.92); color: var(--terracotta-fonce); }
.btn-clair:hover { background: #fff; color: var(--terracotta-fonce); transform: translateY(-2px); }
.btn-petit { padding: 0.45rem 1.1rem; font-size: 0.88rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--degrade-hero);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% -10%;
  height: 70%;
  background: var(--creme);
  border-radius: 50% 50% 0 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--esp-l);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4.5rem, 9vw, 7rem);
}
.hero h1 { color: #fff; margin-bottom: var(--esp-s); }
.hero .sous-titre {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  opacity: 0.94;
  max-width: 34rem;
  margin-bottom: var(--esp-l);
}
.hero-visuel img {
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre-l);
  transform: rotate(2deg);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: var(--esp-m); }
.hero-badge {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--rayon-pill);
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero .sous-titre { margin-inline: auto; }
  .hero-visuel { display: none; }
  .hero-badges { justify-content: center; }
}

/* ---------- Cartes ---------- */
.carte {
  background: var(--blanc);
  border-radius: var(--rayon-m);
  box-shadow: var(--ombre-s);
  overflow: hidden;
  transition: transform var(--vitesse), box-shadow var(--vitesse);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre-m); }
.carte-visuel {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--degrade-doux);
}
.carte-visuel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.carte:hover .carte-visuel img { transform: scale(1.06); }
.carte-visuel .icone-carte {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem;
}
.carte-corps { padding: var(--esp-m); display: flex; flex-direction: column; flex: 1; }
.carte-corps h3 { margin-bottom: 0.4rem; font-size: 1.25rem; }
.carte-corps p { color: var(--gris-texte); font-size: 0.95rem; flex: 1; }
.carte-pied {
  padding: 0.9rem var(--esp-m);
  border-top: 1px solid var(--creme-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.carte-lien {
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.carte-lien::after { content: "→"; transition: transform var(--vitesse); }
.carte-lien:hover::after { transform: translateX(4px); }

.etiquette {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  background: rgba(255,255,255,0.92);
  color: var(--terracotta-fonce);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--rayon-pill);
}

/* ---------- Pastilles ateliers (accueil) ---------- */
.pastille-atelier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  background: var(--blanc);
  border: 1px solid var(--rose-clair);
  border-radius: var(--rayon-m);
  padding: 1.1rem 0.6rem;
  text-align: center;
  color: var(--prune-doux);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform var(--vitesse), box-shadow var(--vitesse), border-color var(--vitesse);
}
.pastille-atelier:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-m);
  border-color: var(--rose);
  color: var(--terracotta-fonce);
}
.pastille-atelier .puce-icone {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--degrade-doux);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}

/* ---------- Fil d'ariane ---------- */
.fil-ariane {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: var(--esp-s);
  color: rgba(255,255,255,0.85);
}
.fil-ariane a { color: rgba(255,255,255,0.9); text-decoration: underline; text-underline-offset: 3px; }
.fil-ariane .separateur::before { content: "›"; margin-right: 0.4rem; opacity: 0.7; }

/* ---------- Bandeau de page (hero secondaire) ---------- */
.bandeau-page {
  background: var(--degrade-hero);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 3.6rem) 0;
  margin-bottom: var(--esp-xl);
}
.bandeau-page h1 { color: #fff; margin-bottom: 0.3rem; }
.bandeau-page .sous-titre { opacity: 0.92; font-size: 1.1rem; margin: 0; }

/* ---------- Article / contenu éditorial ---------- */
.contenu-editorial { background: var(--blanc); border-radius: var(--rayon-m); box-shadow: var(--ombre-s); padding: clamp(1.4rem, 4vw, 2.6rem); }
.contenu-editorial h2 { margin-top: var(--esp-l); }
.contenu-editorial img { border-radius: var(--rayon-m); margin: var(--esp-s) 0; }
.contenu-editorial video { border-radius: var(--rayon-m); width: 100%; margin: var(--esp-s) 0; }
.contenu-editorial audio { width: 100%; margin: var(--esp-s) 0; }
.contenu-editorial .ligne-blocs { display: flex; flex-wrap: wrap; gap: var(--esp-m); margin-bottom: var(--esp-m); }
.contenu-editorial .ligne-blocs > * { min-width: 0; }

.encart {
  background: var(--degrade-doux);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--rayon-s);
  padding: var(--esp-m) var(--esp-l);
  margin-bottom: var(--esp-m);
}
.encart h3, .encart h4 { color: var(--terracotta-fonce); }

.liste-materiel { list-style: none; padding: 0; margin: 0 0 var(--esp-m); }
.liste-materiel li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--rose-clair);
  color: var(--prune-doux);
}
.liste-materiel li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* ---------- Barre latérale atelier ---------- */
.mise-en-page-atelier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--esp-l);
  align-items: start;
}
@media (max-width: 980px) {
  .mise-en-page-atelier { grid-template-columns: 1fr; }
}
.widget {
  background: var(--blanc);
  border-radius: var(--rayon-m);
  box-shadow: var(--ombre-s);
  padding: var(--esp-m);
  margin-bottom: var(--esp-m);
}
.widget h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li a {
  display: block;
  padding: 0.55rem 0.8rem;
  border-radius: var(--rayon-s);
  color: var(--prune-doux);
  font-size: 0.93rem;
  font-weight: 600;
}
.widget li a:hover { background: var(--rose-clair); color: var(--terracotta-fonce); }

/* ---------- Formulaires ---------- */
.champ { margin-bottom: var(--esp-m); }
.champ label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--prune-doux);
  margin-bottom: 0.35rem;
}
.champ input,
.champ textarea,
.champ select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--rose-clair);
  border-radius: var(--rayon-s);
  background: var(--blanc);
  font-family: var(--font-texte);
  font-size: 1rem;
  color: var(--prune);
  transition: border-color var(--vitesse), box-shadow var(--vitesse);
}
.champ input:focus,
.champ textarea:focus,
.champ select:focus {
  outline: none;
  border-color: var(--rose-soutenu);
  box-shadow: 0 0 0 4px rgba(232, 180, 184, 0.25);
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ .aide { font-size: 0.82rem; color: var(--gris-texte); margin-top: 0.3rem; }
.champ-erreur input, .champ-erreur textarea { border-color: var(--erreur); }
.message-erreur {
  background: #fdeeec;
  color: var(--erreur);
  border: 1px solid #f5c6c2;
  border-radius: var(--rayon-s);
  padding: 0.8rem 1.1rem;
  margin-bottom: var(--esp-m);
  font-size: 0.93rem;
}
.message-succes {
  background: #edf7ef;
  color: #2e6b3e;
  border: 1px solid #cde6d3;
  border-radius: var(--rayon-s);
  padding: 0.8rem 1.1rem;
  margin-bottom: var(--esp-m);
  font-size: 0.93rem;
}

/* Piège à robots */
.champ-piege {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
}

/* ---------- Encart éco ---------- */
.encart-eco {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--esp-m);
}
.encart-eco .point {
  background: var(--blanc);
  border-radius: var(--rayon-m);
  padding: var(--esp-m);
  box-shadow: var(--ombre-s);
  text-align: center;
}
.encart-eco .point .icone { font-size: 2.2rem; margin-bottom: 0.5rem; }
.encart-eco .point h4 { margin-bottom: 0.3rem; }
.encart-eco .point p { font-size: 0.9rem; color: var(--gris-texte); margin: 0; }

/* ---------- Pied de page ---------- */
.pied-site {
  background: var(--prune);
  color: #f3e6ec;
  margin-top: var(--esp-xl);
  padding: var(--esp-xl) 0 0;
}
.pied-colonnes {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--esp-l);
  padding-bottom: var(--esp-l);
}
.pied-site h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.pied-site p { font-size: 0.92rem; color: #d9c3ce; }
.pied-site a { color: var(--rose); }
.pied-site a:hover { color: #fff; }
.pied-liens { list-style: none; margin: 0; padding: 0; }
.pied-liens li { margin-bottom: 0.5rem; }
.pied-partenaires { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.pied-partenaires img { width: 52px; height: 52px; border-radius: 12px; background: #fff; padding: 4px; }
.pied-copyleft {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 1.1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #c9aeb9;
}
@media (max-width: 860px) {
  .pied-colonnes { grid-template-columns: 1fr; }
}

/* ---------- Animations d'apparition ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilitaires ---------- */
.texte-centre { text-align: center; }
.marge-haut { margin-top: var(--esp-l); }
.marge-bas { margin-bottom: var(--esp-l); }
.deux-colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--esp-l);
  align-items: start;
}
