/* Reset minimal */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    background: #f7f8fa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: #0b5cd6; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #084aa8; }

.container { max-width: 920px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; }
.logo-umgp { height: 48px; width: auto; }
.logo-marques { height: 36px; width: auto; opacity: .95; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #0b3a8a 0%, #0b5cd6 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
}
.hero .tag {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
    opacity: .9;
    margin: 0 0 .5rem;
}
.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 .5rem;
    font-weight: 700;
    line-height: 1.2;
}
.hero .subtitle { margin: 0; font-size: 1.05rem; opacity: .95; }

/* Cards alertes */
.alert-block { padding: 2rem 0 1rem; }
.card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: 5px solid;
}
.card h2 {
    margin: 0 0 .9rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.card-alert { border-left-color: #d92d20; background: #fff8f7; }
.card-alert h2 { color: #b42318; }
.card-info { border-left-color: #0b5cd6; background: #f3f7ff; }
.card-info h2 { color: #0b3a8a; }

.reflex-list, .check-list { margin: 0; padding: 0; list-style: none; }
.reflex-list li, .check-list li {
    padding: .4rem 0 .4rem 1.6rem;
    position: relative;
}
.reflex-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #d92d20;
    font-weight: 700;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0b5cd6;
    font-weight: 700;
}
.domains {
    display: inline-block;
    margin-top: .35rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92rem;
    color: #0b3a8a;
}

/* TOC */
.toc {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 0;
}
.toc-title {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6b7280;
    margin: 0 0 .5rem;
}
.toc ol {
    margin: 0;
    padding-left: 1.25rem;
    columns: 2;
    column-gap: 2rem;
}
.toc li { margin: .15rem 0; break-inside: avoid; }

@media (max-width: 600px) {
    .toc ol { columns: 1; }
}

/* FAQ sections */
.faq { padding: 2.25rem 0; }
.faq:nth-of-type(even) { background: #fff; }
.faq h2 {
    font-size: 1.5rem;
    margin: 0 0 1.25rem;
    color: #0b3a8a;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.faq h2 .num {
    background: #0b5cd6;
    color: #fff;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Details / FAQ items */
details {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: .65rem;
    padding: 0;
    transition: box-shadow .15s ease;
}
.faq:nth-of-type(even) details { background: #f7f8fa; }
details[open] {
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-color: #c5d4ee;
}
summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #111827;
    list-style: none;
    position: relative;
    padding-right: 2.75rem;
    border-radius: 8px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    color: #0b5cd6;
    font-weight: 400;
    transition: transform .2s ease;
}
details[open] summary::after { content: "−"; }
summary:hover { color: #0b5cd6; }

details > *:not(summary) {
    padding: 0 1.25rem;
}
details > p:first-of-type { padding-top: .25rem; }
details > *:last-child { padding-bottom: 1.1rem; }
details ul {
    margin: .5rem 0;
    padding-left: 1.25rem;
}
details ul li { margin: .25rem 0; }
details p { margin: .65rem 0; }
.contact { font-weight: 600; }

/* Standalone section (RGPD) */
#droits ul { padding-left: 1.25rem; }
#droits ul li { margin: .35rem 0; }

/* Footer */
.site-footer {
    background: #111827;
    color: #cbd5e1;
    padding: 1.5rem 0;
    font-size: .9rem;
    text-align: center;
}
.site-footer p { margin: .25rem 0; }
.site-footer a { color: #93c5fd; }

/* Brands bar (juste avant le footer) */
.brands-bar {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    text-align: center;
}
.brands-bar .logo-marques {
    display: inline-block;
    height: 85px;
    width: auto;
}

/* Focus accessibility */
a:focus-visible, summary:focus-visible {
    outline: 2px solid #0b5cd6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print */
@media print {
    .site-header, .toc, .site-footer, .brands-bar { display: none; }
    details { break-inside: avoid; border: 0; }
    details[open] summary::after, summary::after { display: none; }
    details > *:not(summary) { display: block !important; }
}
