/* ══════════════════════════════════════
   Webprofs.fr — Design System
   Cohérent avec le bandeau Moodle
   ══════════════════════════════════════ */

:root {
    --wp-blue-900: #091e40;
    --wp-blue-800: #0b2860;
    --wp-blue-700: #0e4f8e;
    --wp-blue-600: #1268b0;
    --wp-blue-500: #1a7fd4;
    --wp-blue-400: #2ba0e8;
    --wp-blue-100: #e6f1fb;
    --wp-blue-50:  #f0f7fd;
    --wp-orange:   #e87a20;
    --wp-orange-hover: #d06a15;
    --wp-purple:   #b48cff;
    --wp-teal:     #4de8d0;
    --wp-text-dark:  #1a2332;
    --wp-text-mid:   #3d4f63;
    --wp-text-light: #6b7d93;
    --wp-gray-50:  #f8f9fb;
    --wp-gray-100: #eef1f5;
    --wp-gray-200: #dde2e9;
}
body { font-family: 'Sora', system-ui, sans-serif; }

/* ── HERO ── */
.webprofs-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(90deg, #1268b0 0%, #0e4f8e 40%, #0b2860 100%);
    padding: 80px 40px 90px; min-height: 420px;
    display: flex; align-items: center;
}
.webprofs-hero-content { position: relative; z-index: 2; max-width: 600px; }
.webprofs-hero h1 {
    font-size: 2.8rem; font-weight: 700; color: #fff;
    line-height: 1.15; margin: 0 0 16px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.webprofs-hero h1 span { color: var(--wp-orange); }
.webprofs-hero p {
    font-size: 1.1rem; color: rgba(255,255,255,0.85);
    margin: 0 0 32px 0; max-width: 480px; line-height: 1.7;
}
.webprofs-hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(18,104,176,0.85) 0%, rgba(14,79,142,0.5) 40%, transparent 65%);
}
.webprofs-hero-network { position: absolute; top: 0; right: 0; width: 60%; height: 100%; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary, .btn-primary:visited {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; background: var(--wp-orange); color: #fff !important;
    border: none; border-radius: 10px; font-family: inherit;
    font-size: 0.95rem; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--wp-orange-hover); transform: translateY(-1px); color: #fff !important; }
.btn-secondary, .btn-secondary:visited {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; background: rgba(255,255,255,0.12); color: #fff !important;
    border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
    font-family: inherit; font-size: 0.95rem; font-weight: 500;
    cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); color: #fff !important; }

/* ── SECTIONS ── */
.webprofs-section { padding: 80px 40px; }
.webprofs-section.alt-bg { background: var(--wp-gray-50); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--wp-text-dark); margin: 0 0 12px 0; }
.section-header p { font-size: 1.05rem; color: var(--wp-text-light); margin: 0; }
.accent-line {
    width: 50px; height: 3px; border-radius: 2px; margin: 0 auto 20px;
    background: linear-gradient(90deg, var(--wp-blue-500), var(--wp-orange));
}

