/* ================================================================
   HOOJ Digital — page « Assistant téléphonique » (restauration rapide)
   Complète style.css (mêmes couleurs, police, en-tête, pied de page et fenêtre légale)
   ================================================================ */

.page-ia .landing {
  min-height: 0;
  grid-template-rows: auto;
  gap: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-link {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.header-link:hover { color: var(--white); }

/* ── Héros ── */
.ia-hero {
  width: min(100%, 1050px);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) 0 clamp(30px, 5vh, 52px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ia-hero .hero-title { font-size: clamp(40px, 6.2vw, 86px); }

.ia-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(28px, 4.5vh, 44px);
  animation: reveal-up .75s .58s both;
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .04);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.secondary-cta:hover {
  border-color: rgba(167, 139, 250, .5);
  background: rgba(124, 58, 237, .14);
  transform: translateY(-2px);
}

.ia-note {
  margin-top: 16px;
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
}

.ia-note a { color: var(--accent-soft); font-weight: 600; text-underline-offset: 3px; }

/* ── Vidéo ── */
.ia-demo {
  width: min(100%, 1060px);
  margin: 0 auto clamp(64px, 10vh, 110px);
  scroll-margin-top: 24px;
}

.ia-video {
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, .22);
  border-radius: 20px;
  background: #0b0920;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 0 8px rgba(124, 58, 237, .06);
}

.ia-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.ia-legende {
  margin-top: 12px;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  text-align: center;
}

/* ── Sections ── */
.ia-section {
  width: min(100%, 1100px);
  margin: 0 auto clamp(70px, 11vh, 120px);
}

.ia-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}

.ia-h2 {
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--white);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.05em;
  word-spacing: .08em;
  text-align: center;
  text-wrap: balance;
}

.ia-h2 em { color: var(--accent-light); font-style: normal; }

.ia-intro {
  max-width: 640px;
  margin: 0 auto clamp(30px, 5vh, 46px);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
  text-wrap: balance;
}

.ia-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

/* 4 cartes : 2 × 2 plutôt qu'une carte seule sur la deuxième ligne */
@media (min-width: 700px) {
  .ia-grille-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; }
}

.ia-carte {
  padding: 24px;
  border: 1px solid rgba(196, 181, 253, .16);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(124, 58, 237, .1), rgba(255, 255, 255, .02));
}

.ia-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid rgba(167, 139, 250, .35);
  border-radius: 12px;
  color: #ddd6fe;
  background: rgba(124, 58, 237, .18);
}

.ia-carte h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.ia-carte p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Étapes numérotées */
.ia-etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: etape;
  list-style: none;
}

.ia-etapes li {
  position: relative;
  padding: 24px 24px 24px 72px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
}

.ia-etapes li::before {
  counter-increment: etape;
  content: counter(etape);
  position: absolute;
  left: 22px;
  top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  font-size: 15px;
  font-weight: 800;
}

.ia-etapes h3 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
}

.ia-etapes p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Questions */
.ia-faq {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid rgba(196, 181, 253, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
}

.ia-faq details { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.ia-faq details:last-child { border-bottom: 0; }

.ia-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.ia-faq summary::-webkit-details-marker { display: none; }

.ia-faq summary::after {
  content: '+';
  flex: none;
  color: var(--accent-light);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  transition: transform .2s ease;
}

.ia-faq details[open] summary::after { transform: rotate(45deg); }

.ia-faq details p {
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Appel final */
.ia-final {
  width: min(100%, 1100px);
  margin: 0 auto clamp(56px, 9vh, 90px);
  padding: clamp(34px, 6vw, 60px) clamp(22px, 5vw, 60px);
  border: 1px solid rgba(167, 139, 250, .35);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, .35), rgba(15, 12, 41, .4) 70%);
  text-align: center;
}

.ia-final .ia-h2 { margin-bottom: 12px; }
.ia-final .ia-intro { margin-bottom: 26px; }
.ia-final .ia-actions { margin-top: 0; animation: none; }

/* Lien vers cette page depuis l'accueil */
.ia-annonce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(22px, 3.5vh, 34px);
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(167, 139, 250, .35);
  border-radius: 999px;
  color: rgba(255, 255, 255, .86);
  background: rgba(124, 58, 237, .12);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  animation: reveal-up .75s .66s both;
  transition: border-color .2s ease, background .2s ease;
}

