/* =====================================================================
   ChadIa — site vitrine public (chad-ia.fr)
   ---------------------------------------------------------------------
   Feuille autonome : les pages vitrine ne dépendent pas de la feuille
   Tailwind de l'application, qui n'est compilée qu'avec les classes
   utilisées par l'outil. Les couleurs reprennent celles du thème pour
   que le site et l'outil se ressemblent.
   ===================================================================== */

:root {
  --ink-950: #0e1220;
  --ink-900: #171e30;
  --ink-800: #20283f;
  --ink-700: #2c3552;
  --rose-500: #eb3b3b;
  --rose-600: #e52728;
  --rose-700: #c01d21;
  --violet-600: #14887a;
  --mint-500: #10b981;
  --mint-600: #059669;
  --amber-400: #fbbf24;

  --texte: #2a3045;
  --texte-doux: #5f6782;
  --texte-pale: #949aae;
  --fond: #f7f8fa;
  --fond-carte: #ffffff;
  --bord: rgba(23, 30, 48, .1);

  --degrade: linear-gradient(135deg, var(--rose-600), var(--violet-600));
  --ombre-carte: 0 1px 3px rgba(14, 18, 32, .05), 0 18px 45px -24px rgba(14, 18, 32, .26);
  --ombre-flottante: 0 24px 60px -28px rgba(192, 29, 33, .45);

  --largeur: 1140px;
  --rayon: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }


body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', 'Figtree', system-ui, sans-serif;
  color: var(--ink-900);
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 800; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--rose-600); }

