/* IZYTRAVO IA — site vitrine. Polices hébergées ici (aucun appel à Google). */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(../fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url(../fonts/figtree-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url(../fonts/figtree-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url(../fonts/figtree-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url(../fonts/figtree-latin-700-normal.woff2) format("woff2"); }

:root {
  --vert: #2BC232;        /* vert IZYTRAVO (logo, aplats) */
  --vert-fonce: #137A1C;  /* vert lisible pour textes et boutons */
  --vert-pale: #EAF7E9;
  --encre: #1C2A20;
  --texte: #3D4A40;
  --gris: #66736A;
  --fond: #F5F9F4;
  --bord: #DCE6DA;
  --bleu: #1D4ED8;
  --bleu-pale: #EAF0FE;
  --jaune: #FFF4C2;
  --brun: #8A4B08;
  --rayon: 22px;
  --page: 1180px;
  --titre: "Bricolage Grotesque", system-ui, sans-serif;
  --corps: "Figtree", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[id] { scroll-margin-top: 92px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--corps); font-size: 1.0625rem; line-height: 1.6; color: var(--texte); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert-fonce); text-underline-offset: 3px; }
a:hover { color: var(--encre); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
.saut { position: absolute; left: -999px; top: 8px; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.saut:focus { left: 12px; }

h1, h2, h3 { font-family: var(--titre); color: var(--encre); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
.intro { font-size: 1.2rem; color: var(--texte); }
.petit { font-size: .92rem; color: var(--gris); }

.conteneur { width: min(var(--page), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.teinte { background: var(--fond); }

/* ---------------------------------------------------------------- logo (texte, comme dans l'appli) */
.logo { display: inline-flex; align-items: center; gap: 0; font-family: var(--titre); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.03em; color: var(--encre); text-decoration: none; }
.logo .izy { color: var(--vert); }
.logo .ia { margin-left: 6px; background: var(--vert); color: #fff; font-size: .78em; padding: 1px 7px 2px; border-radius: 7px; letter-spacing: 0; }
.logo .pro { margin-left: 6px; background: var(--bleu); color: #fff; font-size: .62em; padding: 3px 8px; border-radius: 7px; letter-spacing: 0; }

/* ---------------------------------------------------------------- en-tête */
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.entete.defile { border-color: var(--bord); }
.entete .conteneur { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--encre); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--vert-pale); color: var(--encre); }
.nav a[aria-current="page"] { color: var(--vert-fonce); box-shadow: inset 0 -3px 0 var(--vert); border-radius: 0; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--bord); border-radius: 12px; width: 46px; height: 46px; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--encre); margin: auto; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }

/* ---------------------------------------------------------------- boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--corps); font-weight: 700; font-size: 1.02rem;
  text-decoration: none; border-radius: 999px; padding: 15px 26px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: transform .15s, background .15s; }
.bouton:hover { transform: translateY(-1px); }
.bouton svg { width: 22px; height: 22px; flex: none; }
.bouton.vert { background: var(--vert-fonce); color: #fff; }
.bouton.vert:hover { background: #0F6417; color: #fff; }
.bouton.bleu { background: var(--bleu); color: #fff; }
.bouton.bleu:hover { background: #163DB0; color: #fff; }
.bouton.contour { border-color: var(--encre); color: var(--encre); background: #fff; }
.bouton.contour:hover { background: var(--encre); color: #fff; }
.entete .bouton { padding: 10px 18px; font-size: .95rem; }

/* Boutons de téléchargement (vrais boutons : le lien se règle dans assets/js/site.js) */
.magasins { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.magasin { display: inline-flex; align-items: center; gap: 12px; background: var(--encre); color: #fff; text-decoration: none; border-radius: 14px; padding: 10px 18px 10px 14px; min-width: 200px; }
.magasin:hover { background: #000; color: #fff; }
.magasin svg { width: 28px; height: 28px; flex: none; }
.magasin small { display: block; font-size: .74rem; opacity: .85; line-height: 1.1; }
.magasin b { display: block; font-size: 1.08rem; line-height: 1.2; }
.magasin[aria-disabled="true"] { background: #E8EDE7; color: var(--gris); cursor: default; }
.magasin[aria-disabled="true"]:hover { background: #E8EDE7; color: var(--gris); }

/* ---------------------------------------------------------------- la crête des Pyrénées (fil conducteur du site) */
.crete { display: block; width: 100%; height: clamp(34px, 5vw, 64px); color: var(--vert); }
.crete path { fill: none; stroke: currentColor; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.hero .crete path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: trace 1.8s .2s ease-out forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.separateur { max-width: 420px; height: 34px; margin: 0 0 24px; color: var(--vert); opacity: .9; }
.separateur.centre { margin-inline: auto; }

/* ---------------------------------------------------------------- héros */
.hero { padding: clamp(36px, 6vw, 72px) 0 0; overflow: hidden; }
.hero .grille { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .intro { margin-bottom: 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 30px; width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.pastille-lieu { position: absolute; right: 18px; top: 18px; background: #fff; border-radius: 999px; padding: 9px 16px 9px 12px; font-weight: 700; color: var(--encre); display: inline-flex; gap: 8px; align-items: center; box-shadow: 0 8px 24px rgba(28,42,32,.14); }
.pastille-lieu svg { width: 20px; height: 20px; color: var(--vert-fonce); }
.hero .crete { margin-top: clamp(28px, 5vw, 56px); height: clamp(44px, 7vw, 90px); }

/* Ce que fait l'appli : liste horizontale d'icônes (liens réels) */
.atouts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.atouts a { display: flex; flex-direction: column; gap: 10px; height: 100%; text-decoration: none; color: var(--encre); background: var(--vert-pale); border-radius: 18px; padding: 18px 16px; font-weight: 700; line-height: 1.25; }
.atouts a:hover { background: #DDF2DB; color: var(--encre); }
.atouts svg { width: 30px; height: 30px; color: var(--vert-fonce); }

/* ---------------------------------------------------------------- deux chemins : particulier / artisan */
.chemins { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chemin { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; text-decoration: none; color: var(--texte); border-radius: var(--rayon); padding: 26px; }
.chemin h3 { margin: 0 0 4px; }
.chemin p { margin: 0; }
.chemin .rond { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.chemin .rond svg { width: 32px; height: 32px; }
.chemin .fleche { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s; }
.chemin:hover .fleche { transform: translateX(4px); }
.chemin.particulier { background: var(--vert-pale); }
.chemin.particulier .rond svg, .chemin.particulier .fleche { color: var(--vert-fonce); }
.chemin.particulier .fleche { background: #CFEFCC; }
.chemin.artisan { background: var(--bleu-pale); }
.chemin.artisan .rond svg, .chemin.artisan .fleche { color: var(--bleu); }
.chemin.artisan .fleche { background: #D5E1FC; }
.chemin:hover { color: var(--texte); }

/* ---------------------------------------------------------------- étapes (vraie séquence) */
.etapes { counter-reset: e; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; margin: 40px 0 0; padding: 0; }
.etapes.quatre { grid-template-columns: repeat(4, 1fr); }
.etapes li { counter-increment: e; position: relative; padding-top: 70px; }
.etapes li::before { content: counter(e); position: absolute; top: 0; left: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--vert-fonce); color: #fff;
  font-family: var(--titre); font-weight: 800; font-size: 1.5rem; display: grid; place-items: center; }
.etapes li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 64px; right: -16px; border-top: 2px dashed #B9D8B5; }
.etapes h3 { margin-bottom: .35em; }

/* ---------------------------------------------------------------- blocs texte + photo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.duo.inverse > :first-child { order: 2; }
.duo img { border-radius: 28px; width: 100%; }
.liste { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.liste li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.liste .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--vert-pale); display: grid; place-items: center; color: var(--vert-fonce); }
.liste .ic svg { width: 24px; height: 24px; }
.liste b { display: block; color: var(--encre); font-size: 1.08rem; }
.liste.bleue .ic { background: var(--bleu-pale); color: var(--bleu); }

/* ---------------------------------------------------------------- encadrés */
.encadre { border-radius: var(--rayon); padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.encadre svg { width: 28px; height: 28px; }
.encadre p { margin: 0; }
.encadre.jaune { background: var(--jaune); color: #3A2A06; }
.encadre.jaune svg { color: var(--brun); }
.encadre.vert { background: var(--vert-pale); }
.encadre.vert svg { color: var(--vert-fonce); }
.encadre.info { background: var(--bleu-pale); }
.encadre.info svg { color: var(--bleu); }

/* ---------------------------------------------------------------- tarifs */
.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.tarif { border: 2px solid var(--bord); border-radius: var(--rayon); padding: 28px 26px; background: #fff; display: flex; flex-direction: column; }
.tarif h3 { margin-bottom: 8px; }
.tarif .prix { font-family: var(--titre); font-weight: 800; font-size: 2.6rem; color: var(--encre); line-height: 1; margin: 6px 0 4px; letter-spacing: -0.03em; }
.tarif .prix small { font-family: var(--corps); font-size: .95rem; font-weight: 600; color: var(--gris); letter-spacing: 0; }
.tarif ul { padding-left: 1.1em; margin: 14px 0 0; }
.tarif li { margin-bottom: 6px; }
.tarif.mise-en-avant { border-color: var(--bleu); }
.tarif.gratuit { border-color: #E8C95A; background: #FFFDF2; }

/* ---------------------------------------------------------------- questions fréquentes */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--bord); padding: 6px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--encre); font-size: 1.1rem; padding: 14px 36px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 1.6rem; color: var(--vert-fonce); font-weight: 600; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; }

/* ---------------------------------------------------------------- bandeau téléchargement */
.bandeau { background: var(--vert-fonce); color: #E8F6E7; border-radius: 34px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.bandeau h2 { color: #fff; }
.bandeau p { color: #DDF0DB; }
.bandeau .crete { position: absolute; left: 0; right: 0; bottom: -6px; color: rgba(255,255,255,.18); pointer-events: none; }
.bandeau .magasin { background: #fff; color: var(--encre); }
.bandeau .magasin:hover { background: var(--vert-pale); color: var(--encre); }
.bandeau .magasin[aria-disabled="true"] { background: rgba(255,255,255,.16); color: #DDF0DB; }

/* ---------------------------------------------------------------- contact */
.contacts { display: grid; gap: 14px; margin-top: 28px; max-width: 560px; }
.contact { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; text-decoration: none; background: #fff; border: 2px solid var(--bord); border-radius: 20px; padding: 16px 20px; color: var(--texte); }
.contact:hover { border-color: var(--vert-fonce); color: var(--texte); }
.contact .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--vert-pale); display: grid; place-items: center; color: var(--vert-fonce); }
.contact .ic svg { width: 28px; height: 28px; }
.contact b { display: block; color: var(--encre); font-size: 1.1rem; }
.contact span { color: var(--vert-fonce); font-weight: 700; font-size: 1.15rem; }
.contact .fleche { width: 22px; height: 22px; color: var(--gris); }

/* ---------------------------------------------------------------- pied de page */
.pied { background: var(--encre); color: #C9D3CB; padding: 56px 0 28px; margin-top: 0; }
.pied .grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.pied .logo { color: #fff; }
.pied h2 { font-family: var(--corps); font-size: 1rem; color: #fff; letter-spacing: 0; margin-bottom: 12px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { color: #E3EAE4; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied .bas { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------------------------------------------------------------- en-tête de page intérieure */
.entete-page { padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 56px); background: var(--fond); }
.entete-page .duo img { aspect-ratio: 4 / 3.3; object-fit: cover; }
.fil { font-size: .92rem; margin-bottom: 18px; color: var(--gris); }
.fil a { color: var(--gris); }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 1020px) {
  .atouts { grid-template-columns: repeat(3, 1fr); }
  .etapes.quatre { grid-template-columns: repeat(2, 1fr); }
  .etapes.quatre li:nth-child(2)::after { display: none; }
  .tarifs { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .entete .bouton { display: none; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 24px; border-bottom: 1px solid var(--bord);
    box-shadow: 0 18px 30px rgba(28,42,32,.1); display: none; }
  .nav.ouvert { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.08rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--vert); }
  .hero .grille, .duo, .chemins, .bandeau { grid-template-columns: 1fr; }
  .duo.inverse > :first-child { order: 0; }
  .etapes, .etapes.quatre { grid-template-columns: 1fr; gap: 22px; }
  .etapes.quatre li:nth-child(2)::after { display: block; }
  .etapes li { padding: 0 0 0 72px; min-height: 52px; }
  .etapes li:not(:last-child)::after { top: 60px; bottom: -18px; left: 25px; right: auto; border-top: 0; border-left: 2px dashed #B9D8B5; }
  .pied .grille { grid-template-columns: 1fr 1fr; }
  .pied .grille > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .pastille-lieu { top: auto; bottom: 14px; right: 14px; font-size: .9rem; }
  .atouts { grid-template-columns: 1fr 1fr; }
  .chemin { grid-template-columns: auto 1fr; padding: 20px; }
  .chemin .fleche { display: none; }
  .magasin { flex: 1 1 100%; }
  .hero .actions .bouton { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero .crete path { stroke-dashoffset: 0; }
}

/* Bouton « Essayer en ligne » de l'en-tête : sur grand écran seulement (sinon dans le menu). */
.entete .essai { display: none; }
@media (min-width: 1440px) { .entete .essai { display: inline-flex; } .nav a[href="/app/"] { display: none; } }
