/*
Theme Name: Réussir BTS Assurance
Description: Thème léger sur mesure pour reussir-bts-assurance.fr — admission, écoles, financement et après-BTS. Direction artistique alignée sur aidebtsassurance.com.
Author: Kevin Grillot
Version: 1.1.0
Text Domain: reussir
*/

/* ── Polices du réseau Aide BTS Assurance (auto-hébergées sur le site principal, CORS ouvert) ── */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('https://www.aidebtsassurance.com/wp-content/themes/blankslate-child/fonts/space-grotesk-latin.woff2') format('woff2'); }
@font-face { font-family: 'Clash Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('https://www.aidebtsassurance.com/wp-content/themes/blankslate-child/fonts/clash-display-500.woff2') format('woff2'); }
@font-face { font-family: 'Clash Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('https://www.aidebtsassurance.com/wp-content/themes/blankslate-child/fonts/clash-display-600.woff2') format('woff2'); }
@font-face { font-family: 'Clash Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('https://www.aidebtsassurance.com/wp-content/themes/blankslate-child/fonts/clash-display-700.woff2') format('woff2'); }

/* ── Palette de référence aidebtsassurance.com (design-system.php) ── */
:root {
    --r-primary: #4F46E5;
    --r-primary-dark: #4338CA;
    --r-primary-light: #EEF2FF;
    --r-accent: #C81E3A;
    --r-accent-dark: #A8152D;
    --r-accent-light: #FFE8EA;
    --r-ink: #1E1B4B;
    --r-muted: #64748B;
    --r-line: #E2E8F0;
    --r-bg: #F8F9FE;
    --r-card: #FFFFFF;
    --r-dark: #1E1B4B;
    --r-radius: 24px;
    --r-radius-pill: 100px;
    --r-shadow-card: 0 4px 14px -4px rgba(79, 70, 229, 0.08);
    --r-shadow-hover: 0 20px 40px -10px rgba(79, 70, 229, 0.28);
    --r-font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --r-font-head: 'Clash Display', 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--r-font); color: var(--r-ink); background: var(--r-bg); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: var(--r-primary); transition: color .25s, background-color .25s, box-shadow .25s, transform .25s; }
a:hover { color: var(--r-primary-dark); }
h1, h2, h3, h4 { font-family: var(--r-font-head); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--r-ink); }
:focus-visible { outline: 3px solid var(--r-accent); outline-offset: 3px; }

.r-container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .r-container { padding: 0 24px; } }

/* ── Header ── */
.r-header { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--r-line); position: sticky; top: 0; z-index: 50; }
.r-header-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; flex-wrap: wrap; }
.r-logo { font-family: var(--r-font-head); font-weight: 700; font-size: 1.2rem; text-decoration: none; color: var(--r-ink); letter-spacing: -.01em; }
.r-logo span { color: var(--r-primary); }
.r-nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
.r-nav a { display: inline-block; padding: 8px 14px; border-radius: var(--r-radius-pill); text-decoration: none; color: var(--r-ink); font-weight: 600; font-size: .94rem; }
.r-nav a:hover, .r-nav .current-menu-item a { background: var(--r-primary-light); color: var(--r-primary-dark); }

/* ── Hero clair (jamais de gradient sombre en hero : règle DA du réseau) ── */
.r-hero { position: relative; overflow: hidden; background: var(--r-bg); color: var(--r-ink); padding: 72px 0 84px; }
.r-hero::before, .r-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.r-hero::before { top: -120px; right: -100px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(79,70,229,0.15) 0%, rgba(255,255,255,0) 70%); }
.r-hero::after { bottom: -140px; left: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(200,30,58,0.12) 0%, rgba(255,255,255,0) 70%); }
.r-hero .r-container { position: relative; z-index: 1; }
.r-hero h1 { font-size: clamp(2rem, 4.8vw, 3.1rem); line-height: 1.12; margin-bottom: 18px; max-width: 800px; }
.r-hero h1 .r-hl { color: var(--r-primary); position: relative; display: inline-block; white-space: nowrap; }
.r-hero h1 .r-hl::after { content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 10px; background: linear-gradient(90deg, var(--r-accent) 0%, #FFB199 100%); opacity: .35; z-index: -1; transform: rotate(-1.5deg); border-radius: 4px; }
.r-hero p { font-size: 1.08rem; color: var(--r-muted); max-width: 640px; line-height: 1.65; }
.r-hero .r-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; background: var(--r-accent); color: #fff; font-weight: 700; padding: 16px 32px; border-radius: var(--r-radius-pill); text-decoration: none; box-shadow: 0 4px 15px rgba(200,30,58,.35); }
.r-hero .r-cta:hover { background: var(--r-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(200,30,58,.45); }

/* ── Grille de silos ── */
.r-silos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: -40px 0 56px; position: relative; z-index: 2; }
.r-silo { background: var(--r-card); border: 1px solid var(--r-line); border-radius: var(--r-radius); padding: 28px 24px 24px; text-decoration: none; color: var(--r-ink); box-shadow: var(--r-shadow-card); transition: transform .25s, box-shadow .25s, border-color .25s; display: block; }
.r-silo:hover { transform: translateY(-4px); box-shadow: var(--r-shadow-hover); border-color: var(--r-primary); color: var(--r-ink); }
.r-silo-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--r-primary-light); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 14px; }
.r-silo h2 { font-size: 1.12rem; margin-bottom: 8px; }
.r-silo p { font-size: .92rem; color: var(--r-muted); line-height: 1.55; }

/* ── Contenu ── */
.r-main { padding: 46px 0 70px; }
.r-article { background: var(--r-card); border: 1px solid var(--r-line); border-radius: var(--r-radius); padding: clamp(26px, 5vw, 48px); box-shadow: var(--r-shadow-card); }
.r-article h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 20px; }
.r-article h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.r-article h3 { font-size: 1.12rem; margin: 24px 0 10px; }
.r-article p, .r-article ul, .r-article ol { margin-bottom: 16px; }
.r-article ul, .r-article ol { padding-left: 24px; }
.r-article li { margin-bottom: 6px; }
.r-article a { text-decoration: underline; text-underline-offset: 3px; }
.r-meta { color: var(--r-muted); font-size: .88rem; margin-bottom: 24px; }

/* ── Listes d'articles ── */
.r-list { display: grid; gap: 16px; }
.r-item { background: var(--r-card); border: 1px solid var(--r-line); border-radius: var(--r-radius); padding: 24px 28px; box-shadow: var(--r-shadow-card); transition: transform .25s, box-shadow .25s, border-color .25s; }
.r-item:hover { transform: translateY(-3px); box-shadow: var(--r-shadow-hover); border-color: var(--r-primary); }
.r-item h2 { font-size: 1.15rem; margin-bottom: 6px; }
.r-item h2 a { text-decoration: none; color: var(--r-ink); }
.r-item h2 a:hover { color: var(--r-primary); }
.r-item p { color: var(--r-muted); font-size: .93rem; }

/* ── Footer (gradient signature du réseau) ── */
.r-footer { background: linear-gradient(135deg, #0F172A 0%, var(--r-dark) 100%); color: rgba(255,255,255,.7); padding: 44px 0; margin-top: 48px; font-size: .9rem; }
.r-footer a { color: #fff; text-decoration: none; }
.r-footer a:hover { color: #A5B4FC; text-decoration: underline; }
.r-footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.r-footer-network { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 640px) {
    .r-hero { padding: 48px 0 60px; }
    .r-silos { margin-top: -28px; }
}
