/* Page de présentation du CRM Avenzia (avenzia-crm.fr) — charte Avenzia : doré sablé, bleu nuit, crème.
   Polices du système (pas de Google Fonts : rien n'est envoyé à Google, c'est plus simple pour le RGPD). */
:root {
  --fond: #f6f1e8;          /* crème Avenzia */
  --surface: #ffffff;
  --texte: #141a33;
  --texte-doux: #5a5f70;
  --accent: #c9b083;        /* doré sablé */
  --accent-fonce: #0c1430;  /* bleu nuit */
  --accent-doux: #efe6d5;
  --sur-accent: #0c1430;    /* texte sur les boutons dorés */
  --bordure: #e6dccb;
  --rayon: 22px;
  --titres: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --corps: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --largeur: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--corps); font-size: 1.05rem; line-height: 1.65; color: var(--texte); background: var(--fond); }
img { max-width: 100%; display: block; }
a { color: var(--accent-fonce); }
h1, h2, h3 { font-family: var(--titres); font-weight: 600; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-douce { background: var(--surface); }
.surtitre { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 0.8em; }
.intro { color: var(--texte-doux); max-width: 640px; }
.centre { text-align: center; margin-inline: auto; }

/* Boutons */
.bouton { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; transition: background 0.15s; }
.bouton:hover { background: var(--accent-fonce); }
.bouton-clair { background: transparent; color: var(--accent-fonce); border-color: var(--accent); }
.bouton-clair:hover { background: var(--accent-doux); }
.bouton:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--fond) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bordure); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { font-family: var(--titres); font-size: 1.35rem; font-weight: 600; color: var(--texte); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo svg { width: 34px; height: 34px; flex: none; }
.menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.menu a { color: var(--texte); text-decoration: none; font-weight: 500; }
.menu a:hover { color: var(--accent); }
.menu .bouton { color: #fff; padding: 10px 20px; }
.bouton-menu { display: none; background: none; border: 1px solid var(--bordure); border-radius: 12px; padding: 8px 12px; font: inherit; cursor: pointer; color: var(--texte); }

@media (max-width: 820px) {
  .bouton-menu { display: block; }
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--fond); border-bottom: 1px solid var(--bordure); padding: 8px 16px 16px; }
  .menu.ouvert { display: flex; }
  .menu a { padding: 12px 4px; }
  .menu .bouton { text-align: center; margin-top: 8px; }
}

/* Bandeau d'accueil */
.accueil { padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px); }
.accueil .conteneur { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.accueil p.intro { font-size: 1.15rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.visuel { aspect-ratio: 4 / 5; border-radius: 200px 200px var(--rayon) var(--rayon); background: radial-gradient(circle at 30% 25%, #ffffff 0, transparent 45%), linear-gradient(160deg, var(--accent-doux), color-mix(in srgb, var(--accent) 55%, var(--fond))); position: relative; overflow: hidden; }
.visuel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 820px) {
  .accueil .conteneur { grid-template-columns: 1fr; }
  .visuel { max-width: 380px; width: 100%; margin-inline: auto; aspect-ratio: 1; border-radius: 50%; }
}

/* Cartes */
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 22px; margin-top: 40px; }
.carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 30px; }
.section-douce .carte { background: var(--fond); }
.carte .icone { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-doux); display: grid; place-items: center; margin-bottom: 18px; }
.carte .icone svg { width: 26px; height: 26px; stroke: var(--accent-fonce); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carte p { color: var(--texte-doux); margin: 0; }

/* Étapes numérotées */
.etapes { counter-reset: etape; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 22px; margin-top: 40px; padding: 0; list-style: none; }
.etapes li { counter-increment: etape; position: relative; padding-top: 58px; }
.etapes li::before { content: counter(etape); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.etapes p { color: var(--texte-doux); margin: 0; }

/* Tarifs */
.tarif { display: flex; flex-direction: column; }
.tarif .prix { font-family: var(--titres); font-size: 2.2rem; color: var(--texte); margin: 8px 0 4px; }
.tarif .prix small { font-size: 1rem; color: var(--texte-doux); font-family: var(--corps); }
.tarif ul { padding-left: 1.1em; color: var(--texte-doux); margin: 14px 0 22px; flex: 1; }
.tarif.vedette { border-color: var(--accent); box-shadow: 0 12px 32px color-mix(in srgb, var(--accent) 16%, transparent); }

/* Questions fréquentes */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--bordure); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 12px 0 0; color: var(--texte-doux); }

/* Contact */
.contact .conteneur { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 72px); }
.coordonnees { list-style: none; padding: 0; margin: 24px 0 0; }
.coordonnees li { margin-bottom: 10px; }
.formulaire { background: var(--surface); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.formulaire label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.formulaire input, .formulaire textarea, .formulaire select { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--bordure); border-radius: 12px; background: var(--fond); color: var(--texte); width: 100%; }
.formulaire .accord { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--texte-doux); }
.formulaire .accord input { width: auto; margin-top: 4px; }
.formulaire .message { margin: 0; font-size: 0.95rem; }
.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) {
  .contact .conteneur, .deux-colonnes { grid-template-columns: 1fr; }
}
.avertissement { font-size: 0.9rem; color: var(--texte-doux); border-left: 3px solid var(--accent); padding-left: 14px; margin-top: 28px; }

