/* ==========================================================================
   comtosee — les pages de la société (/, /sites-web/, /prospects/, /merci/),
   refonte du 11 novembre 2026. Chargée par ces pages seulement : la vitrine du
   jeu garde styles.css.
   Encre chaude, papier, un accent ambre ; titres en Barlow Semi Condensed, texte
   en Alegreya. Aucun style en ligne, aucune ressource externe (politique de
   sécurité du site).
   L'accent tient en trois jetons (--accent, --accent-fonce, --lueur) : pour
   changer de couleur, il suffit de les modifier ici.
   ========================================================================== */

@font-face { font-family: "Barlow Semi Condensed"; src: url("/fonts/barlow-semi-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/fonts/alegreya-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---- Jetons ------------------------------------------------------------- */
:root {
  --encre: #14110f;
  --encre-2: #1f1a17;
  --nuit: #0c0a09;
  --papier: #f5f0e7;
  --sable: #ebe3d4;
  --os: #f4eddf;
  --gris: #a69d8e;
  --terne: #5c544a;
  --accent: #f2a83b;        /* ambre : boutons, traits, mots en italique sur fond sombre */
  --accent-fonce: #8a4f08;  /* le même, assombri, pour le texte sur fond clair */
  --lueur: 242, 168, 59;    /* l'ambre en composantes, pour les halos */
  --trait: rgba(20, 17, 15, 0.14);
  --trait-clair: rgba(244, 237, 223, 0.16);
  --titre: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --texte: "Alegreya", Georgia, "Times New Roman", serif;
  --large: 1200px;
  --rayon: 14px;
  --elan: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font-family: var(--texte); font-size: 19px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--titre); font-weight: 600; line-height: 1.02; letter-spacing: -0.005em; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--encre); }
:focus-visible { outline: 3px solid var(--accent-fonce); outline-offset: 3px; border-radius: 4px; }
.ag-bar :focus-visible, .ag-hero :focus-visible, .ag-prospects :focus-visible, .ag-appel :focus-visible, .ag-pied :focus-visible, .ag-formule--une :focus-visible { outline-color: var(--accent); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--os); color: var(--encre); padding: 10px 16px; border-radius: 8px; font-family: var(--titre); }
.skip-link:focus { top: 12px; }
.ag-wrap { width: 100%; max-width: var(--large); margin: 0 auto; padding: 0 28px; }

/* ---- Libellés, titres de section ---------------------------------------- */
.ag-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--titre); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-fonce); }
.ag-kicker::before { content: ""; width: 9px; height: 9px; background: currentColor; transform: rotate(45deg); flex: none; }
.ag-tete { max-width: 780px; margin-bottom: 52px; }
.ag-tete h2 { font-size: clamp(34px, 4.4vw, 60px); }
.ag-chapo { margin-top: 18px; font-size: 21px; color: var(--terne); max-width: 60ch; }

/* ---- Boutons ------------------------------------------------------------ */
.ag-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 17px 26px; border: 1.5px solid transparent; border-radius: 999px; font-family: var(--titre); font-size: 16px; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.ag-btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.2s ease; }
.ag-btn:hover { transform: translateY(-2px); }
.ag-btn:hover svg { transform: translateX(4px); }
.ag-btn--accent { background: var(--accent); color: var(--encre); box-shadow: 0 14px 30px -16px rgba(var(--lueur), 0.7); }
.ag-btn--accent:hover { background: var(--os); box-shadow: 0 18px 34px -16px rgba(var(--lueur), 0.9); }
.ag-btn--encre { background: var(--encre); color: var(--os); }
.ag-btn--encre:hover { background: var(--encre-2); }
.ag-btn--contour { border-color: rgba(244, 237, 223, 0.38); color: var(--os); }
.ag-btn--contour:hover { border-color: var(--os); }
.ag-btn--compact { padding: 11px 18px; font-size: 14px; box-shadow: none; }
.ag-court { display: none; }
.ag-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ag-coche { width: 18px; height: 18px; flex: none; }

