/* ============================================================
   Naciréa — feuille de style
   Couleurs reprises du logo : rose #C8647E, rose clair #F3CDD0,
   bordure #E8A0B0, noir #222.
   ============================================================ */

:root {
  --rose: #c8647e;          /* rose du logo (décor, grands titres) */
  --rose-fonce: #a84a64;    /* rose lisible pour les textes et boutons */
  --rose-tres-fonce: #8e3d54;
  --rose-clair: #f3cdd0;
  --rose-bord: #e8a0b0;
  --rose-pale: #fdf3f5;
  --noir: #222222;
  --gris: #5b5b5b;
  --gris-clair: #ece6e7;
  --blanc: #ffffff;
  --rayon: 18px;
  --ombre: 0 6px 24px rgba(168, 74, 100, 0.08);
  --police: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --largeur: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--police); font-size: 16px; line-height: 1.6;
  color: var(--noir); background: var(--blanc); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-fonce); }
a:hover { color: var(--rose-tres-fonce); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p, li, dd { overflow-wrap: break-word; }
.accent { color: var(--rose); }

.conteneur { width: min(100% - 2.5rem, var(--largeur)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; scroll-margin-top: 80px; }
.section--rose { background: var(--rose-pale); }
.section__tete { max-width: 680px; margin-bottom: 2.2rem; }
.section__tete p { color: var(--gris); margin: 0; }
.surtitre {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--rose-fonce); margin-bottom: 0.6rem;
}

.lien-evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--noir); color: var(--blanc); padding: 0.6rem 1rem; border-radius: 8px;
}
.lien-evitement:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--rose-fonce); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris-clair);
}
.entete__ligne { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--noir); }
.logo img { width: 58px; height: 58px; }
.logo__texte { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1; }
.logo__texte span { color: var(--rose); }
.logo__slogan { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; color: var(--rose-fonce); margin-top: 0.25rem; }
.entete__contact {
  text-decoration: none; font-weight: 500; padding: 0.55rem 1rem; border-radius: 999px; border: 1.5px solid var(--rose-bord);
}
.entete__contact:hover { background: var(--rose-pale); }
@media (max-width: 520px) {
  .logo img { width: 46px; height: 46px; }
  .logo__texte { font-size: 1.2rem; }
  .entete__contact { padding: 0.45rem 0.8rem; font-size: 0.9rem; }
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.6rem; border-radius: 999px; border: 2px solid var(--rose-fonce);
  background: var(--rose-fonce); color: var(--blanc);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.bouton:hover { background: var(--rose-tres-fonce); border-color: var(--rose-tres-fonce); color: var(--blanc); }
.bouton:active { transform: translateY(1px); }
.bouton--clair { background: var(--blanc); color: var(--rose-fonce); }
.bouton--clair:hover { background: var(--rose-pale); color: var(--rose-tres-fonce); }
.bouton--plein { width: 100%; }
.bouton[disabled] { opacity: 0.5; cursor: not-allowed; }
.lien-fleche { font-weight: 600; color: var(--rose-fonce); }
.lien-fleche::after { content: " →"; }

/* ---------- Présentation ---------- */
.hero { background: linear-gradient(180deg, var(--rose-pale), var(--blanc)); padding: clamp(2.5rem, 6vw, 5rem) 0; overflow: hidden; }
.hero__grille { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero p.hero__texte { font-size: 1.1rem; color: var(--gris); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero__visuel img { width: min(100%, 430px); height: auto; margin-inline: auto; filter: drop-shadow(0 18px 40px rgba(168, 74, 100, 0.18)); }
.hero__atouts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin: 1.8rem 0 0; padding: 0; list-style: none; color: var(--gris); font-size: 0.92rem; }
.hero__atouts li::before { content: "♥ "; color: var(--rose); }
@media (max-width: 820px) {
  .hero__grille { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__visuel { order: -1; }
  .hero__visuel img { width: 200px; }
}

/* ---------- Les 3 créations ---------- */
.univers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.5rem; }
.carte-univers {
  display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit;
  background: var(--blanc); border: 1px solid var(--gris-clair); border-radius: var(--rayon);
  overflow: hidden; box-shadow: var(--ombre); transition: transform 0.2s, box-shadow 0.2s;
}
.carte-univers:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(168, 74, 100, 0.14); color: inherit; }
.carte-univers__visuel { background: var(--rose-pale); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 1.5rem; min-width: 0; overflow: hidden; }
.carte-univers__visuel img { width: 100%; height: 100%; object-fit: contain; }
.carte-univers__visuel--photo { padding: 0; }
.carte-univers__visuel--photo img { object-fit: cover; }
.carte-univers__corps { padding: 1.3rem 1.4rem 1.5rem; }
.carte-univers__corps p { color: var(--gris); margin: 0 0 0.8rem; font-size: 0.95rem; }

/* ---------- Comment ça marche ---------- */
.etapes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.5rem; counter-reset: etape; padding: 0; list-style: none; }
.etapes li { background: var(--blanc); border-radius: var(--rayon); padding: 1.5rem; border: 1px solid var(--gris-clair); }
.etapes li::before {
  counter-increment: etape; content: counter(etape);
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--rose-clair); color: var(--rose-tres-fonce); font-weight: 800; margin-bottom: 0.8rem;
}
.etapes p { margin: 0; color: var(--gris); font-size: 0.95rem; }