.ia-annonce strong {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ia-annonce:hover { border-color: rgba(167, 139, 250, .6); background: rgba(124, 58, 237, .2); }

@media (max-width: 640px) {
  .header-link { display: none; }
  .ia-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .ia-actions .primary-cta, .ia-actions .secondary-cta { justify-content: center; }
  .ia-etapes li { padding: 20px 20px 20px 66px; }
  .ia-faq summary { padding: 16px 18px; font-size: 14px; }
  .ia-faq details p { padding: 0 18px 16px; }
  .ia-annonce { flex-wrap: wrap; justify-content: center; border-radius: 16px; padding: 10px 14px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ia-annonce, .ia-actions { animation: none; }
}

/* Tablette en portrait : 2 colonnes, un élément seul en dernière ligne prend toute la largeur */
@media (min-width: 641px) and (max-width: 1000px) {
  .ia-grille, .ia-etapes { grid-template-columns: 1fr 1fr; }
  .ia-grille > :last-child:nth-child(odd), .ia-etapes > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ── Carte vers l'autre activité (assistant ↔ création de sites) ── */
.hd-activite { margin-bottom: clamp(56px, 9vh, 96px); }

.hd-activite-carte {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid rgba(196, 181, 253, .22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .14), rgba(255, 255, 255, .03));
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.hd-activite-carte:hover { border-color: rgba(167, 139, 250, .55); transform: translateY(-2px); }
.hd-activite-carte .ia-icone { flex-shrink: 0; margin: 0; }
.hd-activite-texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.hd-activite-texte .ia-eyebrow { margin: 0; text-align: left; }
.hd-activite-texte strong { color: var(--white); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.hd-activite-texte span:last-child { color: var(--muted); font-size: 14px; line-height: 1.55; }
.hd-activite-fleche { flex-shrink: 0; color: var(--accent-light); }

@media (max-width: 640px) {
  .hd-activite-carte { flex-direction: column; align-items: flex-start; padding: 20px; }
  .hd-activite-fleche { display: none; }
}

/* ── Tarif ── */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid rgba(196, 181, 253, .3);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(124, 58, 237, .18), rgba(255, 255, 255, .03));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .4);
  text-align: center;
}


  position: relative;
  padding-left: 28px;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.5;
}
  content: "";
  position: absolute;
  left: 4px;
  top: .45em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent-light);
  border-bottom: 2px solid var(--accent-light);
  transform: rotate(-45deg);
}

/* ── Questions fréquentes : un groupe par activité ── */
.hd-faq-titre {
  max-width: 820px;
  margin: 30px auto 12px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  scroll-margin-top: 24px;
}
.hd-faq-titre:first-of-type { margin-top: 0; }
.ia-intro a { color: var(--accent-soft); text-underline-offset: 3px; }

/* ── Appels à l'action ── */
.hd-rassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 18px;
  list-style: none;
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  font-weight: 600;
}
.hd-rassurance li { position: relative; padding-left: 20px; }
.hd-rassurance li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .38em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent-light);
  border-bottom: 2px solid var(--accent-light);
  transform: rotate(-45deg);
}
.ia-final .hd-rassurance { margin-top: 20px; }

.hd-bande-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  width: min(100%, 1100px);
  margin: 0 auto clamp(70px, 11vh, 120px);
  padding: 24px 28px;
  border: 1px solid rgba(196, 181, 253, .28);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(124, 58, 237, .22), rgba(255, 255, 255, .03));
}
.hd-bande-cta p { color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 1.55; }
.hd-bande-cta strong { color: var(--white); }
.hd-bande-cta .primary-cta { flex-shrink: 0; animation: none; }

/* Barre d'action sur téléphone (apparaît après le haut de page) */
.hd-barre-cta { display: none; }

@media (max-width: 640px) {
  .hd-bande-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 22px 20px; }
  .hd-bande-cta .primary-cta { justify-content: center; }

  .hd-barre-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 16px;
    border: 1px solid rgba(196, 181, 253, .3);
    border-radius: 16px;
    background: rgba(15, 12, 41, .94);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
    transform: translateY(140%);
    transition: transform .3s ease;
  }
  .hd-barre-cta[hidden] { display: none; }
  .hd-barre-cta.visible { transform: none; }
  .hd-barre-cta span { color: var(--white); font-size: 14px; font-weight: 700; }
  .hd-barre-cta .primary-cta { min-height: 44px; padding: 0 16px; font-size: 14px; animation: none; }
  .page-ia .site-footer { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .hd-barre-cta { transition: none; }
}

/* Section création de sites (accueil) */
.hd-sites-cta { margin-top: 28px; animation: none; }

/* Pied de page : « Gérer les cookies » (bouton présenté comme un lien) */
.footer-cookies { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; opacity: .85; }
.footer-cookies:hover, .footer-cookies:focus-visible { opacity: 1; text-decoration: underline; }