/* ---- Barre haute -------------------------------------------------------- */
.ag-bar { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--os); transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.ag-bar.is-scrolled { background: rgba(20, 17, 15, 0.94); box-shadow: 0 1px 0 var(--trait-clair); }
.ag-bar__inner { max-width: var(--large); margin: 0 auto; padding: 0 28px; height: 76px; display: flex; align-items: center; gap: 30px; }
.ag-brand { display: inline-flex; color: var(--os); text-decoration: none; }
.ag-brand svg { height: 21px; width: auto; }
/* Le losange du logo prend l'accent sur ces pages (le fichier du logo, commun avec le jeu, reste tel quel). */
.ag-brand svg path[fill="#c0281c"] { fill: var(--accent); }
.ag-nav { display: flex; gap: 24px; margin-left: auto; font-family: var(--titre); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }
/* Le trait sous un lien se dessine de gauche à droite au survol. */
.ag-nav a { text-decoration: none; white-space: nowrap; padding: 6px 0; color: rgba(244, 237, 223, 0.82); background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat; transition: color 0.2s ease, background-size 0.3s var(--elan); }
.ag-nav a:hover, .ag-nav a[aria-current="page"] { color: var(--os); background-size: 100% 2px; }

/* ---- Héros -------------------------------------------------------------- */
.ag-hero { position: relative; overflow: hidden; padding: 148px 0 120px; color: var(--os); background:
  radial-gradient(50% 60% at 4% 100%, rgba(var(--lueur), 0.1) 0%, rgba(var(--lueur), 0) 60%),
  var(--encre); }
/* Un halo ambre qui respire lentement derrière la vitrine. */
.ag-hero::before { content: ""; position: absolute; top: -34%; right: -14%; width: 64%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--lueur), 0.24), rgba(var(--lueur), 0)); pointer-events: none; animation: ag-lueur 14s ease-in-out infinite alternate; }
/* Une trame de plan, discrète, qui s'efface vers les bords : le site se dessine avant de se construire. */
.ag-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(244, 237, 223, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 237, 223, 0.05) 1px, transparent 1px); background-size: 68px 68px; -webkit-mask-image: radial-gradient(75% 85% at 72% 42%, #000 0%, transparent 76%); mask-image: radial-gradient(75% 85% at 72% 42%, #000 0%, transparent 76%); }
.ag-hero > .ag-wrap { position: relative; z-index: 1; }
.ag-hero__grille { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 56px; align-items: center; }
.ag-hero .ag-kicker { display: inline-flex; padding: 8px 16px 8px 14px; border: 1px solid var(--trait-clair); border-radius: 999px; background: rgba(244, 237, 223, 0.04); color: var(--accent); }
.ag-hero h1 { font-size: clamp(42px, 5.2vw, 76px); line-height: 0.96; letter-spacing: -0.012em; }
.ag-hero h1 em { font-family: var(--texte); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--accent); }
.ag-hero__chapo { margin: 28px 0 34px; font-size: 21px; line-height: 1.5; color: #d2c9b8; max-width: 54ch; }
.ag-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--trait-clair); font-family: var(--titre); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: #d2c9b8; }
.ag-points li { display: flex; align-items: center; gap: 9px; }
.ag-points .ag-coche { color: var(--accent); }
/* La vitrine déborde de la colonne vers la droite, jusqu'au bord de l'écran sur les grands écrans. */
.ag-hero__visuel { position: relative; min-width: 0; margin-right: clamp(-170px, calc((1200px - 100vw) / 2 + 26px), 0px); }
/* À l'arrivée : le texte monte ligne après ligne, la vitrine suit. */
.ag-hero__texte > * { animation: ag-monte 0.8s var(--elan) backwards; }
.ag-hero__texte > :nth-child(2) { animation-delay: 0.08s; }
.ag-hero__texte > :nth-child(3) { animation-delay: 0.16s; }
.ag-hero__texte > :nth-child(4) { animation-delay: 0.24s; }
.ag-hero__texte > :nth-child(5) { animation-delay: 0.32s; }
.ag-hero__visuel { animation: ag-entree 1s var(--elan) 0.2s backwards; }
/* Les hauts de page sans vitrine (/prospects/, /merci/). */
.ag-hero--simple { padding: 176px 0 104px; }
.ag-hero--simple .ag-hero__texte { max-width: 860px; }
.ag-hero--merci { min-height: 78vh; display: grid; align-items: center; }

