/* ============================================
   HKAYTEK — feuille de style
   Palette tirée des produits : le bleu des couvertures,
   le corail du titre Yemma, le papier des pages intérieures.
   ============================================ */

:root {
  --encre:      #2E3F60;
  --encre-clair:#445B84;
  --corail:     #F0B597;
  --corail-doux:#FDD7B7;
  --bois:       #B27C75;
  --rose:       #FCE0C8;
  --papier:     #F1E9E3;
  --papier-2:   #FCE0C8;
  --texte:      #4A3428;
  --texte-doux: #7D6355;
  --ligne:      #E8C4AB;
  --blanc:      #FFFFFF;

  --rayon:      14px;
  --rayon-sm:   8px;
  --max:        1120px;
  --max-texte:  660px;

  --ombre:      0 1px 2px rgba(44,40,35,.05), 0 8px 24px rgba(44,40,35,.06);
  --ombre-fort: 0 2px 4px rgba(44,40,35,.06), 0 18px 40px rgba(44,40,35,.12);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--encre); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--corail);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--encre);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.45rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--corail);
  margin: 0 0 .8rem;
  display: block;
}

.lead { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--texte-doux); }

.mot-cle { color: var(--corail); }

/* ---------- Structure ---------- */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.wrap-texte { max-width: var(--max-texte); margin-inline: auto; }

section { padding-block: clamp(56px, 9vw, 104px); }
section.serre { padding-block: clamp(40px, 6vw, 72px); }

.fond-creme { background: var(--papier-2); }
.fond-rose  { background: var(--rose); }
.fond-encre { background: var(--encre); color: #EDE6DA; }
.fond-encre h2, .fond-encre h3 { color: var(--blanc); }
.fond-encre .eyebrow { color: var(--bois); }
.fond-encre .lead { color: #C9C0B2; }

.centre { text-align: center; }
.centre .eyebrow { margin-inline: auto; }

/* ---------- En-tête ---------- */

.entete {
  position: sticky; top: 0; z-index: 40;
  background: rgba(241, 233, 227, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.entete-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 62px;
}
.logo {
  display: flex; align-items: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600; font-size: 1.3rem; letter-spacing: .12em;
  color: var(--encre); text-decoration: none;
}
.logo-img { height: 38px; width: auto; }
.logo .pt { color: var(--corail); }
@media (max-width: 480px) { .logo-img { height: 32px; } }

.hero-logo {
  height: 168px; width: auto;
  margin: -18px auto 22px;
  mix-blend-mode: multiply;
  display: block;
}
@media (max-width: 700px) { .hero-logo { height: 136px; } }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--texte-doux); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--encre); }
@media (max-width: 720px) {
  .nav a.nav-masque { display: none; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-principal { background: var(--corail); color: #fff; box-shadow: var(--ombre); }
.btn-principal:hover { background: #C87850; box-shadow: var(--ombre-fort); }

.btn-whatsapp { background: #1FA855; color: #fff; box-shadow: var(--ombre); }
.btn-whatsapp:hover { background: #17904A; }

.btn-contour { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn-contour:hover { background: var(--encre); color: #fff; }

.btn-clair { background: var(--blanc); color: var(--encre); }

.groupe-btn { display: flex; flex-wrap: wrap; gap: 12px; }
.centre .groupe-btn { justify-content: center; }

/* ---------- Accueil : hero ---------- */

.hero { padding-top: clamp(12px, 2vw, 24px); padding-bottom: clamp(40px, 7vw, 84px); }
.hero-grille {
  display: grid; gap: clamp(28px, 5vw, 56px);
  grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 900px) {
  .hero-grille { grid-template-columns: 1.05fr .95fr; }
}
.hero-visuel { border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-fort); }
.hero-visuel img { width: 100%; }

.rassure {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--ligne);
  font-size: .93rem; color: var(--texte-doux);
}
.rassure b { color: var(--encre); font-weight: 600; }

/* ---------- Signature : les cartes-questions ---------- */
/* Reprend la mise en page des pages intérieures du livre :
   une question, puis les lignes vides à remplir. */

.questions {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.q-carte {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: 26px 24px 20px;
  box-shadow: var(--ombre);
}
.q-carte p {
  font-size: 1.06rem; font-weight: 500; color: var(--encre);
  margin: 0 0 16px; line-height: 1.4;
}
.q-lignes { display: block; }
.q-lignes span {
  display: block; height: 1px; background: var(--ligne);
  margin-bottom: 15px;
}
.q-lignes span:last-child { width: 62%; }

.q-source {
  margin-top: 14px; font-size: .8rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--texte-doux);
}

/* ---------- Cartes univers (accueil) ---------- */

.univers { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .univers { grid-template-columns: 1fr 1fr; } }

.u-carte {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--ombre);
  transition: transform .18s ease, box-shadow .18s ease;
}
.u-carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-fort); }
.u-carte img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.u-corps { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.u-corps h3 { margin-bottom: .35em; }
.u-corps .prix-inline {
  font-weight: 600; color: var(--corail); margin-bottom: 1em; display: block;
}
.u-corps .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Galerie intérieur ---------- */

.galerie { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.galerie figure { margin: 0; }
.galerie img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--rayon-sm); border: 1px solid var(--ligne);
}
.galerie figcaption { margin-top: 9px; font-size: .88rem; color: var(--texte-doux); }

.duo-visuel { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .duo-visuel { grid-template-columns: 1fr 1fr; } }
.duo-visuel img { border-radius: var(--rayon); border: 1px solid var(--ligne); width: 100%; }

/* ---------- Emplacements photo à remplir ---------- */

.photo-ici {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  min-height: 220px; padding: 26px 20px;
  border: 2px dashed var(--bois);
  border-radius: var(--rayon);
  background: repeating-linear-gradient(45deg, #F7EFE2, #F7EFE2 12px, #F2E8D7 12px, #F2E8D7 24px);
  color: #8A6A45;
}
.photo-ici strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase;
}
.photo-ici em { font-style: normal; font-size: .9rem; max-width: 34ch; line-height: 1.45; }
.photo-ici.haute { min-height: 380px; }

/* ---------- Prix ---------- */

.prix-grille { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .prix-grille { grid-template-columns: 1fr 1fr; } }

.prix-carte {
  position: relative;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--rayon);
  padding: 30px 26px;
  display: flex; flex-direction: column;
}
.prix-carte.vedette { border-color: var(--corail); border-width: 2px; }
.prix-badge {
  position: absolute; top: -13px; left: 26px;
  background: var(--corail); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.prix-nom { font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; color: var(--encre); margin-bottom: 6px; }
.prix-montant {
  font-family: 'Fraunces', Georgia, serif; font-weight: 600;
  font-size: 2.4rem; color: var(--corail); line-height: 1; margin-bottom: 4px;
}
.prix-montant small { font-size: 1rem; font-weight: 500; color: var(--texte-doux); }
.prix-detail { font-size: .93rem; color: var(--texte-doux); margin-bottom: 22px; }
.prix-carte .btn { margin-top: auto; align-self: flex-start; }

.livraison-note {
  margin-top: 26px; padding: 20px 22px;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon);
  font-size: .95rem; overflow-x: auto;
}
.livraison-note table { width: 100%; border-collapse: collapse; margin-top: 12px; min-width: 360px; }
.livraison-note th, .livraison-note td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--ligne); font-size: .93rem;
}
.livraison-note th { font-weight: 600; color: var(--encre); }
.livraison-note tr:last-child td { border-bottom: none; }

