/* ============================================================
   Pas de Panique — feuille de style du site
   ============================================================ */
@font-face { font-family: "Atkinson"; src: url("polices/AtkinsonHyperlegible-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("polices/AtkinsonHyperlegible-Bold.ttf"); font-weight: 700; font-display: swap; }

:root {
  --marine: #1E3A5F;
  --marine-fonce: #162C48;
  --jaune: #F2C46D;
  --jaune-pale: #FBEBC8;
  --creme: #FBF7EF;
  --sapin: #2F6D62;
  --gris: #3F5878;
  --bord: #E3DCCD;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Atkinson", Arial, sans-serif;
  font-size: 20px; line-height: 1.5;
  color: var(--marine); background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
strong { font-weight: 700; }

.conteneur { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-creme { background: var(--creme); }
.section-sombre { background: var(--marine); color: #fff; }

h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.05; letter-spacing: -1px; margin-top: 20px; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -.5px; margin: 16px 0 36px; }
.jaune { color: var(--jaune); }
.souligne { background: linear-gradient(transparent 60%, var(--jaune) 60%); padding: 0 4px; }
.intro { font-size: 22px; margin-bottom: 28px; max-width: 640px; }
.section-sombre .intro { color: #E6ECF4; }

.kicker {
  display: inline-block; background: var(--jaune); color: var(--marine);
  font-weight: 700; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 40px;
}
.kicker-sapin { background: var(--sapin); color: #fff; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 20px; text-decoration: none;
  padding: 14px 26px; border-radius: 14px; border: 3px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.15); }
.bouton:focus-visible { outline: 4px solid var(--sapin); outline-offset: 3px; }
.bouton-jaune { background: var(--jaune); color: var(--marine); }
.bouton-marine { background: var(--marine); color: var(--jaune); }
.bouton-contour { border-color: rgba(255,255,255,.5); color: #fff; }
.bouton-contour-marine { border-color: var(--marine); color: var(--marine); }
.bouton-petit { font-size: 18px; padding: 9px 16px; }
.bouton-grand { flex-direction: column; gap: 0; font-size: 22px; padding: 16px 36px; line-height: 1.2; }
.bouton-grand span { font-size: 36px; letter-spacing: -.5px; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 10; background: var(--marine); color: #fff; }
.entete-ligne { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.marque { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 24px; text-decoration: none; }
.logo { width: 40px; height: 40px; }

/* ---------- Accroche ---------- */
.hero { background: var(--marine); color: #fff; padding: 56px 0 72px; overflow: hidden; }
.hero-grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-sous { font-size: 24px; color: #E6ECF4; margin: 24px 0 32px; max-width: 560px; }
.hero-sous strong { color: #fff; }
.actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.actions-secondaires { display: flex; gap: 12px; flex-wrap: wrap; }
.actions-centre { justify-content: center; margin-top: 16px; }
.garanties { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.garanties li {
  font-size: 17px; font-weight: 700; padding: 7px 14px; border-radius: 12px;
  background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.25);
}
.garanties li::before { content: "✓ "; color: var(--jaune); }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 46% 20%;
  border-radius: 28px; border: 8px solid var(--jaune);
}
.pastille {
  position: absolute; left: -36px; bottom: -24px; width: 170px; height: 170px; border-radius: 50%;
  background: var(--jaune); color: var(--marine); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; transform: rotate(-8deg);
  box-shadow: 0 8px 0 rgba(0,0,0,.2); border: 4px solid var(--marine);
}
.pastille .petit { font-size: 15px; font-weight: 700; line-height: 1.1; }
.pastille .gros { font-size: 60px; font-weight: 700; line-height: 1; }

/* ---------- Cartes problèmes ---------- */
.cartes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.carte {
  background: var(--creme); border: 2px solid var(--bord); border-radius: 22px; padding: 26px;
  display: flex; flex-direction: column;
}
.carte .icone {
  width: 76px; height: 76px; border-radius: 50%; background: var(--jaune-pale);
  display: flex; align-items: center; justify-content: center; font-size: 42px; margin-bottom: 16px;
}
.carte .pensee { font-weight: 700; font-size: 22px; line-height: 1.25; }
.carte .reponse { color: var(--gris); margin: 12px 0 18px; }
.carte .prix {
  margin-top: auto; align-self: flex-start; background: var(--jaune);
  font-weight: 700; font-size: 22px; padding: 4px 16px; border-radius: 10px;
}

/* ---------- Pour les enfants ---------- */
.enfants-grille { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.cadeau { background: var(--jaune); color: var(--marine); border-radius: 26px; padding: 36px; text-align: center; transform: rotate(1.5deg); }
.cadeau-etiquette { display: inline-block; background: var(--marine); color: var(--jaune); font-weight: 700;
  font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 14px; border-radius: 30px; }
.cadeau-titre { font-size: 28px; font-weight: 700; margin-top: 16px; }
.cadeau-prix { font-size: 84px; font-weight: 700; line-height: 1; margin: 6px 0 12px; }
.cadeau-detail { font-size: 18px; }
.bouton-tpme { margin-top: 20px; }
.cadeau-htva { font-weight: 700; font-size: 20px; margin: -8px 0 12px; }
#entreprises { border-top: 6px solid var(--jaune); }

/* ---------- Étapes ---------- */
.etapes { list-style: none; counter-reset: etape; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.etapes li { counter-increment: etape; background: var(--creme); border-radius: 22px; padding: 28px; font-size: 21px; }
.etapes li::before {
  content: counter(etape); display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; background: var(--jaune); font-weight: 700; font-size: 30px; margin-bottom: 16px;
}

/* ---------- Tarifs ---------- */
.tarifs { width: 100%; border-collapse: collapse; background: #fff; border-radius: 22px; overflow: hidden; border: 2px solid var(--bord); }
.tarifs th, .tarifs td { padding: 18px 24px; border-bottom: 2px solid var(--bord); vertical-align: middle; }
.tarifs tr:last-child th, .tarifs tr:last-child td { border-bottom: none; }
.tarifs th { text-align: left; font-size: 21px; }
.tarifs th span { display: block; font-weight: 400; font-size: 17px; color: var(--gris); margin-top: 2px; }
.tarifs td { text-align: right; white-space: nowrap; font-weight: 700; font-size: 24px; }
.note { font-size: 17px; color: var(--gris); margin-top: 18px; }

/* ---------- Formule Tranquillité ---------- */
.coches { list-style: none; max-width: 760px; }
.coches li { position: relative; padding-left: 42px; margin: 12px 0; font-size: 21px; }
.coches li::before { content: "✓"; position: absolute; left: 0; top: -2px; color: var(--jaune); font-weight: 700; font-size: 28px; }
.formules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.formule { background: var(--creme); color: var(--marine); border-radius: 22px; padding: 26px; text-align: center; }
.formule-duree { font-weight: 700; color: var(--sapin); }
.formule-prix { font-size: 50px; font-weight: 700; line-height: 1.1; }
.formule-detail { font-size: 16px; color: var(--gris); }
.formule-vedette { background: var(--jaune); }
.formule-vedette .formule-duree, .formule-vedette .formule-detail { color: var(--marine); }

/* ---------- Louis + avis ---------- */
.louis-grille { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.louis-photo { width: 340px; height: 340px; border-radius: 50%; object-fit: cover; object-position: 46% 24%; border: 10px solid var(--jaune); }
.avis { background: var(--marine); color: #fff; border-radius: 22px; padding: 28px 32px; position: relative; }
.avis p { font-size: 24px; font-weight: 700; line-height: 1.3; }
.avis cite { display: block; margin-top: 10px; color: var(--jaune); font-style: normal; font-weight: 700; }

/* ---------- Engagements ---------- */
.engagements { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.engagements li { position: relative; padding-left: 42px; }
.engagements li::before { content: "✓"; position: absolute; left: 0; top: -2px; color: var(--sapin); font-weight: 700; font-size: 28px; }
.parrainage { display: flex; align-items: center; gap: 24px; background: var(--jaune-pale); border-radius: 22px; padding: 22px 28px; margin-top: 40px; }
.parrainage-gros { font-size: 48px; font-weight: 700; white-space: nowrap; }

/* ---------- En-tête : boutons ---------- */
.entete-actions { display: flex; gap: 10px; align-items: center; }
.bouton-whatsapp { background: #25D366; color: #0B3B1E; }
.ico-wa { width: 22px; height: 22px; flex: none; }

/* ---------- Formulaire ---------- */
.contact-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact-direct { font-size: 20px; font-weight: 700; }
.contact-direct a { color: var(--sapin); }
.formulaire { background: #fff; border: 2px solid var(--bord); border-radius: 22px; padding: 28px; display: grid; gap: 16px; }
.formulaire label { display: block; font-weight: 700; font-size: 19px; }
.formulaire input[type=text], .formulaire input[type=tel], .formulaire textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; font-size: 20px;
  padding: 12px 14px; border: 2px solid var(--bord); border-radius: 12px; color: var(--marine); background: #fff;
}
.formulaire textarea { min-height: 130px; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus { outline: none; border-color: var(--sapin); box-shadow: 0 0 0 3px rgba(47,109,98,.2); }
.formulaire fieldset { border: none; }
.formulaire legend { font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.choix { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 400 !important; margin-right: 18px; cursor: pointer; }
.choix input { width: 22px; height: 22px; accent-color: var(--sapin); }
.requis { color: #9A3B2E; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bouton-envoyer { font-size: 22px; padding: 16px; width: 100%; cursor: pointer; }
.mention { font-size: 15px; color: var(--gris); }

/* ---------- Pages « merci » et « erreur » ---------- */
.page-message { background: var(--creme); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.message-centre { max-width: 620px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.message-centre h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); }
.message-centre p { font-size: 21px; }
.message-centre a:not(.bouton) { color: var(--sapin); font-weight: 700; }
.logo-grand { width: 96px; height: 96px; }

/* ---------- Appel final ---------- */
.final { background: var(--jaune); text-align: center; padding: 80px 0; }
.final h2 { margin: 0 0 10px; }
.final p { font-size: 22px; margin-bottom: 28px; }

/* ---------- Pied de page ---------- */
.pied { background: var(--marine-fonce); color: #C9D3E0; font-size: 16px; padding: 32px 0 110px; text-align: center; }
.pied p + p { margin-top: 6px; }
.pied a { color: #fff; }

/* Note sous le formulaire */
.note-vie-privee { font-size: 16px; color: var(--gris); }
.note-vie-privee a { color: var(--sapin); font-weight: 700; }

/* Page mentions légales */
.page-legale { background: var(--creme); }
.texte-legal { max-width: 780px; padding-top: 32px; padding-bottom: 64px; font-size: 19px; line-height: 1.6; }
.texte-legal h1 { margin-top: 16px; }
.texte-legal h2 { font-size: 28px; margin: 40px 0 12px; }
.texte-legal p + p, .texte-legal p + ul, .texte-legal ul + p { margin-top: 12px; }
.texte-legal ul { padding-left: 24px; }
.texte-legal li + li { margin-top: 8px; }
.texte-legal a:not(.bouton) { color: var(--sapin); font-weight: 700; overflow-wrap: anywhere; }
.mise-a-jour { color: var(--gris); font-size: 16px; }
.retour-bas { margin-top: 40px; }

/* ---------- Bouton d'appel fixe (smartphone) ---------- */
.appel-fixe {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20;
  display: none; text-align: center; text-decoration: none;
  background: var(--jaune); color: var(--marine); font-weight: 700; font-size: 20px;
  padding: 16px; border-radius: 16px; border: 3px solid var(--marine);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.appel-fixe.visible { display: block; }

/* ---------- Tablette et smartphone ---------- */
@media (max-width: 900px) {
  .hero-grille, .enfants-grille, .louis-grille { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; margin: 20px auto 0; }
  .pastille { left: -10px; }
  .cartes, .etapes, .formules { grid-template-columns: 1fr; }
  .engagements { grid-template-columns: 1fr; }
  .louis-photo { width: 240px; height: 240px; margin: 0 auto; }
  .cadeau { transform: none; }
  .contact-grille { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 19px; }
  .section { padding: 56px 0; }
  .conteneur { padding: 0 16px; }
  .entete .bouton-petit { font-size: 16px; padding: 8px 12px; }
  .marque { font-size: 20px; }
  .bouton-grand { width: 100%; }
  .tarifs th, .tarifs td { padding: 14px 14px; }
  .tarifs td { font-size: 20px; }
  .parrainage { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton { transition: none; }
}

/* En-tête : bouton court sur petit écran */
.tel-court { display: none; }
.bouton-petit { white-space: nowrap; }
.marque { white-space: nowrap; }
@media (max-width: 420px) {
  .tel-long { display: none; } .tel-court { display: inline; }
  .marque { font-size: 17px; gap: 8px; }
  .logo { width: 32px; height: 32px; }
  .entete-actions { gap: 6px; }
  .entete .bouton-petit { padding: 8px 10px; font-size: 15px; }
}