/* ---- Fenêtre de navigateur et téléphone dessinés ------------------------- */
.ag-fenetre { border-radius: 12px; overflow: hidden; background: var(--nuit); border: 1px solid var(--trait); box-shadow: 0 30px 60px -34px rgba(20, 17, 15, 0.55); }
.ag-fenetre__barre { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--encre-2); }
.ag-fenetre__barre i { width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 237, 223, 0.24); }
.ag-fenetre__barre span { margin-left: 12px; padding: 3px 12px; border-radius: 999px; background: rgba(244, 237, 223, 0.08); font-family: var(--titre); font-size: 12px; letter-spacing: 0.06em; color: rgba(244, 237, 223, 0.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-fenetre video { width: 100%; height: auto; background: var(--nuit); }
.ag-hero .ag-fenetre { position: relative; border-color: var(--trait-clair); box-shadow: 0 60px 100px -46px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(var(--lueur), 0.1); }
.ag-telephone { position: absolute; left: -30px; bottom: -34px; width: 22%; min-width: 104px; border-radius: 22px; overflow: hidden; border: 5px solid var(--nuit); outline: 1px solid var(--trait-clair); background: var(--nuit); box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.95); }
.ag-telephone video { width: 100%; height: auto; }

/* La vitrine : les sites se succèdent dans la fenêtre et dans le téléphone (js/agence.js). */
.ag-vitrine__cadre { position: relative; padding: 0 0 34px 30px; perspective: 1700px; }
.ag-vitrine__cadre::before { content: ""; position: absolute; inset: 8% 4% 0 10%; background: radial-gradient(closest-side, rgba(var(--lueur), 0.3), rgba(var(--lueur), 0)); filter: blur(46px); }
.ag-vue, .ag-vue-mobile { display: none; }
.ag-vue.is-active, .ag-vue-mobile.is-active { display: block; animation: ag-fondu 0.6s ease; }
/* Au survol (js/agence.js) : l'écran s'incline vers le curseur, le téléphone glisse en sens inverse.
   Au repos, le téléphone flotte doucement (propriété translate, indépendante du transform du survol). */
/* Au repos, l'écran est légèrement tourné vers le texte : il part en perspective vers le bord de la page. */
.ag-hero .ag-fenetre { transform: rotateX(var(--rx, 2deg)) rotateY(var(--ry, -11deg)); transform-origin: 0% 50%; transition: transform 0.5s ease-out; will-change: transform; }
.ag-hero .ag-telephone { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); transition: transform 0.4s ease-out, box-shadow 0.4s ease-out; will-change: transform; animation: ag-flotte 5s ease-in-out infinite alternate; }
.ag-vitrine__cadre:hover .ag-telephone { box-shadow: 0 44px 70px -24px rgba(0, 0, 0, 0.95); }

/* Le repère sous la vitrine : un trait par site, celui du site affiché se remplit pendant qu'il défile. */
.ag-suivi { display: flex; justify-content: flex-end; gap: 8px; margin-top: 30px; padding-right: clamp(0px, calc((100vw - 1200px) / 2 - 26px), 170px); }
.ag-suivi i { position: relative; width: 44px; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(244, 237, 223, 0.18); }
.ag-suivi i.is-vu { background: rgba(244, 237, 223, 0.5); }
.ag-suivi i.is-active::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: ag-remplit 7s linear both; }
.no-js .ag-suivi { display: none; }

