/* ==========================================================================
   ARSINOÉ — Agence IA & Automatisation
   Feuille de style principale
   Palette & polices extraites de la charte graphique (logo + brochure 2026).
   Pour adapter la charte : modifie uniquement les variables ci-dessous.
   ========================================================================== */

:root {
  /* --- Couleurs de marque --- */
  --color-ink: #0a1f16;          /* vert profond (fond header/footer/hero) */
  --color-ink-2: #12301f;        /* vert profond secondaire (cartes sur fond sombre) */
  --color-green: #1c4430;        /* vert émeraude (accents, bordures) */
  --color-green-light: #2f6647;  /* vert émeraude clair (hover) */
  --color-gold: #c9a24a;         /* or (CTA, accents, titres) */
  --color-gold-light: #e6c879;   /* or clair (hover, surbrillance) */
  --color-gold-dark: #8c6a28;    /* or foncé (texte sur fond clair) */

  --color-bg: #ffffff;
  --color-bg-alt: #f7f6f0;       /* ivoire, fond des sections claires */
  --color-text: #182620;
  --color-text-muted: #55645c;
  --color-text-on-dark: #f3f1e8;
  --color-text-on-dark-muted: #b9c4bb;
  --color-border: #e4e1d3;

  /* --- Typographie --- */
  --font-display: 'Cinzel', 'Georgia', serif;              /* titres, wordmark */
  --font-italic: 'Cormorant Garamond', Georgia, serif;      /* citations, accroches */
  --font-body: 'Poppins', 'Segoe UI', sans-serif;           /* texte courant, UI */

  /* --- Divers --- */
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px -12px rgba(10, 31, 22, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(10, 31, 22, 0.18);
  --container-w: 1160px;
  --header-h: 84px;
}

/* --- Reset de base --- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: .01em;
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
main { display: block; overflow-x: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--color-gold);
  color: var(--color-ink); padding: 10px 16px; border-radius: 6px; z-index: 999;
  transition: top .2s ease; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* --- Étiquette "eyebrow" (petites majuscules espacées, style brochure) --- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: .9em;
}
.eyebrow.on-dark { color: var(--color-gold); }

.section-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-lead {
  color: var(--color-text-muted);
  max-width: 62ch;
  font-size: 1.08rem;
}
.text-center { text-align: center; }
.center-col { margin-left: auto; margin-right: auto; }

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: .02em;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { box-shadow: 0 14px 30px -10px rgba(201,162,74,.55); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline.on-dark { color: var(--color-text-on-dark); border-color: rgba(243,241,232,.5); }
.btn-outline.on-dark:hover { border-color: var(--color-gold); color: var(--color-gold); }
.btn-outline.on-light { color: var(--color-ink); border-color: var(--color-border); }
.btn-outline.on-light:hover { border-color: var(--color-gold-dark); color: var(--color-gold-dark); }
.btn-lg { padding: 1em 2.1em; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 22, 0.98);
  border-bottom: 1px solid rgba(201,162,74,.18);
}
/* Note : pas de backdrop-filter ici — cette propriété crée un containing
   block pour les descendants en position:fixed (comme .main-nav en mobile),
   ce qui casse le calcul de sa hauteur (inset relatif au header au lieu
   du viewport). */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: .7em;
  flex-shrink: 0;
}
.brand-logo {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201,162,74,.5);
}
.brand-name {
  font-family: var(--font-display);
  color: var(--color-text-on-dark);
  font-size: 1.25rem;
  letter-spacing: .04em;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .28em;
  color: var(--color-gold);
  font-weight: 600;
  margin-top: .35em;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  display: inline-block;
  padding: .6em 1em;
  font-size: .95rem;
  font-weight: 500;
  color: var(--color-text-on-dark-muted);
  border-radius: 999px;
  transition: color .15s ease, background-color .15s ease;
}
.main-nav a:hover { color: var(--color-text-on-dark); }
.main-nav a.active { color: var(--color-gold); }
.main-nav a.nav-cta {
  background: var(--color-gold);
  color: var(--color-ink) !important;
  font-weight: 600;
  padding: .6em 1.4em;
  margin-left: 6px;
}
.main-nav a.nav-cta:hover { background: var(--color-gold-light); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(201,162,74,.3);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #0b1a12;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 24px;
    gap: 4px;
  }
  .main-nav a {
    padding: 1em 1.2em;
    font-size: 1.05rem;
    border-radius: 12px;
  }
  .main-nav a.nav-cta { margin: 12px 0 0; text-align: center; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(201,162,74,.14), transparent 60%),
    linear-gradient(180deg, var(--color-ink) 0%, #0d2519 100%);
  color: var(--color-text-on-dark);
  padding: 84px 0 96px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(28,68,48,.55), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  color: var(--color-text-on-dark);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-gold);
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--color-text-on-dark-muted);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.8em;
}
.hero-badge {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-gold-light);
  border-left: 3px solid var(--color-gold);
  padding-left: 1em;
  margin: 1.6em 0;
  max-width: 46ch;
}
.hero-art {
  display: flex;
  justify-content: center;
}
.hero-art img {
  width: min(360px, 100%);
  border-radius: 50%;
  border: 1px solid rgba(201,162,74,.4);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
}
@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 180px; }
}

