/* ============================================================
   Page d'offre Punchy Digital — /[slug]/offre
   DA d'agence : indigo #140A6E, bleu clair #A9DBFF, Poppins.
   Échelle d'espacement unique, fondée sur 8 px : 8, 16, 24, 32, 48, 64, 96.
   Mobile d'abord ; tablette de 600 à 1 023 px ; ordinateur à partir de 1 024 px.
   ============================================================ */
body.page-offre {
  --indigo: #140A6E;
  --indigo-fonce: #0C0548;
  --chaud: #A9DBFF;
  --encre: #1B1A2E;
  --encre-2: #2C2B40;
  --encre-3: #3E3D52;
  --encre-4: #5A596E;
  --lavande: #F4F3FB;
  --bord: #E6E4F3;
  --e1: 8px; --e2: 16px; --e3: 24px; --e4: 32px; --e6: 48px; --e8: 64px; --e12: 96px;
  --marge: 24px;          /* marge latérale du conteneur */
  --entre-sections: 64px; /* espace vertical entre deux sections */
  --carte: 24px;          /* espace intérieur des cartes */
  color: var(--encre);
}
.page-offre a { color: var(--indigo); }
.page-offre a:focus-visible, .page-offre button:focus-visible, .page-offre summary:focus-visible {
  outline: 3px solid var(--chaud); outline-offset: 2px;
}
.o-conteneur { width: 100%; max-width: calc(1150px + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); }

/* ---------- En-tête ---------- */
.o-entete { background: var(--indigo); border-radius: 0 0 24px 24px; padding: var(--e2) 0; }
.o-entete img { height: 40px; width: auto; display: block; }

/* ---------- Boutons ---------- */
.o-btn {
  display: flex; align-items: center; justify-content: center;
  background: var(--indigo); color: #FFFFFF !important; text-decoration: none;
  font-family: inherit; font-weight: 500; font-size: 16px; line-height: 1.3;
  padding: var(--e2) var(--e4); min-height: 56px;
  border: 0; border-radius: 12px; text-align: center; cursor: pointer; width: 100%;
}
.o-btn:hover { background: var(--indigo-fonce); }
.o-petit { font-size: 12px; line-height: 1.6; color: var(--encre-4); }

