/* Site de vente des sites vitrine d'artisan. Même famille que outiva.fr et chantiplan.fr :
   bleu nuit quadrillé, trait de cote vert en signature, un seul bouton jaune par écran. */
:root {
  --nuit: #0d1828; --nuit-2: #13233a; --nuit-trait: #263a55; --sur-nuit: #f2f6fb; --sur-nuit-doux: #a9b8cb;
  --cote: #45c4b4; --chantier: #ffb224; --chantier-fonce: #f09c00; --sur-chantier: #1c1300;
  --encre: #142033; --doux: #56647a; --fond: #fff; --fond-2: #f4f7fb; --trait: #dde4ee; --bleu: #2f6fb5;
  --ombre: 0 1px 2px rgba(13,24,40,.06), 0 14px 36px rgba(13,24,40,.1);
  --quadrillage:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 17.5px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
       color: var(--encre); background: var(--fond); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bleu); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); }
p { margin: 0; }
.largeur { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Trait de cote : la signature */
.etiquette { display: flex; align-items: center; gap: 12px; color: var(--bleu); font-weight: 700; font-size: .8rem;
             letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.etiquette::before { content: ""; flex: none; width: 34px; height: 9px; border-inline: 2px solid currentColor;
                     background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 5; background: var(--nuit); border-bottom: 1px solid var(--nuit-trait); }
.entete .largeur { display: flex; align-items: center; gap: 26px; min-height: 68px; }
.marque { display: flex; align-items: center; gap: 11px; white-space: nowrap; color: var(--sur-nuit); font-weight: 750; font-size: 1.12rem;
          text-decoration: none; letter-spacing: -0.01em; }
.entete nav { margin-left: auto; display: flex; gap: 24px; font-size: .96rem; }
.entete nav a { color: var(--sur-nuit); opacity: .84; text-decoration: none; }
.entete nav a:hover { color: var(--cote); opacity: 1; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; border-radius: 12px;
          font-weight: 700; text-decoration: none; border: 2px solid var(--chantier); background: var(--chantier);
          color: var(--sur-chantier); box-shadow: 0 8px 24px rgba(255,178,36,.26); cursor: pointer; font: inherit; font-weight: 700;
          transition: transform .12s ease, background .12s ease; }
.bouton:hover { background: var(--chantier-fonce); border-color: var(--chantier-fonce); transform: translateY(-1px); }
.bouton.discret { background: transparent; color: var(--sur-nuit); border-color: rgba(255,255,255,.35); box-shadow: none; }
.bouton.discret:hover { background: rgba(255,255,255,.1); }
.bouton.sobre { background: transparent; color: var(--bleu); border-color: var(--trait); box-shadow: none; }
.bouton.sobre:hover { border-color: var(--bleu); background: var(--fond-2); }
.entete .bouton { padding: 9px 16px; font-size: .95rem; box-shadow: none; white-space: nowrap; }

/* Accroche */
.heros { position: relative; isolation: isolate; color: var(--sur-nuit); padding: 84px 0 0; overflow: hidden;
  background-color: var(--nuit);
  background-image: radial-gradient(760px 460px at 78% 18%, rgba(58,110,165,.45), transparent 70%), var(--quadrillage);
  background-size: auto, 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.heros .largeur { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: end; }
.heros .texte { padding-bottom: 88px; }
.heros .etiquette { color: var(--cote); }
.heros h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -0.035em; line-height: 1.04; color: #fff; }
.heros h1 .cote { position: relative; display: inline-block; padding-bottom: .16em; }
.heros h1 .cote::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  border-inline: 3px solid var(--cote); background: linear-gradient(var(--cote), var(--cote)) center / 100% 3px no-repeat; }
.heros .chapo { color: var(--sur-nuit-doux); font-size: 1.22rem; margin-top: 24px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.coches { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
          color: var(--sur-nuit-doux); font-size: .96rem; }
.coches li::before { content: "✓"; color: var(--cote); font-weight: 800; margin-right: 8px; }

/* Fenêtre de navigateur autour d'une capture */
.fenetre { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35);
           border: 1px solid rgba(255,255,255,.14); }
.fenetre .barre { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #e9eef5; }
.fenetre .barre i { width: 10px; height: 10px; border-radius: 50%; background: #c3cedb; }
.fenetre .barre span { margin-left: 10px; flex: 1; background: #fff; border-radius: 7px; padding: 3px 12px; font-size: .78rem;
                       color: #6c7a8d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heros .pile { position: relative; align-self: end; height: 430px; }
.heros .pile .fenetre { position: absolute; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.heros .pile .fenetre:nth-child(1) { width: 78%; right: 0; top: 0; opacity: .55; }
.heros .pile .fenetre:nth-child(2) { width: 96%; left: 0; top: 78px; }

/* Sections */
.section { padding: 92px 0; }
.section.teintee { background: var(--fond-2); }
.intro { max-width: 42em; margin-bottom: 44px; }
.intro p { color: var(--doux); font-size: 1.12rem; margin-top: 14px; }

.exemples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
@media (max-width: 1000px) { .exemples { grid-template-columns: repeat(2, 1fr); } }
.exemples a { text-decoration: none; color: inherit; display: block; }
.exemples .fenetre { box-shadow: var(--ombre); border-color: var(--trait); transition: transform .18s ease, box-shadow .18s ease; }
.exemples a:hover .fenetre { transform: translateY(-5px); box-shadow: 0 2px 4px rgba(13,24,40,.06), 0 24px 48px rgba(13,24,40,.16); }
.exemples h3 { font-size: 1.14rem; margin-top: 14px; }
.exemples .voir { display: block; margin-top: 2px; }
.exemples p { color: var(--doux); font-size: .96rem; margin-top: 4px; }
.exemples .voir { color: var(--bleu); font-weight: 700; }

.frise { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: etape; }
.frise li { counter-increment: etape; background: var(--fond); border-radius: 18px; padding: 30px; box-shadow: var(--ombre); position: relative; }
.frise li::before { content: counter(etape); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
                    background: var(--nuit); color: var(--cote); font-weight: 800; font-size: 1.15rem; margin-bottom: 18px; }
.frise h3 { font-size: 1.2rem; }
.frise p { color: var(--doux); margin-top: 8px; font-size: 1rem; }

.compris { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.compris li { padding: 22px 0 22px 30px; border-top: 1px solid var(--trait); position: relative; }
.compris li::before { content: ""; position: absolute; left: 0; top: 30px; width: 16px; height: 9px;
                      border-inline: 2px solid var(--cote); background: linear-gradient(var(--cote), var(--cote)) center / 100% 2px no-repeat; }
.compris h3 { font-size: 1.08rem; letter-spacing: -0.01em; }
.compris p { color: var(--doux); font-size: .98rem; margin-top: 4px; }

/* Tarif */
.tarif { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.prix { background: var(--nuit); color: var(--sur-nuit); border-radius: 22px; padding: 40px; box-shadow: var(--ombre);
        background-image: var(--quadrillage); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.prix .montant { font-size: 4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.prix .montant small { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--sur-nuit-doux); }
.prix ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; color: var(--sur-nuit); }
.prix li::before { content: "✓"; color: var(--cote); font-weight: 800; margin-right: 10px; }
.prix .bouton { width: 100%; }
.prix .note { color: var(--sur-nuit-doux); font-size: .9rem; margin-top: 14px; text-align: center; }
.franc h2 { margin-bottom: 18px; }
.franc p { color: var(--doux); font-size: 1.06rem; }
.franc p + p { margin-top: 14px; }

/* Questions */
.questions { max-width: 820px; }
.questions details { border-top: 1px solid var(--trait); padding: 20px 0; }
.questions details:last-child { border-bottom: 1px solid var(--trait); }
.questions summary { font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--bleu); font-weight: 400; font-size: 1.5rem; line-height: 1; }
.questions details[open] summary::after { content: "–"; }
.questions details p { color: var(--doux); margin-top: 12px; max-width: 44em; }

/* Appel final et pied */
.bandeau { color: var(--sur-nuit); padding: 84px 0; text-align: center; background-color: var(--nuit);
  background-image: radial-gradient(620px 300px at 50% 0%, rgba(58,110,165,.4), transparent 70%), var(--quadrillage);
  background-size: auto, 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.bandeau h2 { color: #fff; }
.bandeau p { color: var(--sur-nuit-doux); font-size: 1.14rem; margin: 14px auto 0; max-width: 34em; }
.bandeau .actions { justify-content: center; }
.pied { background: #09111d; color: var(--sur-nuit-doux); font-size: .9rem; padding: 28px 0; border-top: 1px solid var(--nuit-trait); }
.pied .largeur { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.pied a { color: var(--sur-nuit); }

/* Page de commande et pages de texte */
.tete-page { background-color: var(--nuit); color: var(--sur-nuit); padding: 60px 0 56px;
  background-image: var(--quadrillage); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.tete-page h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 2.9rem); }
.tete-page p { color: var(--sur-nuit-doux); font-size: 1.14rem; margin-top: 14px; max-width: 38em; }
.tete-page .etiquette { color: var(--cote); }
.fiche { max-width: 820px; padding-top: 56px; padding-bottom: 92px; }
.fiche fieldset { border: 1px solid var(--trait); border-radius: 18px; padding: 28px; margin: 0 0 24px; }
.fiche legend { font-weight: 750; font-size: 1.14rem; padding: 0 10px; letter-spacing: -0.01em; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.champs .large { grid-column: 1 / -1; }
.fiche label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 6px; }
.fiche label small { font-weight: 400; color: var(--doux); }
.fiche input, .fiche textarea, .fiche select { width: 100%; font: inherit; color: inherit; padding: 11px 13px;
  border: 1px solid #c4cedb; border-radius: 10px; background: #fff; }
.fiche input[type=color] { padding: 4px; height: 46px; }
.fiche textarea { min-height: 110px; resize: vertical; }
.fiche input:focus, .fiche textarea:focus { outline: 3px solid rgba(47,111,181,.28); border-color: var(--bleu); }
.fiche .envoi { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.fiche .envoi p { color: var(--doux); font-size: .95rem; flex: 1 1 280px; }
.fiche .retour { background: var(--fond-2); border-radius: 14px; padding: 18px 22px; margin-top: 22px; }
.texte { max-width: 760px; padding-top: 56px; padding-bottom: 92px; }
.texte h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.texte p, .texte li { color: var(--doux); }
.texte ul { padding-left: 22px; margin: 8px 0; display: grid; gap: 6px; }
.texte strong { color: var(--encre); }

@media (max-width: 900px) {
  .entete nav { display: none; }
  .entete .bouton { margin-left: auto; }
  .heros { padding-top: 52px; }
  .heros .largeur, .tarif { grid-template-columns: 1fr; gap: 40px; }
  .heros .texte { padding-bottom: 0; }
  .heros .pile { height: 300px; }
  .exemples, .frise, .compris, .champs { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .actions .bouton { flex: 1 1 100%; }
  .prix { padding: 30px; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .heros .texte > * { animation: monte .6s ease-out both; }
  .heros .texte > :nth-child(2) { animation-delay: .08s; }
  .heros .texte > :nth-child(3) { animation-delay: .16s; }
  .heros .texte > :nth-child(4) { animation-delay: .24s; }
  .heros .texte > :nth-child(5) { animation-delay: .32s; }
  .heros h1 .cote::after { transform-origin: left center; animation: trace .8s cubic-bezier(.2,.7,.2,1) .6s both; }
  .heros .pile .fenetre { animation: monte .8s ease-out .3s both; }
  .heros .pile .fenetre:nth-child(2) { animation-delay: .45s; }
}
.texte p + p { margin-top: 10px; }
