/* Mon-Compteur.fr — thème bordeaux */
:root {
    --bordeaux: #3F2F34;
    --ardoise: #7D818F;
    --marine: #31384F;
    --bleu: #456FDF;
    --bleu-fonce: #2F457F;
    --bleu-pale: #D1D9EF;
    --gris: #CCCCCC;
    --gris-menu: #BFBFBF;
    --rouge: #C8332E;
    --texte: #2b2629;
    --doux: #64606a;
    --rayon: 10px;
}

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

body {
    margin: 0;
    font: 16px/1.65 Tahoma, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    color: var(--texte);
    background: var(--gris) url(../img/html2.png);
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: #2f58c4; font-weight: 700; text-underline-offset: 2px; }
a:hover { color: #0000CC; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; border-radius: 6px; }

.site {
    max-width: 960px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background: #f4f3f4;
    box-shadow: 0 0 30px rgba(40, 25, 30, .18);
}

/* En-tête */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 32px;
    background: #fff;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #111; }
.logo:hover { color: #111; }
.logo img { flex: none; }
.logo > span { display: flex; flex-direction: column; }
.logo-nom { font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; }
.logo-nom em { font-style: normal; color: var(--ardoise); }
.logo-slogan { font-size: .82rem; font-weight: 400; color: var(--doux); }

.promo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px;
    border: 1px solid #e3e0e2;
    border-left: 4px solid var(--rouge);
    border-radius: 8px;
    background: #faf9fa;
    text-decoration: none;
    font-size: .85rem;
    line-height: 1.4;
}
.promo span { font-weight: 400; color: var(--doux); }
.promo strong { color: var(--rouge); }
.promo:hover { border-color: var(--rouge); }

/* Menu */
.nav {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--gris-menu);
    border-top: 1px solid #aaa;
    border-bottom: 3px solid var(--bordeaux);
}
.nav ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 32px; list-style: none; }
.nav a {
    display: block;
    padding: 7px 16px;
    border-radius: 6px;
    background: var(--ardoise);
    border: 1px solid var(--bordeaux);
    color: #fff;
    font-size: .88rem;
    letter-spacing: .06em;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
    transition: background .15s;
}
.nav a:hover { background: var(--marine); color: #fff; }
.nav a[aria-current="page"] { background: var(--bordeaux); }

.content { flex: 1; padding: 28px 32px 8px; }

/* Accueil */
.hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 24px;
    padding: 36px;
    border-radius: var(--rayon);
    background: linear-gradient(135deg, var(--bordeaux), var(--marine));
    color: #fff;
}
.hero h1 { margin: 0 0 12px; font-size: 2.1rem; line-height: 1.2; text-wrap: balance; }
.lead { margin: 0 0 22px; font-size: 1.05rem; color: #ece8ea; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.hint { margin: 12px 0 0; font-size: .82rem; color: #cfc9d2; }
.showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px 12px;
    border-radius: var(--rayon);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.digits { display: inline-flex; max-width: 100%; vertical-align: middle; line-height: 0; }
.showcase .digits { zoom: 1.35; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 24px; }
.stats div {
    display: flex;
    flex-direction: column-reverse;
    padding: 16px;
    text-align: center;
    background: #fff;
    border: 1px solid #dcd8da;
    border-radius: var(--rayon);
}
.stats dd { margin: 0; font-size: 1.9rem; font-weight: 700; color: var(--bordeaux); line-height: 1.3; }
.stats dt { font-size: .85rem; color: var(--doux); }

/* Blocs */
.card {
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #d8d3d5;
    border-radius: var(--rayon);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(40, 25, 30, .07);
}
.card > h1, .card > h2 {
    margin: 0;
    padding: 14px 24px;
    background: var(--bordeaux);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.35;
}
.card > h1 { font-size: 1.4rem; }
.card-body { padding: 20px 24px; }
.card-body > :first-child { margin-top: 0; }
.card-body > :last-child { margin-bottom: 0; }
.card-body h2 { margin: 20px 0 6px; font-size: 1.05rem; color: var(--bordeaux); }
.center { text-align: center; }

.features, .steps, .gallery, .partners { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 14px; }
.features { grid-template-columns: repeat(2, 1fr); }
.features li, .steps li {
    padding: 14px 16px;
    border-radius: 8px;
    background: #f6f5f7;
    border-left: 4px solid var(--ardoise);
    font-size: .93rem;
}
.features strong, .steps strong { display: block; color: var(--bordeaux); font-size: 1rem; }
.steps { grid-template-columns: repeat(3, 1fr); counter-reset: etape; }
.steps li { counter-increment: etape; border-left: 0; border-top: 4px solid var(--bleu); background: #eef1f9; }
.steps strong::before { content: counter(etape) ". "; }
.gallery { grid-template-columns: repeat(3, 1fr); }
.gallery li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 8px;
    border: 1px solid #e3e0e2;
    border-radius: 8px;
}
.gallery li > span:last-child { font-size: .8rem; color: var(--doux); }
.partners { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }

/* Boutons */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-cta, .btn-cta:hover { background: var(--rouge); color: #fff; }
.btn-cta:hover { background: #a92723; }
.btn-ghost, .btn-ghost:hover { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-primary, .btn-primary:hover { background: var(--marine); color: #fff; }
.btn-primary:hover { background: var(--bordeaux); }
.btn-block { display: block; width: 100%; max-width: 340px; margin: 0 auto; }

/* Formulaire */
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: block; margin-bottom: 10px; padding: 0; font-weight: 700; color: var(--bordeaux); }
.field small { font-weight: 400; color: var(--doux); }
.num {
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--bordeaux);
    color: #fff;
    font-size: .85rem;
    line-height: 26px;
    text-align: center;
}
input[type="url"], textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #b9b4b8;
    border-radius: 8px;
    font: inherit;
    color: var(--texte);
    background: #fff;
}
input[type="url"]:focus, textarea:focus { border-color: var(--bleu); outline: 3px solid var(--bleu-pale); }

.choices { display: grid; gap: 12px; }
.choices-2 { grid-template-columns: repeat(2, 1fr); }
.choices-3 { grid-template-columns: repeat(3, 1fr); }
.choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border: 2px solid #e0dcde;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.choice:hover { border-color: var(--ardoise); }
.choice:has(input:checked) { border-color: var(--bleu); background: #eef1fb; }
.choice input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--bleu-fonce); }
.choice small { display: block; line-height: 1.4; }
.choice-skin { min-height: 64px; }

.notice { padding: 12px 16px; border-radius: 8px; border: 1px solid; }
.notice-ok { background: #eaf5ec; border-color: #93c79e; color: #1e5c2c; }
.notice-error { background: #fdeceb; border-color: #e5a19e; color: #8c201c; }

.code { margin: 20px 0; }
.code label { display: block; margin-bottom: 6px; }
.code textarea { font: .85rem/1.5 Consolas, "Courier New", monospace; background: #f6f5f7; resize: vertical; word-break: break-all; min-height: 6.5em; field-sizing: content; }
.code .btn { margin-top: 6px; padding: 9px 16px; font-size: .9rem; }

/* FAQ */
.faq { border-bottom: 1px solid #e3e0e2; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--ardoise); }
.faq[open] summary::after { content: "−"; }
.card-body .faq h2 { margin: 0; font-size: 1rem; }
.faq p { margin: 0 0 16px; }

.big404 { margin: 0; font-size: 6rem; font-weight: 700; line-height: 1.1; color: var(--rouge); }

/* Pied de page */
.footer { padding: 22px 32px; background: var(--bordeaux); color: #e8e3e5; text-align: center; font-size: .85rem; }
.footer p { margin: 0 0 12px; }
.footer a { color: var(--bleu-pale); }
.footer a:hover { color: #fff; }
.network ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 6px 0 0; padding: 0; list-style: none; }
.footer .spotlight {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    max-width: 620px;
    margin: 0 auto 18px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .07);
    font-size: .95rem;
}
.footer .copyright { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16); }

/* Tablettes et mobiles */
@media (max-width: 760px) {
    .header { flex-direction: column; padding: 18px 16px; gap: 14px; }
    .promo { align-items: center; width: 100%; text-align: center; }
    .nav ul { padding: 8px 12px; justify-content: center; }
    .content { padding: 16px 12px 1px; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px 18px; text-align: center; }
    .hero h1 { font-size: 1.65rem; }
    .actions { justify-content: center; }
    .steps, .choices-3 { grid-template-columns: minmax(0, 1fr); }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card > h1, .card > h2 { padding: 12px 16px; }
    .card > h1 { font-size: 1.2rem; }
    .card-body { padding: 16px; }
    .footer { padding: 20px 16px; }
}

@media (max-width: 520px) {
    body { font-size: 15px; }
    .logo { gap: 10px; }
    .logo img { width: 48px; height: 48px; }
    .logo-nom { font-size: 1.5rem; }
    .logo-slogan { font-size: .72rem; }
    .nav { position: static; }
    .nav ul { display: grid; grid-template-columns: repeat(6, 1fr); }
    .nav li { grid-column: span 2; }
    .nav li:nth-child(n+4) { grid-column: span 3; }
    .nav a { padding: 9px 4px; text-align: center; letter-spacing: 0; }
    .features, .stats, .choices-2 { grid-template-columns: minmax(0, 1fr); }
    .stats { gap: 10px; }
    .actions .btn, .code .btn { width: 100%; }
}

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