/* ==========================================================================
   SECTIONS GÉNÉRIQUES
   ========================================================================== */
.section { padding: 88px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark {
  background: linear-gradient(180deg, #0d2519, var(--color-ink));
  color: var(--color-text-on-dark);
}
.section-dark .section-lead { color: var(--color-text-on-dark-muted); }
.section-header { max-width: 720px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }

@media (max-width: 640px) {
  .section { padding: 60px 0; }
}

/* --- Grille de cartes --- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-ink-2), var(--color-green));
  color: var(--color-gold);
  margin-bottom: 1.1em;
  flex-shrink: 0;
}
.card h3 { font-size: 1.18rem; margin-bottom: .5em; }
.card p { color: var(--color-text-muted); margin-bottom: 0; font-size: .97rem; }

.card-dark {
  background: var(--color-ink-2);
  border: 1px solid rgba(201,162,74,.18);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: var(--color-text-on-dark);
}
.card-dark h3 { color: var(--color-text-on-dark); }
.card-dark p { color: var(--color-text-on-dark-muted); }

/* --- Étapes numérotées --- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  counter-increment: step;
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.step-num::before { content: counter(step); }

/* --- Liste à puces "check" --- */
.check-list li {
  position: relative;
  padding-left: 1.9em;
  margin-bottom: .7em;
  color: var(--color-text-muted);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--color-gold-dark);
  font-weight: 700;
}
.section-dark .check-list li { color: var(--color-text-on-dark-muted); }
.section-dark .check-list li::before { color: var(--color-gold); }

/* ==========================================================================
   VIDÉO RESPONSIVE
   ========================================================================== */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-ink-2);
  border: 1px solid rgba(201,162,74,.25);
  box-shadow: var(--shadow);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
/* État "emplacement en attente" tant qu'aucune vidéo n'est intégrée */
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  color: var(--color-text-on-dark-muted);
  text-align: center;
  padding: 20px;
}
.video-placeholder .play-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.video-placeholder strong { color: var(--color-text-on-dark); font-family: var(--font-display); font-weight: 600; }
.video-placeholder small { max-width: 40ch; }

/* ==========================================================================
   BANDE D'APPEL À L'ACTION (bas de page)
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--color-ink) 0%, var(--color-green) 140%);
  color: var(--color-text-on-dark);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--color-text-on-dark); }
.cta-band p { color: var(--color-text-on-dark-muted); max-width: 50ch; margin: 0 auto 1.6em; }

/* ==========================================================================
   CITATION (style brochure, italique doré)
   ========================================================================== */
.quote-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.quote-block p {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--color-gold-light);
  line-height: 1.5;
}
.quote-rule {
  width: 60px; height: 2px;
  background: var(--color-gold);
  margin: 22px auto 0;
}