/* ---------- Arguments ---------- */

.args { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.arg {
  padding: 24px 22px;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon);
}
.arg h3 { font-size: 1.1rem; margin-bottom: .4em; }
.arg p { font-size: .95rem; color: var(--texte-doux); margin: 0; }

.liste-nette { list-style: none; margin: 0; padding: 0; }
.liste-nette li {
  position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--texte-doux);
}
.liste-nette li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 16px; height: 2px; background: var(--corail);
}
.liste-nette b { color: var(--texte); font-weight: 600; }

/* ---------- Avis ---------- */

.carrousel { position: relative; overflow: hidden; }
.carrousel-piste { display: flex; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.carrousel-slide { min-width: 100%; display: flex; justify-content: center; padding: 0 56px; box-sizing: border-box; }
.carrousel-slide img { width: 100%; max-width: 400px; border-radius: var(--rayon); border: 1px solid var(--ligne); display: block; }
.carrousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: 50%; width: 44px; height: 44px;
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  color: var(--texte); box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: background .2s;
}
.carrousel-btn:hover { background: var(--papier-2); }
.carrousel-prev { left: 0; }
.carrousel-next { right: 0; }
.carrousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.carrousel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ligne); border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.carrousel-dot.actif { background: var(--corail); transform: scale(1.3); }

/* ---------- FAQ ---------- */

.faq { max-width: var(--max-texte); margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--ligne);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; color: var(--encre); font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--corail); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--texte-doux); font-size: .97rem; }

/* ---------- Bandeau CTA ---------- */

.bandeau-cta { text-align: center; }
.bandeau-cta h2 { max-width: 18ch; margin-inline: auto; }

