/* Feuille de style du site 1scan — identité visuelle d'Agentic Solutions (agenticsolutions.fr) */

/* Polices hébergées sur le site (aucun appel à un service tiers), licence SIL OFL 1.1 : /polices/LICENCE-OFL.txt */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/polices/schibsted-grotesk-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/polices/karla-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/polices/karla-latin-600-normal.woff2") format("woff2");
}

:root {
  /* Fonds et bordures */
  --fond: #F4F5F6;
  --carte: #FFFFFF;
  --bord: #EDEEF0;
  --bord-fort: #E2E4E7;
  /* Textes : seulement --titre et --texte, comme dans l'app ; --secondaire et --libelle servent aux bordures et icônes inactives, jamais au texte */
  --titre: #1F2225;
  --texte: #6B7075;
  --secondaire: #82878C;
  --libelle: #9AA0A6;
  /* Bouton principal et succès */
  --bleu: #2F5FD0;
  --bleu-survol: #244BA8;
  --succes: #7C9A57;
  --succes-pale: #F1F5EC;
  --blanc: #FFFFFF;
  /* Formes */
  --rayon: 26px;
  --rayon-petit: 16px;
  --largeur: 1120px;
  --police-titre: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --police-texte: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 16px;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--bleu-survol); }
strong, b { font-weight: 600; color: var(--titre); }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--police-titre); font-weight: 500; line-height: 1.2; color: var(--titre); margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .conteneur { padding: 0 32px; } }

.lien-evitement {
  position: absolute; left: -9999px; top: 0;
  background: var(--titre); color: var(--blanc); padding: 8px 16px; z-index: 100; border-radius: 999px;
}
.lien-evitement:focus { left: 16px; top: 16px; }

.icone { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 245, 246, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--bord);
}
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--police-titre); font-weight: 500; font-size: 1.25rem; color: var(--titre); }
.marque:hover { color: var(--titre); }
.marque img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 0.95rem; color: var(--texte); }
.nav a:hover { background: var(--carte); color: var(--titre); }
.nav .bouton { margin-left: 8px; }
@media (max-width: 760px) { .nav .nav-secondaire { display: none; } }

/* Boutons : un seul bouton principal (bleu) par écran, les autres en secondaire */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid var(--bleu);
  background: var(--bleu); color: var(--blanc); font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.bouton:hover { background: var(--bleu-survol); border-color: var(--bleu-survol); color: var(--blanc); }
.bouton[disabled] { opacity: 0.6; cursor: wait; }
.bouton-secondaire, .nav a.bouton-secondaire { background: var(--carte); border-color: var(--bord-fort); color: var(--titre); }
.bouton-secondaire:hover, .nav a.bouton-secondaire:hover { background: var(--carte); border-color: var(--libelle); color: var(--titre); }
.nav a.bouton { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.bouton-store, .bouton-store:hover { cursor: default; border-color: var(--bord-fort); }
.bouton-store small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--texte); line-height: 1.1; }
.bouton-store span { text-align: left; line-height: 1.2; }