/* ---- La bande qui défile sous le haut de page ---------------------------- */
.ag-bande { overflow: hidden; padding: 18px 0; background: var(--nuit); color: var(--os); border-top: 1px solid var(--trait-clair); }
.ag-bande__piste { display: flex; width: max-content; animation: ag-defile 44s linear infinite; }
.ag-bande:hover .ag-bande__piste { animation-play-state: paused; }
.ag-bande span { display: inline-flex; align-items: center; gap: 30px; padding-right: 30px; font-family: var(--titre); font-size: 17px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; color: #d2c9b8; }
.ag-bande span::after { content: ""; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); flex: none; }

/* ---- Sections ----------------------------------------------------------- */
.ag-section { padding: 112px 0; }
.ag-section--sable { background: var(--sable); }
.ag-num { display: block; font-family: var(--titre); font-size: 15px; letter-spacing: 0.16em; color: var(--accent-fonce); }

/* Exemples : sept cartes sombres sur trois rangées (deux grandes, trois petites, deux grandes). Les
   grandes montrent aussi le site sur téléphone. La fenêtre remplit la carte ; dans les petites cartes,
   le métier passe sous le nom pour que toutes les fenêtres d'une rangée aient la même hauteur. */
.ag-exemples { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.ag-exemple { grid-column: span 4; display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 26px 26px 0; border-radius: 20px; background: var(--encre); color: var(--os); transition: transform 0.35s var(--elan), box-shadow 0.35s ease; }
.ag-exemple::before { content: ""; position: absolute; right: -30%; top: -60%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--lueur), 0.2), rgba(var(--lueur), 0)); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.ag-exemple--grand { grid-column: span 6; }
.ag-exemple:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -34px rgba(20, 17, 15, 0.75); }
.ag-exemple:hover::before { opacity: 1; }
.ag-exemple figcaption { position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.ag-exemple__n { font-family: var(--titre); font-size: 14px; letter-spacing: 0.16em; color: var(--accent); }
.ag-exemple b { font-family: var(--titre); font-weight: 600; font-size: 27px; line-height: 1.1; }
.ag-exemple b { white-space: nowrap; }
.ag-exemple--grand b { font-size: 34px; }
.ag-exemple:not(.ag-exemple--grand) figcaption { flex-wrap: wrap; row-gap: 12px; }
.ag-exemple:not(.ag-exemple--grand) .ag-etiquette { margin-left: 0; order: 3; }
.ag-exemple:not(.ag-exemple--grand) figcaption::after { content: ""; flex-basis: 100%; order: 2; }
.ag-etiquette { flex: none; margin-left: auto; padding: 5px 13px; border: 1px solid var(--trait-clair); border-radius: 999px; font-family: var(--titre); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #cfc6b5; transition: border-color 0.25s ease, color 0.25s ease; }
.ag-exemple:hover .ag-etiquette { border-color: var(--accent); color: var(--accent); }
.ag-exemple__vue { position: relative; flex: 1; aspect-ratio: 16 / 10.4; min-height: 0; }
.ag-exemple .ag-fenetre { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 12px 12px 0 0; border: 1px solid var(--trait-clair); border-bottom: 0; box-shadow: none; transition: transform 0.45s var(--elan); transform-origin: 50% 100%; }
.ag-exemple .ag-fenetre__barre { flex: none; height: 30px; }
.ag-exemple .ag-fenetre video { flex: 1; min-height: 0; height: 100%; object-fit: cover; object-position: top center; }
.ag-exemple:hover .ag-fenetre { transform: scale(1.025); }
.ag-exemple .ag-telephone { left: auto; right: 26px; bottom: 0; width: 17%; min-width: 96px; border-bottom: 0; border-radius: 20px 20px 0 0; transition: transform 0.45s var(--elan); transform: translateY(12%); }
.ag-exemple:hover .ag-telephone { transform: none; }

/* Les cartes (services, modules, formules) se soulèvent au survol. */
.ag-service, .ag-module, .ag-formule { transition: transform 0.3s var(--elan), box-shadow 0.3s ease, border-color 0.3s ease; }
.ag-service:hover, .ag-module:hover, .ag-formule:hover { transform: translateY(-5px); box-shadow: 0 28px 44px -30px rgba(20, 17, 15, 0.5); }

/* Services */
.ag-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ag-service { display: flex; flex-direction: column; gap: 12px; padding: 34px 34px 36px; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); }
.ag-service:hover { border-color: rgba(20, 17, 15, 0.4); }
.ag-service h3 { font-size: 30px; }
.ag-service p { color: var(--terne); }
.ag-lien { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: auto; padding: 10px 0 4px; border-bottom: 2px solid var(--accent); font-family: var(--titre); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; }
.ag-lien svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.ag-lien:hover svg { transform: translateX(4px); }

/* Méthode : le trait de chaque étape se dessine à l'apparition, le chiffre se remplit au survol. */
.ag-etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.ag-etapes li { position: relative; padding-top: 24px; }
.ag-etapes li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--encre); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--elan); transition-delay: calc(var(--delai, 0s) + 0.15s); }
.ag-etapes li.is-visible::before, .no-js .ag-etapes li::before { transform: none; }
.ag-etapes .ag-num { font-size: 64px; line-height: 1; letter-spacing: 0; color: transparent; -webkit-text-stroke: 1.5px var(--encre); transition: color 0.3s ease; }
.ag-etapes li:hover .ag-num { color: var(--accent); }
.ag-etapes h3 { margin: 14px 0 8px; font-size: 25px; }
.ag-etapes p { color: var(--terne); }