.conteneur {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-fond { background: #fff; }

.section-titre { text-align: center; max-width: 42rem; margin: 0 auto clamp(2rem, 4vw, 3.25rem); }
.section-titre p { color: var(--texte-doux); font-size: 1.05rem; margin: 0; }

.surtitre {
  display: inline-block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--rose-600);
  margin-bottom: .75rem;
}

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

.btn-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: .97rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.btn-site:hover { transform: translateY(-2px); }
.btn-site:active { transform: translateY(0); }

.btn-principal { background: var(--degrade); color: #fff; box-shadow: var(--ombre-flottante); }
.btn-principal:hover { box-shadow: 0 28px 64px -26px rgba(192, 29, 33, .62); }

.btn-clair { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-clair:hover { background: rgba(255, 255, 255, .17); }

.btn-contour { background: #fff; color: var(--texte); border-color: var(--bord); box-shadow: var(--ombre-carte); }
.btn-contour:hover { border-color: rgba(192, 29, 33, .4); }

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

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 249, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.entete.est-collee {
  border-bottom-color: var(--bord);
  box-shadow: 0 6px 24px -18px rgba(14, 18, 32, .5);
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .85rem;
  padding-bottom: .85rem;
}
.marque { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.marque img { width: 38px; height: 38px; border-radius: 11px; }
.marque span {
  font-family: 'Fredoka', 'Figtree', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--ink-900);
  letter-spacing: -.01em;
}

.nav-site { display: flex; align-items: center; gap: .35rem; }
.nav-site a:not(.btn-site) {
  padding: .5rem .85rem;
  border-radius: 10px;
  color: var(--texte-doux);
  text-decoration: none;
  font-weight: 600;
  font-size: .93rem;
  transition: color .2s ease, background-color .2s ease;
}
.nav-site a:not(.btn-site):hover { color: var(--ink-900); background: rgba(23, 30, 48, .05); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--bord);
  border-radius: 11px;
  padding: .5rem .7rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--texte);
}

@media (max-width: 1180px) {
  .burger { display: block; }
  .nav-site {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem 1.25rem 1.35rem;
    background: #fff;
    border-bottom: 1px solid var(--bord);
    box-shadow: 0 18px 40px -26px rgba(14, 18, 32, .5);
    display: none;
  }
  .nav-site.est-ouverte { display: flex; }
  .nav-site a:not(.btn-site) { padding: .7rem .5rem; font-size: 1rem; }
  .nav-site .btn-site { margin-top: .4rem; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 15% -10%, #2c3552 0%, transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(28, 167, 148, .45) 0%, transparent 55%),
              linear-gradient(160deg, var(--ink-900) 0%, var(--ink-950) 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}
.hero::after {
  /* Voile lumineux discret, pour éviter un aplat trop plat */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 50% 100%, rgba(229, 39, 40, .16), transparent 70%);
  pointer-events: none;
}
.hero .conteneur { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 .accent {
  background: linear-gradient(120deg, #f7a3a3, #72d6c3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-grille {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grille { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-preuves { justify-content: center; }
}
.hero-accroche {
  font-size: clamp(1.02rem, 2vw, 1.19rem);
  color: rgba(255, 255, 255, .78);
  max-width: 34rem;
  margin-bottom: 1.9rem;
}
@media (max-width: 900px) { .hero-accroche { margin-left: auto; margin-right: auto; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero-preuves {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: .86rem;
  color: rgba(255, 255, 255, .62);
}
.hero-preuves span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-preuves span::before { content: '✓'; color: var(--mint-500); font-weight: 800; }

.hero-visuel { position: relative; }
.hero-cadre {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .85);
  background: var(--ink-800);
  aspect-ratio: 4 / 3;
}
.hero-cadre img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-etiquette {
  position: absolute;
  bottom: .85rem;
  left: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  border-radius: 11px;
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .13);
  font-size: .76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
}
.pastille-active {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-500);
  animation: pulse-pastille 2s ease-in-out infinite;
}
@keyframes pulse-pastille {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
  50%      { opacity: .75; box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
}

/* Bulle de dialogue flottante, pour montrer ce que fait l'outil */
.hero-bulle {
  position: absolute;
  right: -.6rem;
  bottom: -1.4rem;
  max-width: 17rem;
  padding: .85rem 1.05rem;
  border-radius: 16px 16px 4px 16px;
  background: #fff;
  color: var(--texte);
  font-size: .87rem;
  line-height: 1.5;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .6);
  animation: flotte 5s ease-in-out infinite;
}
.hero-bulle strong { color: var(--rose-700); }
@keyframes flotte {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@media (max-width: 900px) {
  .hero-bulle { position: static; max-width: none; margin: 1.1rem auto 0; animation: none; text-align: left; }
}


/* ---------------- Cartes et grilles ---------------- */

.grille {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.grille-2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.carte {
  background: var(--fond-carte);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 1.6rem;
  box-shadow: var(--ombre-carte);
  transition: transform .25s ease, box-shadow .25s ease;
}
.carte-animee:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -30px rgba(14, 18, 32, .4); }
.carte h3 { margin-bottom: .45rem; }
.carte p { color: var(--texte-doux); font-size: .94rem; margin: 0; }

.icone {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(229, 39, 40, .14), rgba(28, 167, 148, .14));
}

/* Étapes numérotées */
.etapes { counter-reset: etape; }
.etape { position: relative; padding-left: 3.6rem; }
.etape::before {
  counter-increment: etape;
  content: counter(etape);
  position: absolute;
  left: 0; top: 0;
  width: 2.5rem; height: 2.5rem;
  border-radius: 13px;
  background: var(--degrade);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--ombre-flottante);
}

/* ---------------- Tarifs ---------------- */

.tarifs { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); align-items: start; }
.tarif {
  position: relative;
  background: #fff;
  border: 2px solid var(--bord);
  border-radius: var(--rayon);
  padding: 1.9rem 1.6rem;
  box-shadow: var(--ombre-carte);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tarif:hover { transform: translateY(-4px); border-color: rgba(192, 29, 33, .35); }
.tarif-vedette { border-color: var(--rose-600); box-shadow: 0 30px 70px -32px rgba(192, 29, 33, .55); }
.tarif-ruban {
  position: absolute;
  top: -.8rem; left: 50%;
  transform: translateX(-50%);
  background: var(--degrade);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tarif-nom { font-weight: 800; font-size: 1.15rem; color: var(--ink-900); font-family: 'Fredoka', 'Figtree', system-ui, sans-serif; }
.tarif-prix { font-size: 2.3rem; font-weight: 800; color: var(--rose-700); line-height: 1; font-family: 'Fredoka', 'Figtree', system-ui, sans-serif; }
.tarif-prix small { font-size: .82rem; font-weight: 600; color: var(--texte-doux); display: block; margin-top: .4rem; }
.tarif-ttc { font-size: .8rem; color: var(--texte-pale); margin: 0; }
.tarif ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.tarif li { font-size: .91rem; color: var(--texte-doux); padding-left: 1.5rem; position: relative; }
.tarif li::before { content: '✓'; position: absolute; left: 0; color: var(--mint-600); font-weight: 800; }
.tarif li.absent { color: var(--texte-pale); }
.tarif li.absent::before { content: '—'; color: var(--texte-pale); }

.note-tva {
  text-align: center;
  font-size: .87rem;
  color: var(--texte-doux);
  margin-top: 1.75rem;
}

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

.faq { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--bord);
  border-radius: 15px;
  padding: 0 1.25rem;
  box-shadow: 0 1px 2px rgba(14, 18, 32, .04);
  transition: border-color .2s ease;
}
.faq details[open] { border-color: rgba(192, 29, 33, .32); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink-900);
  padding: 1.05rem 2rem 1.05rem 0;
  list-style: none;
  position: relative;
  font-size: .98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--rose-600);
  transition: transform .25s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq-reponse { padding: 0 0 1.15rem; color: var(--texte-doux); font-size: .94rem; }
.faq-reponse p:last-child { margin-bottom: 0; }

/* ---------------- Bandeau d'appel ---------------- */

.bandeau-cta {
  background: var(--degrade);
  border-radius: 26px;
  padding: clamp(2.2rem, 5vw, 3.4rem);
  text-align: center;
  color: #fff;
  box-shadow: var(--ombre-flottante);
}
.bandeau-cta h2 { color: #fff; }
.bandeau-cta p { color: rgba(255, 255, 255, .85); max-width: 34rem; margin: 0 auto 1.6rem; }

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

.champ { display: block; margin-bottom: 1.1rem; }
.champ > span {
  display: block;
  font-size: .83rem;
  font-weight: 700;
  color: var(--texte);
  margin-bottom: .4rem;
}
.champ input, .champ textarea, .champ select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--bord);
  border-radius: 13px;
  font: inherit;
  font-size: .95rem;
  color: var(--texte);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.champ input:focus, .champ textarea:focus, .champ select:focus {
  outline: none;
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px rgba(229, 39, 40, .14);
}
.champ textarea { resize: vertical; min-height: 8rem; }
.champ-aide { font-size: .8rem; color: var(--texte-pale); margin: .35rem 0 0; }

.message-formulaire {
  padding: .9rem 1.1rem;
  border-radius: 13px;
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.message-succes { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.message-erreur { background: #fde3e3; color: #9c1a1d; border: 1px solid #fbcaca; }

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

.pied {
  background: var(--ink-950);
  color: rgba(255, 255, 255, .62);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  font-size: .9rem;
}
.pied-grille {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-bottom: 2.25rem;
}
@media (max-width: 760px) { .pied-grille { grid-template-columns: 1fr; gap: 1.5rem; } }
.pied h4 {
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: .85rem;
}
.pied a { color: rgba(255, 255, 255, .62); text-decoration: none; display: block; padding: .22rem 0; transition: color .2s ease; }
.pied a:hover { color: #fff; }
.pied .marque span { color: #fff; }
.pied-bas {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .42);
}

/* ---------------- Pages de texte (mentions, CGV, RGPD) ---------------- */

.page-texte { max-width: 48rem; margin: 0 auto; }
.page-texte h2 { margin-top: 2.5rem; font-size: 1.35rem; }
.page-texte h3 { margin-top: 1.75rem; font-size: 1.05rem; }
.page-texte p, .page-texte li { color: var(--texte-doux); font-size: .96rem; }
.page-texte ul { padding-left: 1.25rem; }
.page-texte li { margin-bottom: .45rem; }
.page-texte table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .91rem; }
.page-texte th, .page-texte td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--bord); }
.page-texte th { color: var(--ink-900); font-weight: 700; }
.page-texte td { color: var(--texte-doux); }
.maj { font-size: .85rem; color: var(--texte-pale); }

/* ---------------- Apparition au défilement ---------------- */

.revele {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.22, .61, .36, 1), transform .65s cubic-bezier(.22, .61, .36, 1);
}
.revele.est-visible { opacity: 1; transform: none; }



/* ---------------- Couche de marque ChadIa ---------------- */
:root { --degrade: #e52728; --ombre-flottante: 0 18px 40px -22px rgba(192, 29, 33, .45); }
body { font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1, h2, h3, .titre, .font-display { font-family: 'Fredoka', 'Figtree', system-ui, sans-serif; letter-spacing: 0; font-weight: 600; }
.hero { background: #171e30; }
.hero::after { background: radial-gradient(600px 300px at 80% 100%, rgba(28, 167, 148, .18), transparent 70%); }
.hero h1 .accent { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #ff8a8a; }
.icone { background: #eefbf8; }
.btn-principal:hover { background: #c01d21; }
.barre-marque { display: block; width: 56px; height: 6px; border-radius: 99px; background: #171e30; margin: .7rem 0 0; }
.hero .barre-marque { background: #e52728; }
.logo-horizontal { height: 38px; width: auto; display: block; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(28, 167, 148, .55); outline-offset: 2px; }
.marque .logo-marque { height: 46px; width: auto; border-radius: 0; }
@media (max-width: 480px) { .marque .logo-marque { height: 32px; } }
.marque img:not(.logo-marque) { background: #fff; object-fit: contain; padding: 3px; }
.nom-chadia { white-space: nowrap; }
.nom-chadia .ia { color: #14887a; font-weight: 700; }
.hero .nom-chadia .ia, .pied .nom-chadia .ia { color: #3dbea8; }

/* ---------------- Pages intérieures ---------------- */
.nav-site a[aria-current="page"]:not(.btn-site) { color: var(--ink-900); box-shadow: inset 0 -3px 0 #e52728; border-radius: 0; }
.page-titre { background: #171e30; color: #fff; padding: 4.2rem 0 3.4rem; position: relative; overflow: hidden; }
.page-titre::after { content: ''; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 167, 148, .22), transparent 65%); pointer-events: none; }
.page-titre .conteneur { position: relative; z-index: 1; }
.page-titre .surtitre { color: #ff8a8a; }
.page-titre h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.1; margin: .4rem 0 0; color: #fff; }
.page-titre .barre-marque { background: #e52728; margin: 1rem 0 1.3rem; }
.page-titre p { max-width: 44rem; color: rgba(255,255,255,.78); font-size: 1.08rem; line-height: 1.65; margin: 0; }
.conteneur-texte { max-width: 50rem; }
.texte-long h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; color: var(--ink-900); }
.texte-long p { line-height: 1.75; color: #3c4768; margin: 0 0 1.1rem; font-size: 1.04rem; }
.texte-long a { color: #c01d21; font-weight: 600; }
.liste-points { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .7rem; }
.liste-points li { position: relative; padding-left: 1.6rem; line-height: 1.65; color: #3c4768; }
.liste-points li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: #1ca794; }
.note-source { font-size: .88rem !important; color: #687089 !important; border-left: 3px solid #e6e8ee; padding-left: .9rem; }
.carte-lien { text-decoration: none; color: inherit; display: block; transition: transform .2s, box-shadow .2s; }
.carte-lien:hover { transform: translateY(-3px); }
.carte-lien .lire { display: inline-block; margin-top: .8rem; font-weight: 700; color: #c01d21; font-size: .92rem; }
.pied-grille-4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .pied-grille-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .pied-grille-4 { grid-template-columns: 1fr; } }