/* ---------- Volets qui s'ouvrent (pack, devis) ---------- */
.volet { border-top: 1px solid var(--rose-clair); border-bottom: 1px solid var(--rose-clair); }
.volet__tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 2rem; }
.volet__tete p { color: var(--gris); margin: 0; max-width: 40rem; }
.lien-fermer { flex-shrink: 0; text-decoration: none; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1.5px solid var(--gris-clair); background: var(--blanc); color: var(--gris); }
.lien-fermer:hover { color: var(--rose-fonce); border-color: var(--rose-bord); }

.carte { background: var(--blanc); border: 1px solid var(--gris-clair); border-radius: var(--rayon); padding: clamp(1.2rem, 3vw, 1.8rem); }
.carte + .carte { margin-top: 1.5rem; }
.carte > p { color: var(--gris); margin-top: 0; font-size: 0.95rem; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .deux-colonnes { grid-template-columns: 1fr; } }

/* ---------- Champs ---------- */
.champ { display: grid; gap: 0.35rem; align-content: start; }
.champ label, .champ legend { font-weight: 600; font-size: 0.92rem; }
.champ input, .champ select, .champ textarea {
  font: inherit; padding: 0.7rem 0.85rem; border-radius: 12px; border: 1.5px solid #dccfd2; background: var(--blanc); width: 100%; min-width: 0;
}
.champ textarea { min-height: 6rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--rose-fonce); outline: none; box-shadow: 0 0 0 3px rgba(168, 74, 100, 0.15); }
.champ--erreur input, .champ--erreur select, .champ--erreur textarea { border-color: #b23a3a; }
.erreur { color: #b23a3a; font-size: 0.82rem; }
fieldset.champ { border: 0; padding: 0; margin: 0; }
.case { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; margin: 1rem 0; }
.case input { margin-top: 0.3rem; accent-color: var(--rose-fonce); width: 1.05rem; height: 1.05rem; flex-shrink: 0; }

.formulaire-devis { display: grid; gap: 1.2rem; }
.choix-demande { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choix-demande label { position: relative; cursor: pointer; }
.choix-demande input { position: absolute; opacity: 0; inset: 0; }
.choix-demande span { display: inline-block; padding: 0.55rem 1.1rem; border-radius: 999px; border: 1.5px solid #dccfd2; background: var(--blanc); font-weight: 500; font-size: 0.92rem; }
.choix-demande input:checked + span { background: var(--rose-fonce); border-color: var(--rose-fonce); color: var(--blanc); }
.choix-demande input:focus-visible + span { outline: 3px solid var(--rose-fonce); outline-offset: 2px; }

/* ---------- Pack ---------- */
.pack-grille { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .pack-grille { grid-template-columns: 1fr; } }
.personne {
  display: grid; grid-template-columns: 56px 1fr 1fr 1.4fr 0.9fr auto; gap: 0.6rem; align-items: end;
  padding: 1rem 0; border-bottom: 1px dashed var(--gris-clair);
}
.personne:first-of-type { padding-top: 0.2rem; }
.personne--invites { grid-template-columns: 56px 1.4fr 0.8fr 1fr 0.9fr; border-bottom: 0; }
.personne__photo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--rose-pale); align-self: end; }
.personne .champ label { font-size: 0.8rem; }
.personne .champ input, .personne .champ select { padding: 0.55rem 0.6rem; }
.bouton-icone {
  font: inherit; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--gris-clair);
  background: var(--blanc); cursor: pointer; color: var(--gris); font-size: 1.1rem;
}
.bouton-icone:hover { border-color: #b23a3a; color: #b23a3a; }
@media (max-width: 760px) {
  .personne, .personne--invites { grid-template-columns: 56px 1fr 1fr; }
  .personne__photo { grid-row: span 2; align-self: start; }
  .personne .bouton-icone { justify-self: end; }
}
.recap { position: sticky; top: 100px; }
@media (max-width: 960px) { .recap { position: static; } }
.recap ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.recap li { display: flex; justify-content: space-between; gap: 1rem; }
.recap li span:first-child { color: var(--gris); }
.lignes-total { display: grid; gap: 0.4rem; margin: 0 0 0.8rem; font-size: 0.92rem; padding-top: 0.8rem; border-top: 1px solid var(--gris-clair); }
.lignes-total div { display: flex; justify-content: space-between; gap: 1rem; }
.lignes-total dt { color: var(--gris); }
.lignes-total dd { margin: 0; text-align: right; }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; padding-top: 0.8rem; border-top: 1px solid var(--gris-clair); margin-bottom: 0.6rem; }

.message {
  padding: 0.9rem 1.1rem; border-radius: 12px; font-size: 0.92rem; margin: 1rem 0;
  background: #eef7f0; color: #24553a; border: 1px solid #cfe6d6;
}
.message--info { background: var(--rose-pale); color: var(--rose-tres-fonce); border-color: var(--rose-clair); }
.message--erreur { background: #fbeeee; color: #8a2b2b; border-color: #f0cccc; }
.message a:not(.bouton) { color: inherit; font-weight: 600; }
.moyens { font-size: 0.8rem; color: var(--gris); text-align: center; margin-top: 0.8rem; }

/* ---------- Pages de texte ---------- */
.texte-legal { max-width: 760px; }
.texte-legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.texte-legal p, .texte-legal li { color: #3a3a3a; }
.a-completer { background: #fff4c7; padding: 0 0.3rem; border-radius: 4px; font-weight: 600; }
.vide { text-align: center; padding: 3rem 1rem; }
.vide img { width: 180px; margin: 0 auto 1rem; }

/* ---------- Pied de page ---------- */
.pied { background: var(--noir); color: #d9d2d3; padding: 3.5rem 0 2rem; font-size: 0.92rem; }
.pied a { color: #f3cdd0; text-decoration: none; overflow-wrap: anywhere; }
.pied a:hover { text-decoration: underline; color: var(--blanc); }
.pied__grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .pied__grille { grid-template-columns: 1fr; } }
.pied h2 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blanc); margin-bottom: 0.9rem; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.pied__marque { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.pied__marque img { width: 54px; height: 54px; }
.pied__marque strong { color: var(--blanc); font-size: 1.3rem; font-weight: 800; }
.pied__marque strong span { color: var(--rose-bord); }
.pied__bas { border-top: 1px solid #3a3a3a; margin-top: 2.5rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; font-size: 0.82rem; color: #a9a1a2; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Choix des packs ---------- */
.choix-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 1rem; margin-bottom: 2rem; }
.carte-pack {
  display: grid; grid-template-rows: auto 1fr; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 0;
  background: var(--blanc); border: 2px solid var(--gris-clair); border-radius: var(--rayon); overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.carte-pack:hover:not([disabled]) { border-color: var(--rose-bord); transform: translateY(-2px); box-shadow: var(--ombre); }
.carte-pack[aria-pressed="true"] { border-color: var(--rose-fonce); box-shadow: 0 0 0 3px rgba(168, 74, 100, 0.18); }
.carte-pack[disabled] { opacity: 0.55; cursor: not-allowed; }
.carte-pack img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--rose-pale); }
.carte-pack--mesure img { object-fit: contain; padding: 1.2rem; }
.carte-pack__corps { display: grid; gap: 0.3rem; padding: 0.9rem 1rem 1.1rem; align-content: start; }
.carte-pack__corps strong { font-size: 1.02rem; }
.carte-pack__resume { color: var(--gris); font-size: 0.85rem; line-height: 1.45; }
.carte-pack__prix { font-weight: 800; color: var(--rose-fonce); margin-top: 0.3rem; }
.carte-pack__prix s, .lignes-total s { color: var(--gris); font-weight: 400; font-size: 0.85em; margin-left: 0.3rem; }
.carte-pack__stock { font-size: 0.78rem; color: var(--gris); }

/* Pièces d'un pack prêt */
.unite { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 0.6rem; align-items: end; padding: 0.7rem 0; border-bottom: 1px dashed var(--gris-clair); }
.unite--fin { grid-template-columns: 1fr 1fr; border-bottom: 0; padding-top: 1rem; }
.unite__texte { margin: 0; align-self: center; color: var(--gris); grid-column: span 2; }
@media (max-width: 520px) { .unite { grid-template-columns: 56px 1fr; } .unite .champ:last-child:not(:first-child) { grid-column: 2; } .unite--fin { grid-template-columns: 1fr; } }
.unite--role { grid-template-columns: 56px 1fr 1fr 1fr; }
@media (max-width: 640px) { .unite--role { grid-template-columns: 56px 1fr 1fr; } .unite--role .champ:last-child { grid-column: 2 / -1; } }
@media (max-width: 420px) { .unite--role { grid-template-columns: 56px 1fr; } .unite--role .champ { grid-column: 2; } }

/* Visuels d'exemple (illustrations du rendu de la personnalisation) */
.visuel-exemple { position: relative; display: block; }
.carte-pack .visuel-exemple img { display: block; }
.badge-exemple {
  position: absolute; left: 0.6rem; bottom: 0.6rem; background: rgba(255, 255, 255, 0.92);
  color: var(--gris); font-size: 0.68rem; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: 999px;
}