/* Le bandeau des tarifs (accueil) */
.ag-tarif { background: var(--accent); color: var(--encre); padding: 96px 0; }
.ag-tarif .ag-kicker { color: var(--encre); }
.ag-tarif h2 { font-size: clamp(38px, 5.6vw, 82px); line-height: 0.98; max-width: 16ch; }
.ag-tarif .ag-chapo { color: var(--encre); max-width: 52ch; margin: 22px 0 32px; }
.ag-tarif .ag-btn--encre:hover { background: var(--nuit); }

/* La génération de prospects (accueil) */
.ag-prospects { background: var(--encre); color: var(--os); padding: 112px 0; }
.ag-prospects__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.ag-prospects .ag-kicker { color: var(--accent); }
.ag-prospects h2 { font-size: clamp(34px, 4.4vw, 60px); }
.ag-prospects .ag-chapo { color: #d2c9b8; margin: 20px 0 32px; }
.ag-prospects__points li { display: grid; grid-template-columns: 38px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--trait-clair); }
.ag-prospects__points li:last-child { border-bottom: 1px solid var(--trait-clair); }
.ag-prospects__points .ag-coche { width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: var(--accent); color: var(--encre); }
.ag-prospects__points h3 { font-size: 24px; margin-bottom: 4px; }
.ag-prospects__points p { color: #cfc6b5; }

/* La zone d'intervention (/sites-web/) */
.ag-villes { display: flex; flex-wrap: wrap; gap: 10px; }
.ag-villes li { padding: 8px 16px; border: 1px solid var(--trait); border-radius: 999px; background: var(--papier); font-family: var(--titre); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- Contact : les coordonnées et le formulaire --------------------------- */
.ag-appel { position: relative; overflow: hidden; background: var(--encre); color: var(--os); padding: 112px 0; }
.ag-appel::before { content: ""; position: absolute; left: -16%; bottom: -46%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--lueur), 0.14), rgba(var(--lueur), 0)); pointer-events: none; }
.ag-appel__grille { position: relative; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 64px; align-items: start; }
.ag-appel .ag-kicker { color: var(--accent); }
.ag-appel h2 { font-size: clamp(38px, 5vw, 70px); line-height: 0.98; }
.ag-appel .ag-chapo { color: #d2c9b8; margin: 22px 0 36px; }
.ag-coords { display: grid; gap: 0; border-top: 1px solid var(--trait-clair); }
.ag-coords div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--trait-clair); }
.ag-coords dt { font-family: var(--titre); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gris); padding-top: 5px; }
.ag-coords a { text-decoration-color: var(--accent); text-underline-offset: 4px; }