/* ---------- Pied de page ---------- */

.pied { background: var(--encre); color: #B9C4D2; padding-block: 48px 40px; font-size: .93rem; }
.pied a { color: #E6EAF0; }
.pied-grille { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pied-grille { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied h4 { font-family: 'Fraunces', Georgia, serif; color: #fff; font-size: 1rem; margin: 0 0 12px; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 8px; }
.pied-bas {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .85rem; color: #8C9AAB;
}

/* ---------- Barre mobile collante ---------- */

.barre-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(241, 233, 227, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--ligne);
}
.barre-mobile .btn { flex: 1; padding: 13px 14px; font-size: .95rem; }
@media (max-width: 780px) {
  .barre-mobile { display: flex; }
  body { padding-bottom: 78px; }
}

/* ---------- Formulaire ---------- */

.form-grille { display: grid; gap: clamp(26px, 4vw, 44px); grid-template-columns: 1fr; }
@media (min-width: 920px) { .form-grille { grid-template-columns: 1.25fr .75fr; align-items: start; } }

.champ { margin-bottom: 20px; }
.champ label {
  display: block; font-weight: 600; font-size: .95rem; color: var(--encre); margin-bottom: 7px;
}
.champ .aide { font-weight: 400; color: var(--texte-doux); font-size: .87rem; }

.champ input[type="text"],
.champ input[type="tel"],
.champ input[type="number"],
.champ select,
.champ textarea {
  width: 100%; padding: 13px 15px;
  font-family: inherit; font-size: 1rem; color: var(--texte);
  background: var(--blanc);
  border: 1px solid var(--ligne); border-radius: var(--rayon-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline: none; border-color: var(--encre-clair);
  box-shadow: 0 0 0 3px rgba(47, 85, 128, .12);
}
.champ textarea { min-height: 88px; resize: vertical; }

.choix { display: grid; gap: 10px; }
.choix label {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 15px 16px; margin: 0;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon-sm);
  cursor: pointer; font-weight: 500;
  transition: border-color .15s ease, background-color .15s ease;
}
.choix label:hover { border-color: var(--encre-clair); }
.choix input { margin-top: 4px; accent-color: var(--corail); flex-shrink: 0; }
.choix label:has(input:checked) { border-color: var(--corail); background: #FEF5EF; }
.choix .c-titre { display: block; color: var(--encre); font-weight: 600; }
.choix .c-detail { display: block; font-size: .89rem; color: var(--texte-doux); font-weight: 400; }
.choix .c-prix { margin-left: auto; font-weight: 600; color: var(--corail); white-space: nowrap; }

.recap {
  position: sticky; top: 84px;
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--rayon); padding: 26px 24px;
  box-shadow: var(--ombre);
}
.recap h3 { font-size: 1.15rem; margin-bottom: 16px; }
.recap-ligne {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; font-size: .96rem; color: var(--texte-doux);
}
.recap-ligne span:last-child { color: var(--texte); font-weight: 500; white-space: nowrap; }
.recap-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--ligne);
}
.recap-total b { font-family: 'Fraunces', Georgia, serif; font-size: 1.8rem; color: var(--corail); }
.recap .btn { width: 100%; margin-top: 18px; }
.recap-note { margin-top: 14px; font-size: .86rem; color: var(--texte-doux); text-align: center; }

.erreur { color: var(--corail); font-size: .88rem; margin-top: 6px; display: none; }
.champ.invalide .erreur { display: block; }
.champ.invalide input, .champ.invalide select { border-color: var(--corail); }

/* ---------- Page merci ---------- */

.merci { text-align: center; padding-block: clamp(70px, 12vw, 130px); }
.merci .coche {
  width: 66px; height: 66px; margin: 0 auto 26px;
  border-radius: 50%; background: var(--corail-doux);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--corail);
}
.merci-etapes {
  max-width: 460px; margin: 34px auto 0; text-align: left;
  background: var(--blanc); border: 1px solid var(--ligne);
  border-radius: var(--rayon); padding: 24px 26px;
}

/* ---------- Pastille WhatsApp flottante ---------- */

.wa-flottant {
  position: fixed; bottom: 24px; right: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  background: #1FA855; color: #fff;
  padding: 12px 18px 12px 15px;
  border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: .93rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-flottant:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.28); color: #fff; }
@media (max-width: 780px) {
  .wa-flottant {
    bottom: 90px; right: 14px;
    padding: 13px;
    border-radius: 50%;
    width: 50px; height: 50px;
    justify-content: center;
  }
  .wa-flottant span { display: none; }
}