/* Pied de page */
.pied { background: var(--texte); color: #dfe6e1; padding: 48px 0 32px; font-size: 0.95rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.pied a { color: #fff; }
.pied ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }

/* Pages de texte (mentions légales, confidentialité) */
.page-texte { max-width: 760px; }
.page-texte h2 { margin-top: 1.6em; font-size: 1.4rem; }
.a-completer { background: #fff3cd; padding: 0 4px; border-radius: 4px; }

/* ─── Propre à la page Avenzia ─────────────────────────────────── */
.bouton { color: var(--sur-accent); }
.bouton:hover { background: #b99d6c; }
.bouton-clair { color: var(--accent-fonce); border-color: var(--accent-fonce); }
.bouton-clair:hover { background: var(--accent-doux); }
.menu .bouton { color: var(--sur-accent); }
.surtitre { color: #8a7346; }
a { color: var(--accent-fonce); }
.logo .marque { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-fonce); color: var(--accent); font-size: 1.2rem; }
.rassurance { margin-top: 18px; color: var(--texte-doux); font-size: 0.95rem; }
.carte h3 { margin-bottom: 0.4em; }
.carte .icone { background: var(--accent-doux); }
.carte .icone svg { stroke: var(--accent-fonce); }
.etapes li::before { background: var(--accent-fonce); color: var(--accent); }

/* Le faux écran du CRM, en haut de page (illustration, pas une capture) */
.ecran { background: var(--surface); border: 1px solid var(--bordure); border-radius: 18px; box-shadow: 0 24px 60px rgba(12, 20, 48, 0.14); overflow: hidden; font-size: 0.82rem; }
.ecran-barre { display: flex; gap: 6px; padding: 10px 14px; background: var(--accent-fonce); }
.ecran-barre span { width: 10px; height: 10px; border-radius: 50%; background: #2a3358; }
.ecran-corps { display: grid; grid-template-columns: 92px 1fr; min-height: 300px; }
.ecran-menu { background: var(--accent-fonce); padding: 12px 10px; display: grid; gap: 8px; align-content: start; }
.ecran-menu i { display: block; height: 9px; border-radius: 6px; background: #2a3358; }
.ecran-menu i.actif { background: var(--accent); }
.ecran-contenu { padding: 16px; display: grid; gap: 12px; background: var(--fond); }
.ecran-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ecran-chiffres div { background: var(--surface); border-radius: 10px; padding: 8px 10px; border: 1px solid var(--bordure); }
.ecran-chiffres div:first-child { background: var(--accent-fonce); color: #fff; border-color: transparent; }
.ecran-chiffres b { display: block; font-family: var(--titres); font-size: 1.05rem; }
.ecran-chiffres small { color: inherit; opacity: 0.75; }
.ecran-liste { background: var(--surface); border-radius: 12px; border: 1px solid var(--bordure); padding: 10px 12px; }
.ecran-liste p { margin: 0 0 6px; font-weight: 600; }
.ecran-liste ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ecran-liste li { display: flex; gap: 8px; align-items: center; }
.ecran-liste li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.ecran-liste li.rouge::before { background: #c0392b; }
.ecran-liste li.vert::before { background: #2e8b57; }
@media (max-width: 820px) { .ecran { max-width: 460px; margin-inline: auto; } }

/* Encart « sur rendez-vous » */
.encart { margin-top: 40px; background: var(--accent-fonce); color: #e9e5dc; border-radius: var(--rayon); padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.encart h3 { color: #fff; font-size: 1.5rem; }
.encart .bouton { justify-self: start; }
.encart ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.encart li { background: rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 10px 14px; }
.encart li b { color: var(--accent); }
@media (max-width: 820px) { .encart { grid-template-columns: 1fr; } }

/* Présentation de Catia */
.portrait { display: flex; gap: 20px; align-items: center; margin-top: 40px; background: var(--fond); border: 1px solid var(--bordure); border-radius: var(--rayon); padding: 24px; }
.portrait .initiale { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--accent-fonce); display: grid; place-items: center; font-family: var(--titres); font-size: 2rem; flex: none; }
.portrait p { margin: 0; color: var(--texte-doux); }

/* Tarifs */
.tarif .prix small { display: block; }
.tarif .ligne-sous-prix { color: var(--texte-doux); margin: 0; font-size: 0.95rem; }
.note-tarifs { text-align: center; color: var(--texte-doux); font-size: 0.92rem; margin-top: 24px; }
.pied { background: var(--accent-fonce); }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formulaire .message.erreur { color: #b42318; }
.logo img { width: 40px; height: 40px; border-radius: 50%; }
@media (max-width: 520px) {
  .ecran { font-size: 0.74rem; }
  .ecran-corps { grid-template-columns: 38px 1fr; }
  .ecran-contenu { padding: 10px; }
  .ecran-chiffres div { padding: 6px 7px; }
  .ecran-chiffres b { font-size: 0.92rem; white-space: nowrap; }
}
.logo img { width: 44px; height: 44px; }
.logo-pied { width: 72px; height: 72px; }
.pied .conteneur { align-items: center; }

/* ─── Version « avec du peps » : contraste, profondeur, mouvement ─── */
.entete { background: color-mix(in srgb, var(--accent-fonce) 94%, transparent); border-bottom-color: rgba(201, 176, 131, 0.18); }
.entete .logo { color: #fff; }
.entete .menu a { color: #e9e5dc; }
.entete .menu a:hover { color: var(--accent); }
.entete .menu .bouton { color: var(--sur-accent); }
.bouton-menu { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
@media (max-width: 820px) { .menu { background: var(--accent-fonce); border-bottom-color: rgba(201, 176, 131, 0.18); } }

.accueil { position: relative; overflow: hidden; color: #e9e5dc;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(201, 176, 131, 0.28), transparent 70%),
    radial-gradient(500px 380px at 10% 90%, rgba(80, 104, 196, 0.25), transparent 70%),
    var(--accent-fonce); }
.accueil h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -0.01em; }
.accueil .dore { background: linear-gradient(90deg, #e8d3a6, #c9b083 60%, #b8975f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accueil .surtitre { color: var(--accent); }
.accueil p.intro { color: #c9cbd6; }
.accueil .rassurance { color: #a9adbf; }
.accueil .bouton-clair { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.accueil .bouton-clair:hover { background: rgba(255, 255, 255, 0.08); }
.accueil .bouton { box-shadow: 0 10px 30px rgba(201, 176, 131, 0.35); }

.scene { position: relative; padding: 30px 0; }
.scene .ecran { transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.1); }
.badge { position: absolute; z-index: 2; display: flex; gap: 10px; align-items: center; background: #fff; color: var(--texte);
  border-radius: 16px; padding: 10px 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); font-size: 0.85rem; animation: flotte 6s ease-in-out infinite; }
.badge b { display: block; font-size: 0.9rem; }
.badge small { color: var(--texte-doux); }
.pastille { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-doux); flex: none; }
.pastille.vert { background: #2e8b57; color: #fff; font-weight: 700; }
.badge-1 { top: -6px; left: -36px; }
.badge-2 { bottom: 18px; right: -24px; animation-delay: -2s; }
.badge-3 { bottom: -18px; left: 8%; animation-delay: -4s; }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 820px) {
  .scene .ecran { transform: none; }
  .badge-1 { left: 0; top: -10px; }
  .badge-2 { right: 0; }
  .badge-3 { display: none; }
}

/* Bandeau qui défile */
.defile { background: var(--accent); color: var(--accent-fonce); overflow: hidden; padding: 14px 0; font-weight: 600; }
.defile-piste { display: flex; gap: 0; width: max-content; animation: defile 40s linear infinite; }
.defile-piste span { padding: 0 22px; white-space: nowrap; position: relative; }
.defile-piste span::after { content: "✦"; position: absolute; right: -6px; opacity: 0.55; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Cartes vivantes */
.carte { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.carte:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(12, 20, 48, 0.12); border-color: var(--accent); }
.carte .icone { background: linear-gradient(140deg, #e8d3a6, #c9b083); }
.carte .icone svg { stroke: var(--accent-fonce); }
#fonctions { background: linear-gradient(180deg, var(--fond), #fff); }

/* Étapes : gros chiffres dorés */
.etapes li { padding-top: 70px; }
.etapes li::before { width: 56px; height: 56px; font-family: var(--titres); font-size: 1.6rem; background: var(--accent-fonce); color: var(--accent);
  box-shadow: 0 10px 24px rgba(12, 20, 48, 0.25); }

/* Tarifs : l'abonnement en bleu nuit */
.tarif.vedette { background: var(--accent-fonce); color: #e9e5dc; border-color: var(--accent-fonce); transform: scale(1.02); }
.tarif.vedette h3, .tarif.vedette .prix { color: #fff; }
.tarif.vedette .prix { color: var(--accent); }
.tarif.vedette ul, .tarif.vedette .ligne-sous-prix, .tarif.vedette .prix small { color: #c9cbd6; }

/* Encart rendez-vous : un halo doré */
.encart { position: relative; overflow: hidden; }
.encart::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 176, 131, 0.35), transparent 70%); pointer-events: none; }

/* Apparitions au défilement (seulement si le script tourne) */
.js-ok .apparait { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-ok .apparait.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .badge, .defile-piste { animation: none; }
  .js-ok .apparait { opacity: 1; transform: none; transition: none; }
  .carte, .carte:hover { transition: none; transform: none; }
}