.ag-form { display: grid; gap: 18px; padding: 36px; border: 1px solid var(--trait-clair); border-radius: 20px; background: rgba(244, 237, 223, 0.04); color-scheme: dark; }
.ag-form__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ag-champ { display: grid; gap: 7px; min-width: 0; }
.ag-champ span { font-family: var(--titre); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #cfc6b5; }
.ag-champ input, .ag-champ select, .ag-champ textarea { width: 100%; margin: 0; padding: 13px 15px; border: 1px solid rgba(244, 237, 223, 0.22); border-radius: 10px; background: rgba(12, 10, 9, 0.55); color: var(--os); font: inherit; font-size: 18px; line-height: 1.35; transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; }
.ag-champ textarea { resize: vertical; min-height: 118px; }
.ag-champ select option { background: var(--encre); color: var(--os); }
.ag-champ input:hover, .ag-champ select:hover, .ag-champ textarea:hover { border-color: rgba(244, 237, 223, 0.45); }
.ag-champ input:focus, .ag-champ select:focus, .ag-champ textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--lueur), 0.28); background: var(--nuit); }
.ag-form .ag-btn { justify-self: start; margin-top: 6px; border: 0; }
.ag-form__note { font-size: 15px; color: var(--gris); }
.ag-form__note a { text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---- Pages légales (/mentions-legales/, /confidentialite/) ---------------- */
.ag-hero--doc { padding: 150px 0 60px; }
.ag-hero--doc h1 { font-size: clamp(36px, 4.4vw, 60px); }
.ag-hero--doc .ag-hero__chapo { margin: 18px 0 0; font-size: 17px; color: var(--gris); }
.ag-doc { padding: 76px 0 112px; }
/* Le texte garde une largeur de lecture, aligné à gauche sous le titre. */
.ag-doc__inner > * { max-width: 820px; }
.ag-doc h2 { margin: 54px 0 16px; padding-top: 26px; border-top: 1px solid var(--trait); font-size: 30px; scroll-margin-top: 96px; }
.ag-doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ag-doc p { color: #3a342d; }
.ag-doc p + p, .ag-doc ul + p, .ag-doc p + ul { margin-top: 16px; }
.ag-doc ul { display: grid; gap: 10px; padding-left: 22px; list-style: disc; color: #3a342d; }
.ag-doc strong { color: var(--encre); }
.ag-doc a { color: var(--accent-fonce); text-underline-offset: 3px; }
.ag-doc a:hover { color: var(--encre); }

/* Pied */
.ag-pied { background: var(--nuit); color: var(--gris); padding: 56px 0 34px; font-size: 16px; }
.ag-pied__inner { display: grid; gap: 22px; }
.ag-pied__marque { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.ag-pied__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--titre); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.ag-pied__nav a { text-decoration: none; color: #cfc6b5; transition: color 0.2s ease; }
.ag-pied__nav a:hover { color: var(--accent); }
.ag-pied__legal { padding-top: 22px; border-top: 1px solid var(--trait-clair); font-size: 15px; }

/* ---- /sites-web/ et /prospects/ ------------------------------------------ */
.ag-compris { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.ag-compris li { display: grid; grid-template-columns: 38px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--trait); }
.ag-compris .ag-coche { width: 38px; height: 38px; padding: 10px; border-radius: 50%; background: var(--encre); color: var(--accent); }
.ag-compris h3 { font-size: 24px; margin-bottom: 4px; }
.ag-compris p { color: var(--terne); }

.ag-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ag-module { padding: 28px 28px 30px; background: var(--papier); border: 1px solid var(--trait); border-radius: var(--rayon); border-top: 3px solid var(--accent); }
.ag-section:not(.ag-section--sable) .ag-module { background: #fbf8f2; }
.ag-module h3 { font-size: 25px; margin-bottom: 8px; }
.ag-module p { color: var(--terne); }

.ag-formules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.ag-formule { display: flex; flex-direction: column; padding: 40px 38px; background: var(--papier); border: 1px solid var(--trait); border-radius: 20px; }
.ag-formule--une { background: var(--encre); color: var(--os); border-color: var(--encre); }
.ag-formule h3 { font-size: 17px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-fonce); }
.ag-formule--une h3 { color: var(--accent); }
.ag-formule__montant { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 18px; }
.ag-formule__montant b { font-family: var(--titre); font-weight: 600; font-size: clamp(54px, 6vw, 80px); line-height: 0.95; }
.ag-formule__montant span { font-size: 18px; color: var(--terne); }
.ag-formule--une .ag-formule__montant span { color: #cfc6b5; }
.ag-formule__suite { margin-top: 8px; font-family: var(--titre); font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }
.ag-formule ul { display: grid; gap: 12px; margin: 28px 0 34px; padding-top: 26px; border-top: 1px solid var(--trait); }
.ag-formule--une ul { border-color: var(--trait-clair); }
.ag-formule li { display: flex; align-items: flex-start; gap: 12px; }
.ag-formule li .ag-coche { margin-top: 5px; color: var(--accent-fonce); }
.ag-formule--une li .ag-coche { color: var(--accent); }
.ag-formule .ag-btn { margin-top: auto; align-self: flex-start; }
.ag-note { margin-top: 28px; font-size: 17px; color: var(--terne); max-width: 78ch; }

.ag-faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.ag-faq .ag-tete { margin-bottom: 0; position: sticky; top: 110px; }
.ag-question { border-top: 1px solid var(--trait); }
.ag-question:last-child { border-bottom: 1px solid var(--trait); }
.ag-question summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--titre); font-weight: 600; font-size: 24px; line-height: 1.15; transition: color 0.2s ease; }
.ag-question summary:hover { color: var(--accent-fonce); }
.ag-question summary::-webkit-details-marker { display: none; }
.ag-question summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--encre); display: grid; place-items: center; font-family: var(--titre); font-size: 22px; line-height: 1; color: var(--encre); transition: transform 0.25s var(--elan), background-color 0.2s ease, color 0.2s ease; }
.ag-question[open] summary::after { transform: rotate(45deg); background: var(--encre); color: var(--accent); }
.ag-question[open] p { animation: ag-monte 0.4s var(--elan); }
.ag-question p { padding: 0 54px 24px 0; color: var(--terne); }

/* ---- Apparition au défilement (classe is-visible posée par js/main.js) -----
   Une animation plutôt qu'une transition : une fois jouée, elle ne retient plus
   rien, et les effets de survol des cartes gardent leur propre rythme. Les
   éléments d'une même rangée arrivent l'un après l'autre (--delai). */
.reveal { opacity: 0; }
.reveal.is-visible { opacity: 1; animation: ag-monte 0.75s var(--elan) backwards; animation-delay: var(--delai, 0s); }
.no-js .reveal { opacity: 1; }
.ag-services > :nth-child(2n), .ag-compris > :nth-child(2n), .ag-formules > :nth-child(2) { --delai: 0.1s; }
.ag-etapes > :nth-child(2), .ag-modules > :nth-child(3n+2), .ag-prospects__points > :nth-child(2) { --delai: 0.1s; }
.ag-etapes > :nth-child(3), .ag-modules > :nth-child(3n), .ag-prospects__points > :nth-child(3) { --delai: 0.2s; }
.ag-etapes > :nth-child(4) { --delai: 0.3s; }
.ag-exemples > :nth-child(2), .ag-exemples > :nth-child(4), .ag-exemples > :nth-child(7) { --delai: 0.1s; }
.ag-exemples > :nth-child(5) { --delai: 0.2s; }
.ag-appel .ag-form { --delai: 0.12s; }

@keyframes ag-monte { from { opacity: 0; transform: translateY(24px); } }
@keyframes ag-entree { from { opacity: 0; transform: translateY(34px) scale(0.98); } }
@keyframes ag-fondu { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes ag-flotte { to { translate: 0 -10px; } }
@keyframes ag-lueur { from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; } to { transform: translate3d(-9%, 12%, 0) scale(1.2); opacity: 1; } }
@keyframes ag-defile { to { transform: translateX(-50%); } }
@keyframes ag-remplit { from { transform: scaleX(0); } }

/* ---- Réactivité --------------------------------------------------------- */
@media (max-width: 1080px) {
  .ag-nav { display: none; }
  .ag-bar .ag-btn { margin-left: auto; }
  .ag-hero__grille { grid-template-columns: 1fr; gap: 54px; }
  .ag-hero__visuel { max-width: 680px; margin-right: 0; }
  .ag-hero .ag-fenetre { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .ag-suivi { justify-content: flex-start; padding: 0 0 0 30px; }
  .ag-etapes { grid-template-columns: repeat(2, 1fr); gap: 36px 30px; }
  .ag-exemple { grid-column: span 6; }
  .ag-exemple:last-child { grid-column: 1 / -1; }
  .ag-exemple--grand b { font-size: 28px; }
  .ag-modules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  body { font-size: 18px; }
  .ag-bar__inner { height: 66px; }
  .ag-hero { padding: 116px 0 84px; }
  .ag-hero--simple { padding: 128px 0 72px; }
  .ag-hero--doc { padding: 116px 0 48px; }
  .ag-doc { padding: 56px 0 78px; }
  .ag-doc h2 { font-size: 26px; }
  .ag-prospects { padding: 78px 0; }
  .ag-prospects__grille { grid-template-columns: 1fr; gap: 40px; }
  .ag-section, .ag-appel { padding: 78px 0; }
  .ag-tarif { padding: 76px 0; }
  .ag-tete { margin-bottom: 38px; }
  .ag-appel__grille, .ag-faq { grid-template-columns: 1fr; gap: 42px; }
  .ag-faq .ag-tete { position: static; }
  .ag-compris { grid-template-columns: 1fr; }
  .ag-formules { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .ag-wrap, .ag-bar__inner { padding: 0 18px; }
  .ag-long { display: none; }
  .ag-court { display: inline; }
  .ag-services, .ag-modules { grid-template-columns: 1fr; }
  .ag-exemple, .ag-exemple:last-child { grid-column: 1 / -1; }
  .ag-exemple { padding: 20px 18px 0; border-radius: 16px; }
  .ag-exemple figcaption { flex-wrap: wrap; gap: 6px 12px; margin-bottom: 18px; }
  .ag-exemple b, .ag-exemple--grand b { font-size: 24px; }
  .ag-exemple .ag-telephone { display: none; }
  .ag-hero .ag-telephone { left: -8px; bottom: -26px; }
  .ag-vitrine__cadre { padding-left: 12px; }
  .ag-suivi { padding-left: 12px; }
  .ag-suivi i { width: 30px; }
  .ag-etapes { grid-template-columns: 1fr; gap: 28px; }
  .ag-service { padding: 26px 24px 28px; }
  .ag-formule { padding: 30px 24px; }
  .ag-coords div { grid-template-columns: 1fr; gap: 2px; }
  .ag-question summary { font-size: 21px; }
  .ag-question p { padding-right: 0; }
  .ag-cta .ag-btn { flex: 1 1 auto; }
  .ag-bande { padding: 14px 0; }
  .ag-bande span { font-size: 15px; gap: 22px; padding-right: 22px; }
  .ag-form { padding: 24px 20px; }
  .ag-form__duo { grid-template-columns: 1fr; }
  .ag-form .ag-btn { justify-self: stretch; }
  /* Sur une colonne, pas de décalage entre voisins : chaque bloc arrive quand on l'atteint. */
  .reveal { --delai: 0s !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; }
  .ag-etapes li::before { transform: none; }
}