/* Héros */
.heros { padding: 56px 0 64px; overflow: hidden; }
.heros .conteneur { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .heros .conteneur { grid-template-columns: 1.1fr 0.9fr; } .heros { padding: 88px 0 96px; } }
.etiquette {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--carte); border: 1px solid var(--bord); font-size: 0.875rem; font-weight: 600; color: var(--titre); margin-bottom: 20px;
}
.etiquette .icone { width: 18px; height: 18px; }
.heros .chapeau { font-size: 1.15rem; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mention-essai { margin-top: 16px; font-size: 0.95rem; color: var(--texte); display: flex; align-items: center; gap: 8px; }
.mention-essai .icone { width: 20px; height: 20px; }
.maquette { justify-self: center; width: min(320px, 78vw); }

/* Sections */
.section { padding: 72px 0; }
.section-alternee { background: var(--carte); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.section-alternee .carte, .section-alternee .liste-metiers li { border-color: var(--bord-fort); }
.section-titre { max-width: 40em; margin-bottom: 40px; }
.section-titre p { font-size: 1.05rem; }
.surtitre { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; color: var(--texte); margin-bottom: 8px; }

.grille { display: grid; gap: 20px; }
@media (min-width: 640px) { .grille-2 { grid-template-columns: repeat(2, 1fr); } .grille-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grille-4 { grid-template-columns: repeat(4, 1fr); } .grille-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 979px) { .grille-3 { grid-template-columns: repeat(2, 1fr); } }

.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px; }
.carte h3 { margin-top: 16px; }
.carte p:last-child { margin-bottom: 0; }
.pastille { width: 52px; height: 52px; border-radius: var(--rayon-petit); background: var(--fond); border: 1px solid var(--bord); color: var(--titre); display: grid; place-items: center; }
.pastille .icone { width: 26px; height: 26px; }
.numero { font-size: 0.85rem; font-weight: 600; color: var(--texte); }

.liste-metiers { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.liste-metiers li { padding: 8px 16px; border-radius: 999px; background: var(--carte); border: 1px solid var(--bord); color: var(--titre); }

/* Tarifs */
.tarifs { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 860px) { .tarifs { grid-template-columns: 1fr 1.15fr; } }
.offre { display: flex; flex-direction: column; }
.offre-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 4px; }
.offre h3 { margin: 0; font-size: 1.4rem; }
.offre-pro { border-color: var(--bord-fort); }
.badge { display: inline-flex; align-items: center; background: var(--succes-pale); color: var(--titre); border: 1px solid var(--succes); font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.prix { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 20px; }
.prix-bloc { flex: 1 1 160px; background: var(--fond); border: 1px solid var(--bord); border-radius: var(--rayon-petit); padding: 14px 16px; }
.prix-montant { font-family: var(--police-titre); font-size: 1.9rem; font-weight: 500; color: var(--titre); line-height: 1.1; }
.prix-periode { font-size: 0.95rem; color: var(--texte); }
.prix-note { font-size: 0.85rem; font-weight: 600; color: var(--texte); margin-top: 4px; }
.coches { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.coches li { display: flex; gap: 10px; align-items: flex-start; color: var(--titre); }
.coches .icone { width: 22px; height: 22px; margin-top: 1px; color: var(--succes); }
.offre .note { font-size: 0.85rem; color: var(--texte); margin-top: auto; }

/* Bientôt */
.bientot .carte { display: flex; gap: 16px; align-items: flex-start; }
.bientot .carte h3 { margin: 0 0 4px; }
.bientot .carte p { margin: 0; font-size: 0.95rem; }

/* Formulaires */
.formulaire { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px; max-width: 640px; }
@media (min-width: 720px) { .formulaire { padding: 32px; } }
.champ { margin-bottom: 20px; }
.champ label, .champ legend { display: block; font-weight: 600; color: var(--titre); margin-bottom: 8px; }
.champ input[type="email"] {
  width: 100%; min-height: 50px; padding: 12px 20px; border: 1px solid var(--bord-fort); border-radius: 999px;
  font: inherit; color: var(--titre); background: var(--carte);
}
.champ input[type="email"]::placeholder { color: var(--texte); }
.champ input[type="email"]:focus { border-color: var(--bleu); outline: 2px solid var(--bleu); outline-offset: 0; }
fieldset.champ { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.choix { display: grid; gap: 8px; }
@media (min-width: 560px) { .choix { grid-template-columns: 1fr 1fr; } }
.case { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--bord-fort); border-radius: var(--rayon-petit); cursor: pointer; font-weight: 400; color: var(--titre); }
.champ label.case { display: flex; font-weight: 400; margin-bottom: 0; }
.case:hover { background: var(--fond); }
.case input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bleu); flex: none; }
.consentement { font-size: 0.92rem; border: 0; padding: 0; color: var(--texte); }
.consentement:hover { background: transparent; }
.aide-champ { font-size: 0.85rem; color: var(--texte); margin-top: 12px; }
.anti-robot { margin-bottom: 20px; min-height: 65px; }
.message { margin-top: 16px; padding: 12px 16px; border-radius: var(--rayon-petit); font-weight: 600; display: none; }
.message.visible { display: block; }
.message.succes { background: var(--succes-pale); border: 1px solid var(--succes); color: var(--titre); }
.message.erreur { background: #FBEDEA; border: 1px solid #E5B8AE; color: #8A2E1E; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--bord-fort); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--titre); padding: 16px 32px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--texte); }
.faq details[open] summary::after { content: "\2212"; }

/* Pages de texte (légal, aide) */
.page-texte { padding: 48px 0 72px; }
.page-texte .conteneur { max-width: 820px; }
.page-texte h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-texte h2 { font-size: 1.35rem; margin-top: 2em; }
.page-texte h3 { font-size: 1.1rem; margin-top: 1.5em; }
.page-texte ul { padding-left: 1.3em; }
.page-texte li { margin-bottom: 0.4em; }
.date-maj { color: var(--texte); font-size: 0.95rem; }
.encadre { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 20px 26px; margin: 24px 0; }
.encadre p:last-child { margin-bottom: 0; }
.tableau { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; background: var(--carte); }
.tableau th, .tableau td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--bord); vertical-align: top; }
.tableau th { color: var(--titre); font-weight: 600; width: 34%; }
.defilement { overflow-x: auto; border: 1px solid var(--bord); border-radius: var(--rayon-petit); }
.defilement .tableau { margin: 0; }
.defilement .tableau tr:last-child th, .defilement .tableau tr:last-child td { border-bottom: 0; }
.contact-bloc { display: flex; gap: 16px; align-items: center; }

/* Pied de page */
.pied { background: var(--carte); border-top: 1px solid var(--bord); color: var(--texte); padding: 48px 0 32px; font-size: 0.95rem; }
.pied a { color: var(--texte); }
.pied a:hover { color: var(--titre); }
.pied .conteneur { display: grid; gap: 32px; }
@media (min-width: 760px) { .pied .conteneur { grid-template-columns: 1.4fr 1fr 1fr; } }
.pied h2 { font-family: var(--police-texte); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--texte); margin-bottom: 12px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied .marque { color: var(--titre); margin-bottom: 12px; }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid var(--bord); padding-top: 20px; font-size: 0.85rem; color: var(--texte); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