/* ==========================================================================
   TABLEAUX (page Prix)
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}
table.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: .95rem;
}
.price-table thead th {
  font-family: var(--font-body);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  background: var(--color-bg-alt);
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table td strong { color: var(--color-ink); }
.price-table .price-cell { white-space: nowrap; font-weight: 600; color: var(--color-ink); text-align: right; }
.price-table tr.featured-row td { background: rgba(201,162,74,.08); }

/* --- Cartes "packs" --- */
.pack-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.pack-card.featured {
  border-color: var(--color-gold);
  background: linear-gradient(180deg, #fffdf6, #fff);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.pack-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .4em 1em;
  border-radius: 999px;
  white-space: nowrap;
}
.pack-name { font-size: 1.3rem; margin-bottom: .3em; }
.pack-desc { color: var(--color-text-muted); font-size: .93rem; flex-grow: 1; }
.pack-price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--color-ink);
  margin: .5em 0 1em;
}
.pack-price span { font-family: var(--font-body); font-size: .85rem; color: var(--color-text-muted); font-weight: 400; }

.launch-offer {
  background: var(--color-ink);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  border: 1px solid rgba(201,162,74,.3);
}
.launch-offer h3 { color: var(--color-gold); }

.payment-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 30px;
}
.payment-list li { color: var(--color-text-muted); padding-left: 1.2em; position: relative; }
.payment-list li::before { content: "—"; position: absolute; left: 0; color: var(--color-gold-dark); }
@media (max-width: 560px) { .payment-list { grid-template-columns: 1fr; } }

/* ==========================================================================
   FORMULAIRE DE CONTACT
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: .95fr 1.15fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-info-card {
  background: var(--color-ink);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
}
.contact-info-card h3 { color: var(--color-gold); }
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 1.4em;
}
.contact-info-item .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(201,162,74,.14);
  color: var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-item a, .contact-info-item span { color: var(--color-text-on-dark-muted); }
.contact-info-item a:hover { color: var(--color-gold-light); }

.form-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .5em;
  color: var(--color-ink);
}
.form-row .optional { font-weight: 400; color: var(--color-text-muted); font-size: .85rem; }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: .85em 1em;
  font-family: var(--font-body);
  font-size: .97rem;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: border-color .15s ease, background-color .15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: #fff;
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-consent { font-size: .82rem; color: var(--color-text-muted); margin-top: 18px; }
.form-consent a { color: var(--color-gold-dark); text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

.form-status {
  display: none;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: .92rem;
}
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(28,68,48,.12); color: #1c4430; border: 1px solid rgba(28,68,48,.3); }
.form-status.error { background: rgba(180,60,40,.1); color: #a13a26; border: 1px solid rgba(180,60,40,.3); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-ink);
  color: var(--color-text-on-dark-muted);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding: 56px 0 32px;
}
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-brand-top { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 44px; width: 44px; border-radius: 50%; border: 1px solid rgba(201,162,74,.4); }
.footer-brand-name { font-family: var(--font-display); color: var(--color-text-on-dark); font-size: 1.1rem; }
.footer h4 {
  font-family: var(--font-body);
  color: var(--color-text-on-dark);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.footer-nav { display: flex; flex-direction: column; gap: .7em; }
.footer-nav a:hover { color: var(--color-gold); }
.footer-contact { display: flex; flex-direction: column; gap: .8em; }
.footer-contact a:hover { color: var(--color-gold); }
.footer-bottom {
  border-top: 1px solid rgba(201,162,74,.15);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
}
.footer-bottom a:hover { color: var(--color-gold); }

/* ==========================================================================
   PAGES INTERNES (héros simple pour pages secondaires)
   ========================================================================== */
.page-hero {
  background: linear-gradient(180deg, var(--color-ink), #0d2519);
  color: var(--color-text-on-dark);
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero h1 { color: var(--color-text-on-dark); }
.page-hero p { color: var(--color-text-on-dark-muted); max-width: 62ch; margin: 0 auto; }

/* --- Mentions légales : mise en page simple --- */
.legal-content h2 { font-size: 1.2rem; margin-top: 1.8em; color: var(--color-ink); }
.legal-content p, .legal-content li { color: var(--color-text-muted); }
.legal-content li { margin-bottom: .4em; }
.legal-content .placeholder {
  color: var(--color-gold-dark);
  background: rgba(201,162,74,.12);
  padding: .1em .4em;
  border-radius: 4px;
  font-style: italic;
}

/* --- Page 404 --- */
.error-page {
  min-height: 60vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