/* Calculateur « ce que vous récupérez » */
.hd-calc { width: min(860px, 100%); margin: 0 auto; padding: clamp(18px, 3vw, 28px); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(124,58,237,.06)); border: 1px solid rgba(196,181,253,.2); display: grid; gap: 20px; }
.hd-calc-reglages { display: grid; gap: 18px; }
.hd-calc-champ { display: grid; gap: 8px; text-align: left; }
.hd-calc-champ span { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 15px; font-weight: 600; }
.hd-calc-champ strong { color: var(--white); font-size: 17px; font-variant-numeric: tabular-nums; }
.hd-calc-champ input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, #7c3aed 0%, #a78bfa var(--pct, 50%), rgba(255,255,255,.12) var(--pct, 50%)); }
.hd-calc-champ input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid #7c3aed; box-shadow: 0 4px 14px rgba(124,58,237,.5); }
.hd-calc-champ input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid #7c3aed; }
.hd-calc-champ input[type=range]:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 4px; }
.hd-calc-resultats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hd-calc-res { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(196,181,253,.14); text-align: left; }
.hd-calc-res span { color: var(--muted); font-size: 13px; font-weight: 600; }
.hd-calc-res strong { color: var(--white); font-size: clamp(24px, 4vw, 30px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hd-calc-res-fort { background: rgba(124,58,237,.22); border-color: rgba(167,139,250,.45); }
.hd-calc-res-fort strong { color: #c4b5fd; }
.hd-calc-note { margin: 0; color: rgba(255,255,255,.45); font-size: 12px; line-height: 1.5; text-align: left; }

/* Articles « Conseils » */
.hd-article { width: min(760px, 100%); margin: 0 auto; padding: 24px 20px 40px; }
.hd-article-entete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0 28px; }
.hd-article-marque { color: var(--white); font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.hd-article-marque span { color: #a78bfa; }
.hd-article-lien { color: #c4b5fd; font-size: 14px; font-weight: 700; text-decoration: none; }
.hd-article h1 { color: var(--white); font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -.03em; margin: 6px 0 14px; }
.hd-article h2 { color: var(--white); font-size: clamp(21px, 3vw, 26px); letter-spacing: -.02em; margin: 34px 0 10px; }
.hd-article p, .hd-article li { color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.7; }
.hd-article ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0 18px; }
.hd-article a { color: #c4b5fd; }
.hd-article a.primary-cta { color: var(--white); text-decoration: none; }
.hd-article strong { color: var(--white); }
.hd-article-fil { font-size: 14px !important; color: rgba(255,255,255,.5) !important; margin: 0; }
.hd-article-chapo { font-size: 19px !important; color: rgba(255,255,255,.85) !important; margin-bottom: 26px; }
.hd-article-cta { margin: 40px 0; padding: 22px; border-radius: 20px; background: rgba(124,58,237,.16); border: 1px solid rgba(167,139,250,.35); display: grid; gap: 14px; justify-items: start; }
.hd-article-cta p { margin: 0; }
.hd-article-cta .primary-cta { animation: none; }
.hd-article-liste { list-style: none; padding: 0 !important; gap: 12px !important; }
.hd-article-liste a { display: grid; gap: 6px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(196,181,253,.16); text-decoration: none; }
.hd-article-liste a:hover { border-color: rgba(196,181,253,.4); }
.hd-article-liste strong { font-size: 18px; }
.hd-article-liste span { color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.5; }

/* Formulaire de contact (enregistré dans l'application HOOJ, pas d'e-mail envoyé) */
.hd-contact { width: min(760px, 100%); margin: 0 auto; padding: clamp(18px, 3vw, 28px); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(124,58,237,.06)); border: 1px solid rgba(196,181,253,.2); display: grid; gap: 16px; text-align: left; }
.hd-contact-sujets { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-contact-sujets label { position: relative; cursor: pointer; }
.hd-contact-sujets input { position: absolute; opacity: 0; pointer-events: none; }
.hd-contact-sujets span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(196,181,253,.25); background: rgba(255,255,255,.04); color: var(--muted); font-size: 14px; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.hd-contact-sujets input:checked + span { background: rgba(124,58,237,.25); border-color: #a78bfa; color: var(--white); }
.hd-contact-sujets input:focus-visible + span { outline: 3px solid #c4b5fd; outline-offset: 2px; }
.hd-contact-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hd-contact-champ { display: grid; gap: 6px; }
.hd-contact-champ span { color: var(--muted); font-size: 14px; font-weight: 600; }
.hd-contact-champ em { font-style: normal; opacity: .7; font-weight: 500; }
.hd-contact-champ input, .hd-contact-champ textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(196,181,253,.22); background: rgba(15,12,41,.6); color: var(--white); font: inherit; font-size: 16px; }
.hd-contact-champ textarea { resize: vertical; min-height: 120px; }
.hd-contact-champ input:focus, .hd-contact-champ textarea:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(124,58,237,.3); }
.hd-contact-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hd-contact-aide, .hd-contact-autre { margin: 0; color: var(--muted); font-size: 13px; }
.hd-contact-aide a, .hd-contact-autre a { color: #c4b5fd; }
.hd-contact .primary-cta { justify-self: start; border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 800; }
.hd-contact .primary-cta[disabled] { opacity: .6; cursor: wait; }
.hd-contact-etat { margin: 0; font-size: 15px; font-weight: 600; }
.hd-contact-etat:empty { display: none; }
.hd-contact-etat.ok { color: #6ee7b7; }
.hd-contact-etat.erreur { color: #fca5a5; }
@media (max-width: 600px) {
  .hd-contact-grille { grid-template-columns: 1fr; }
  .hd-contact .primary-cta { justify-self: stretch; justify-content: center; }
}