/* ---------- Titres de section ---------- */
.o-section { padding-top: var(--entre-sections); }
.o-titre { display: flex; flex-direction: column; align-items: center; gap: var(--e2); text-align: center; margin-bottom: var(--e6); }
.o-titre h2 { margin: 0; font-weight: 600; font-size: 26px; line-height: 1.25; max-width: 760px; }
.o-titre.o-grand h2 { font-weight: 700; }
.o-surtitre { color: var(--indigo); font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.o-trait { width: 48px; height: 2px; background: var(--indigo); }
.o-trait-blanc { background: #FFFFFF; }
.o-h2-centre { margin: 0 0 var(--e6); text-align: center; font-weight: 600; font-size: 26px; line-height: 1.25; }

/* ============================================================
   HAUT DE PAGE
   ============================================================ */
.o-accroche { background: var(--lavande); padding: var(--e6) 0; }
.o-accroche-grille { display: flex; flex-direction: column; }
.o-accroche-texte { display: flex; flex-direction: column; }
.o-prepare {
  background: #FFFFFF; color: var(--indigo); font-size: 13px; font-weight: 600;
  padding: var(--e1) var(--e2); border-radius: 999px; align-self: flex-start;
  box-shadow: 0 2px 8px rgba(20, 10, 110, 0.08); overflow-wrap: anywhere;
}
.o-accroche h1 {
  margin: var(--e3) 0 0; font-weight: 700; color: var(--encre);
  font-size: clamp(30px, 9vw, 36px); line-height: 1.1;
}
.o-chapo { margin: var(--e3) 0 0; font-size: 16px; line-height: 1.6; color: var(--encre-2); }
.o-atouts { list-style: none; margin: var(--e4) 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.o-atouts li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.o-atouts svg { flex-shrink: 0; }
.o-cta { margin-top: var(--e6); display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.o-cta-texte { margin-top: var(--e2); font-size: 14px; line-height: 1.5; color: var(--encre-3); }
.o-cta .o-petit { margin-top: var(--e1); }

/* ---------- Visuel : portable et téléphone avec la vraie démo ---------- */
.o-visuel { position: relative; margin-top: 40px; padding-bottom: 22%; pointer-events: none; user-select: none; }
.o-ecran { position: relative; overflow: hidden; background: #FFFFFF; }
.o-ecran iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; }

.o-portable { position: relative; width: 88%; }
.o-portable-ecran {
  background: #1B1A2E; padding: 2.4% 2.4% 2.8%; border-radius: 16px 16px 6px 6px;
  box-shadow: 0 18px 40px rgba(20, 10, 110, 0.16);
}
.o-portable-ecran .o-ecran { aspect-ratio: 1280 / 800; border-radius: 4px; }
.o-portable-base {
  position: relative; width: 112%; margin-left: -6%; height: clamp(8px, 1.4vw, 16px);
  background: linear-gradient(180deg, #ECEEF2 0%, #C6CAD3 100%); border-radius: 2px 2px 14px 14px / 2px 2px 10px 10px;
}
.o-portable-base::before {
  content: ''; position: absolute; left: 42%; width: 16%; top: 0; height: 45%;
  background: #B4B9C4; border-radius: 0 0 6px 6px;
}
.o-portable::after { /* ombre douce sous l'appareil */
  content: ''; position: absolute; left: 0; right: 0; bottom: -18px; height: 24px; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(20, 10, 110, 0.25), rgba(20, 10, 110, 0) 70%);
}
.o-telephone {
  position: absolute; right: 0; bottom: 0; width: 21%;
  background: #1B1A2E; padding: clamp(4px, 0.7vw, 8px); border-radius: clamp(16px, 2.6vw, 30px);
  box-shadow: 0 16px 36px rgba(20, 10, 110, 0.24);
}
.o-telephone .o-ecran { aspect-ratio: 390 / 844; border-radius: clamp(12px, 2vw, 23px); }
.o-badge-pret {
  position: absolute; left: 0; bottom: 4%;
  display: flex; align-items: center; gap: 12px;
  background: #FFFFFF; border-radius: 16px; padding: 12px var(--e2);
  box-shadow: 0 12px 32px rgba(20, 10, 110, 0.16);
}
.o-badge-coche {
  width: 32px; height: 32px; border-radius: 999px; background: var(--indigo); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.o-badge-pret b { display: block; font-weight: 600; font-size: 13px; line-height: 1.3; }
.o-badge-vert {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  background: #DCF5E7; color: #137A45; font-size: 11px; font-weight: 500;
  padding: 2px 10px; border-radius: 999px;
}
.o-badge-vert::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: #1E9E5A; }

/* Apparition douce : portable, puis téléphone, puis badge (une fois les aperçus chargés) */
@keyframes o-apparition { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.o-apparition { opacity: 0; }
.o-visuel.visible .o-apparition { animation: o-apparition .55s ease-out both; }
.o-visuel.visible .o-telephone { animation-delay: .35s; }
.o-visuel.visible .o-badge-pret { animation-delay: .7s; }
@media (prefers-reduced-motion: reduce) {
  .o-visuel.visible .o-apparition { animation: none; opacity: 1; }
}

/* ============================================================
   OFFRE
   ============================================================ */
.o-carte-prix { border: 2px solid var(--indigo); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.o-prix-haut { padding: var(--carte); display: flex; flex-direction: column; align-items: flex-start; }
.o-badge-chaud {
  background: var(--chaud); color: var(--encre); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.o-prix-titre { margin-top: var(--e3); font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--indigo); }
.o-prix { margin-top: var(--e1); font-weight: 700; font-size: 48px; line-height: 1.1; color: var(--indigo); }
.o-prix + .o-petit { margin-top: var(--e1); }
.o-prix-haut .o-btn { margin-top: var(--e3); }
.o-prix-haut .o-petit:last-child { margin-top: var(--e2); align-self: stretch; text-align: center; }
.o-prix-bas { background: var(--lavande); padding: var(--carte); display: flex; flex-direction: column; }
.o-inclus-titre { font-weight: 600; font-size: 14px; }
.o-inclus { list-style: none; margin: var(--e2) 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.o-inclus li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--encre-2); }
.o-inclus svg { flex-shrink: 0; margin-top: 2px; width: 18px; height: 18px; stroke-width: 2.4; }
.o-apres { margin-top: var(--e3); background: #FFFFFF; border-radius: 12px; padding: var(--e2) var(--e3); font-size: 14px; line-height: 1.6; color: var(--encre-2); }
.o-non-inclus { margin: var(--e3) 0 0; font-size: 13px; line-height: 1.6; color: var(--encre-4); }
.o-non-inclus b { color: var(--encre-3); }

/* ============================================================
   POUR TOUS LES INDÉPENDANTS
   ============================================================ */
.o-metiers .o-titre { margin-bottom: var(--e2); }
.o-intro { margin: 0 auto var(--e6); max-width: 640px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--encre-3); }
.o-grille-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e2); }
.o-grille-photos figure { position: relative; height: 200px; border-radius: 16px; overflow: hidden; margin: 0; }
.o-grille-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.o-grille-photos figure::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 88px;
  background: linear-gradient(0deg, rgba(20, 10, 110, 0.88), rgba(20, 10, 110, 0));
}
.o-grille-photos figcaption {
  position: absolute; z-index: 1; left: var(--e2); right: var(--e2); bottom: var(--e2);
  color: #FFFFFF; font-size: 14px; font-weight: 600; line-height: 1.3;
}
.o-mention { margin-top: var(--e1); font-size: 11px; color: #7A798C; text-align: center; }
.o-liste-metiers { margin-top: var(--e3); display: flex; flex-direction: column; gap: var(--e3); }
.o-metier { background: var(--lavande); border-radius: 16px; padding: var(--carte); display: flex; gap: var(--e2); align-items: flex-start; }
.o-metier-icone {
  width: 40px; height: 40px; border-radius: 10px; background: var(--indigo); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.o-metier-nom { font-weight: 600; font-size: 15px; }
.o-metier-liste { margin-top: var(--e1); font-size: 13px; line-height: 1.6; color: var(--encre-3); }
.o-et-autres { margin-top: var(--e3); text-align: center; font-size: 14px; font-weight: 500; color: var(--indigo); }

/* ============================================================
   4 ÉTAPES
   ============================================================ */
.o-etapes ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--e3); }
.o-etapes li {
  background: #FFFFFF; border: 1px solid var(--bord); border-radius: 16px; padding: var(--carte);
  display: flex; gap: var(--e2); align-items: flex-start;
}
.o-num {
  width: 40px; height: 40px; border-radius: 999px; background: var(--indigo); color: #FFFFFF;
  font-weight: 600; font-size: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.o-etape-titre { font-weight: 600; font-size: 15px; line-height: 1.4; }
.o-etape-texte { margin-top: var(--e1); font-size: 14px; line-height: 1.6; color: var(--encre-3); }

/* ============================================================
   QUI SOMMES-NOUS (bandeau lavande)
   ============================================================ */
.o-qui { margin-top: var(--entre-sections); background: var(--lavande); padding: var(--entre-sections) 0; }
.o-qui-grille { display: flex; flex-direction: column; gap: var(--e4); }
.o-qui-grille .o-titre { order: 1; margin-bottom: 0; }
.o-titre.o-gauche { align-items: flex-start; text-align: left; }
.o-quentin { order: 2; position: relative; border-radius: 20px; overflow: hidden; }
.o-qui-p { order: 3; margin: 0; font-size: 15px; line-height: 1.7; color: var(--encre-2); }
.o-quentin img { display: block; width: 100%; height: 320px; object-fit: cover; object-position: center top; }
.o-quentin-nom {
  position: absolute; left: var(--e2); bottom: var(--e2); background: #FFFFFF; border-radius: 14px; padding: 12px var(--e2);
  display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(20, 10, 110, 0.18);
}
.o-quentin-nom b { font-weight: 600; font-size: 15px; }
.o-quentin-nom span { font-size: 12px; color: var(--encre-3); }

/* ============================================================
   FAQ
   ============================================================ */
.o-faq-liste { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--e3); }
.o-faq details { background: #FFFFFF; border-radius: 16px; box-shadow: 0 3px 14px rgba(20, 10, 110, 0.08); }
.o-faq summary {
  list-style: none; cursor: pointer; padding: var(--carte); min-height: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: var(--e2);
  font-weight: 600; font-size: 15px; line-height: 1.4;
}
.o-faq summary::-webkit-details-marker { display: none; }
.o-faq summary::after {
  content: ''; width: 8px; height: 8px; flex-shrink: 0;
  border-right: 2px solid var(--encre); border-bottom: 2px solid var(--encre);
  transform: rotate(45deg) translateY(-3px);
}
.o-faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -1px); }
.o-faq-reponse { padding: 0 var(--carte) var(--carte); font-size: 14px; line-height: 1.6; color: var(--encre-3); }

/* ============================================================
   PARLONS DE VOTRE SITE + CALENDRIER
   ============================================================ */
.o-parlons-carte {
  background: var(--chaud); border-radius: 20px; padding: var(--e4) var(--e3);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.o-parlons h2 { margin: 0; font-weight: 600; font-size: 24px; line-height: 1.3; }
.o-parlons p { margin: var(--e2) 0 0; font-size: 15px; line-height: 1.6; color: var(--encre-2); max-width: 560px; }
.o-calendrier { margin-top: var(--e3); width: 100%; outline: none; display: flex; flex-direction: column; align-items: center; }
.o-calendrier .o-btn { max-width: 380px; }
.o-calendrier.charge { background: #FFFFFF; border-radius: 16px; overflow: hidden; }
.o-calendrier iframe { display: block; width: 100%; height: 1050px; border: 0; }
.o-parlons .o-mention { margin-top: var(--e2); color: var(--encre-3); }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.o-pied {
  margin-top: var(--entre-sections); background: var(--indigo); border-radius: 24px 24px 0 0; padding: var(--e6) var(--marge);
  display: flex; flex-direction: column; align-items: center; gap: var(--e2); text-align: center;
}
.o-pied img { height: 52px; width: auto; }
.o-pied-texte { color: #CFCBEF; font-size: 13px; line-height: 1.6; }
.page-offre .o-pied-texte a { color: #CFCBEF; }
.o-pied-liens { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--e1) var(--e3); padding-top: var(--e1); }
.page-offre .o-pied-liens a { color: #FFFFFF; font-size: 13px; min-height: 32px; display: inline-flex; align-items: center; }

/* ============================================================
   FENÊTRE CALENDLY (par-dessus la page ; plein écran sur mobile)
   ============================================================ */
html.calendly-ouvert, html.calendly-ouvert body { overflow: hidden; }
.cal-fond { position: fixed; inset: 0; z-index: 60; background: rgba(12, 5, 72, 0.6); animation: cal-fondu .2s ease-out; }
.cal-fenetre {
  position: fixed; z-index: 61; inset: 0; background: #FFFFFF;
  display: flex; flex-direction: column; animation: cal-monte .25s ease-out;
}
.cal-haut {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 24px; border-bottom: 1px solid #E6E4F3; flex-shrink: 0;
}
.cal-titre { font-weight: 600; font-size: 16px; color: #1B1A2E; }
.cal-fermer {
  width: 44px; height: 44px; border-radius: 999px; border: 0; background: #F4F3FB; color: #1B1A2E;
  font-size: 26px; line-height: 1; cursor: pointer; font-family: inherit; flex-shrink: 0;
}
.cal-fermer:hover { background: #E6E4F3; }
.cal-fenetre iframe { flex: 1; width: 100%; border: 0; min-height: 0; }
.cal-chargement { position: absolute; top: 50%; left: 0; right: 0; text-align: center; color: #5A596E; font-size: 14px; }
.cal-fenetre.charge .cal-chargement { display: none; }
.cal-mention { flex-shrink: 0; text-align: center; font-size: 11px; color: #5A596E; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #E6E4F3; }
@keyframes cal-fondu { from { opacity: 0; } }
@keyframes cal-monte { from { opacity: 0; transform: translateY(24px); } }
@media (min-width: 768px) {
  .cal-fenetre {
    inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(1000px, calc(100vw - 64px)); height: min(760px, calc(100vh - 64px));
    border-radius: 20px; overflow: hidden; box-shadow: 0 24px 64px rgba(12, 5, 72, 0.35);
    animation: cal-fondu .25s ease-out;
  }
}
@media (prefers-reduced-motion: reduce) { .cal-fond, .cal-fenetre { animation: none; } }

/* ---------- Mobile (moins de 768 px) : seul le téléphone est affiché ---------- */
@media (max-width: 767px) {
  .o-portable { display: none; }
  .o-visuel { padding-bottom: 0; display: flex; justify-content: center; }
  .o-telephone { position: relative; right: auto; bottom: auto; width: min(56%, 230px); }
  .o-badge-pret { left: 0; bottom: 10%; }
}

/* ============================================================
   TABLETTE (600 à 1 023 px) : version mobile, centrée
   ============================================================ */
@media (min-width: 600px) and (max-width: 1023px) {
  .o-conteneur { max-width: calc(720px + 2 * var(--marge)); }
  .o-cta .o-btn { max-width: 380px; align-self: center; }
  .o-grille-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .o-liste-metiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   ORDINATEUR (à partir de 1 024 px)
   ============================================================ */
@media (min-width: 1024px) {
  body.page-offre { --marge: 48px; --entre-sections: 96px; --carte: 32px; }
  .o-entete { padding: var(--e3) 0; border-radius: 0 0 32px 32px; }
  .o-btn { font-size: 17px; }

  /* Haut de page : 45 % texte / 55 % visuel, écart de 64 px, centrés verticalement */
  .o-accroche { padding: var(--e12) 0; }
  .o-accroche-grille {
    display: grid; grid-template-columns: 45fr 55fr; column-gap: var(--e8);
    grid-template-areas: "texte visuel" "cta visuel"; align-items: center;
  }
  .o-accroche-texte { grid-area: texte; align-self: end; container-type: inline-size; }
  /* Titre sur 2 lignes : taille calculée sur la largeur de la colonne, 52 px au maximum */
  .o-accroche h1 { font-size: clamp(32px, 9.7cqi, 52px); } /* 9,7 % de la colonne : la ligne la plus longue tient avec une petite marge */
  .o-accroche h1 span { display: block; white-space: nowrap; }
  .o-chapo { font-size: 18px; }
  .o-atouts li { font-size: 16px; }
  .o-visuel { grid-area: visuel; margin-top: 0; }
  .o-cta { grid-area: cta; align-self: start; margin-top: 40px; align-items: flex-start; text-align: left; }
  .o-cta .o-btn { width: auto; padding: var(--e2) var(--e6); }
  .o-badge-pret { padding: var(--e2) var(--e3); gap: var(--e2); bottom: 6%; }
  .o-badge-coche { width: 40px; height: 40px; }
  .o-badge-pret b { font-size: 16px; }
  .o-badge-vert { font-size: 12px; padding: 3px 12px; }

  /* Titres de section */
  .o-titre h2, .o-h2-centre { font-size: 36px; }
  .o-intro { font-size: 17px; }

  /* Offre à l'horizontale */
  .o-carte-prix { flex-direction: row; }
  .o-prix-haut { flex: 0 0 38%; justify-content: center; }
  .o-prix { font-size: 60px; }
  .o-prix-haut .o-btn { align-self: stretch; }
  .o-prix-bas { flex: 1; }
  .o-inclus { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e2) var(--e3); }

  /* Univers : 4 photos, 4 cartes */
  .o-grille-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--e3); }
  .o-grille-photos figure { height: 300px; border-radius: 20px; }
  .o-grille-photos figcaption { left: var(--e3); right: var(--e3); bottom: var(--e3); font-size: 16px; }
  .o-liste-metiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .o-metier { flex-direction: column; }

  /* 4 étapes sur une ligne */
  .o-etapes ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .o-etapes li { flex-direction: column; }
  .o-num { width: 44px; height: 44px; }
  .o-etape-titre { font-size: 17px; }
  .o-etape-texte { font-size: 15px; }

  /* Qui sommes-nous : texte à gauche, photo à droite */
  .o-qui-grille {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--e8); row-gap: var(--e3);
    grid-template-areas: "titre photo" "texte photo"; align-items: end;
  }
  .o-qui-grille .o-titre { grid-area: titre; }
  .o-qui-p { grid-area: texte; align-self: start; font-size: 17px; }
  .o-quentin { grid-area: photo; align-self: center; }
  .o-quentin img { height: 440px; }

  /* FAQ */
  .o-faq summary { font-size: 16px; padding: var(--e3) var(--carte); }
  .o-faq-reponse { font-size: 15px; }

  /* Rendez-vous */
  .o-parlons-carte { padding: var(--e6); }
  .o-parlons h2 { font-size: 34px; }
  .o-parlons p { font-size: 17px; }
  .o-calendrier { margin-top: var(--e4); }
  .o-calendrier iframe { height: 720px; }

  .o-pied { padding: var(--e8) var(--marge); }
}