/* ── DOMAIN CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.domain-card {
    background: #fff; border-radius: 14px; padding: 36px 28px;
    border: 1px solid var(--wp-gray-200); transition: transform 0.2s, box-shadow 0.2s;
}
.domain-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.card-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px; font-weight: 700;
}
.card-icon.ia  { background: rgba(180,140,255,0.15); color: #7a5cc8; }
.card-icon.iot { background: rgba(77,232,208,0.15);  color: #1a9e80; }
.card-icon.sci { background: rgba(42,160,232,0.15);  color: #1268b0; }
.domain-card h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 10px 0; color: var(--wp-text-dark); }
.domain-card p  { font-size: 0.9rem; color: var(--wp-text-light); line-height: 1.6; margin: 0 0 16px 0; }
.card-tag { display: inline-block; font-size: 0.75rem; padding: 4px 12px; border-radius: 20px; font-weight: 500; }
.card-tag.ia  { background: rgba(180,140,255,0.12); color: #7a5cc8; }
.card-tag.iot { background: rgba(77,232,208,0.12);  color: #1a9e80; }
.card-tag.sci { background: rgba(42,160,232,0.12);  color: #1268b0; }

/* ── STATS BAR ── */
.stats-bar {
    background: linear-gradient(90deg, #1268b0, #0e4f8e);
    padding: 40px; display: flex; justify-content: center; gap: 80px; flex-wrap: wrap;
}
.stat { text-align: center; color: #fff; }
.stat-number { font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.85rem; opacity: 0.75; }

/* ── PLATFORM ── */
.platform-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    max-width: 1100px; margin: 0 auto; align-items: center;
}
.platform-visual {
    background: linear-gradient(135deg, var(--wp-blue-100), var(--wp-gray-100));
    border-radius: 16px; padding: 40px; text-align: center; min-height: 280px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 1px solid var(--wp-gray-200);
}
.platform-visual .mock-title { font-size: 1.3rem; font-weight: 600; color: var(--wp-blue-700); margin-bottom: 8px; }
.platform-visual .mock-sub { font-size: 0.9rem; color: var(--wp-text-light); margin-bottom: 20px; }
.mock-cards { display: flex; gap: 10px; }
.mock-card {
    width: 90px; height: 65px; background: #fff; border-radius: 8px;
    border: 1px solid var(--wp-gray-200); display: flex; flex-direction: column;
    align-items: center; justify-content: center; font-size: 0.65rem;
    color: var(--wp-text-light); font-weight: 500;
}
.mock-card .dot { width: 8px; height: 8px; border-radius: 50%; margin-bottom: 6px; }
.platform-text h2 { font-size: 1.8rem; font-weight: 700; margin: 0 0 16px 0; color: var(--wp-text-dark); }
.platform-text p { color: var(--wp-text-light); margin: 0 0 24px 0; line-height: 1.7; }
.feature-list { list-style: none; padding: 0; margin: 0 0 28px 0; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--wp-text-mid); }
.feature-check {
    width: 22px; height: 22px; background: rgba(77,232,208,0.15); border-radius: 6px;
    display: flex; align-items: center; justify-content: center; color: #1a9e80;
    font-size: 0.8rem; flex-shrink: 0;
}

/* ── BLOG CARDS ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.blog-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--wp-gray-200); transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.blog-thumb { height: 140px; }
.blog-thumb.t1 { background: linear-gradient(135deg, #0e4f8e, #1268b0); }
.blog-thumb.t2 { background: linear-gradient(135deg, #7a5cc8, #b48cff); }
.blog-thumb.t3 { background: linear-gradient(135deg, #1a9e80, #4de8d0); }
.blog-body { padding: 20px 24px 24px; }
.blog-date { font-size: 0.75rem; color: var(--wp-text-light); margin-bottom: 8px; }
.blog-body h3 { font-size: 1rem; font-weight: 600; margin: 0 0 8px 0; color: var(--wp-text-dark); line-height: 1.4; }
.blog-body p { font-size: 0.85rem; color: var(--wp-text-light); line-height: 1.5; margin: 0; }
.blog-link { display: inline-block; margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--wp-blue-600); text-decoration: none; }
.blog-link:hover { color: var(--wp-blue-700); }

/* ── FOOTER ── */
.webprofs-footer { background: var(--wp-blue-900) !important; color: rgba(255,255,255,0.7); padding: 50px 40px 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1100px; margin: 0 auto 40px; }
.footer-brand { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand span { color: var(--wp-orange); }
.webprofs-footer p { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.6); }
.webprofs-footer h4 { color: #fff; font-size: 0.85rem; font-weight: 600; margin: 0 0 16px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.webprofs-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.webprofs-footer ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.webprofs-footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.8rem; max-width: 1100px; margin: 0 auto; color: rgba(255,255,255,0.5); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .cards-grid, .blog-grid { grid-template-columns: 1fr; max-width: 480px; }
    .platform-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .webprofs-hero h1 { font-size: 2rem; }
    .webprofs-hero { padding: 60px 24px 70px; }
    .stats-bar { gap: 40px; }
    .webprofs-section { padding: 60px 24px; }
}
