/* ============================================================
   MES RÉVISIONS — Exam Subjects Types Page
   Layout : Hero + Chapeau par type + Liste des sujets
   Couleur principale : Orange (#F97316)
   ============================================================ */

:root {
    --et-orange:        #F97316;
    --et-orange-dark:   #EA580C;
    --et-orange-light:  rgba(249, 115, 22, 0.10);
    --et-orange-border: rgba(249, 115, 22, 0.25);
    --et-green:         #16a34a;
    --et-green-light:   rgba(22, 163, 74, 0.10);
    --et-green-border:  rgba(22, 163, 74, 0.25);
    --et-radius:        14px;
    --et-shadow:        0 4px 20px rgba(15, 23, 42, 0.07);
    --et-shadow-hover:  0 12px 32px rgba(15, 23, 42, 0.13);
}

/* ── Hero ──────────────────────────────────────────────────── */
.et-hero {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 35%, #f97316 70%, #fb923c 100%);
    color: white;
    padding: 2.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.et-hero::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -140px; left: -100px;
    pointer-events: none;
}
.et-hero::after {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -80px; right: -60px;
    pointer-events: none;
}

.et-hero-panel {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 1.25rem;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    position: relative;
    z-index: 1;
}

.et-hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    text-shadow: 0 6px 18px rgba(0,0,0,0.28);
}
.et-hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    font-weight: 500;
    margin-bottom: 1.2rem;
    line-height: 1.65;
}
.et-hero-subtitle strong { color: #fff; font-weight: 700; }

.et-hero-img {
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
}

/* Hero chips d'icônes */
.et-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.1rem;
}
.et-chip {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(4px);
}

/* Hero stats */
.et-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    gap: 0.75rem;
}
.et-hero-stat {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.22);
    transition: transform 0.2s ease;
}
.et-hero-stat:hover { transform: translateY(-2px); }
.et-hero-stat-icon {
    width: 40px; height: 40px;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, rgba(255,255,255,0.32), rgba(255,255,255,0.14));
    border: 1px solid rgba(255,255,255,0.28);
    flex-shrink: 0;
}
.et-hero-stat-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.et-hero-stat-lbl {
    color: rgba(255,255,255,0.8);
    font-size: 0.74rem;
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
}

/* Breadcrumb */
.et-breadcrumb {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0.4rem 0.5rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.24);
    backdrop-filter: blur(8px);
}
.et-breadcrumb .breadcrumb-item { display: flex; align-items: center; }
.et-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "•";
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    padding: 0 0.4rem;
    float: none;
}
.et-bc-link {
    color: rgba(255,255,255,0.92) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease;
}
.et-bc-link:hover { background: rgba(255,255,255,0.16); color: #fff !important; }
.et-bc-active {
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.26);
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ── Surface principale ────────────────────────────────────── */
.et-surface {
    position: relative;
    padding: 2.5rem 0 4rem;
    background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 100%);
    overflow: hidden;
}
.et-surface > .container { position: relative; z-index: 2; }

/* Icônes flottantes — positionnées par rapport à .et-surface */
.et-float-icon {
    position: absolute;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--et-orange-dark);
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--et-orange-border);
    box-shadow: 0 6px 18px var(--et-orange-light);
    backdrop-filter: blur(4px);
    z-index: 1;
    pointer-events: none;
    animation: etFloat 4.5s ease-in-out infinite, etPulse 3s ease-in-out infinite;
}
.et-float-icon i { font-size: 0.9rem; }
.fi-1 { top: 40px;  left: 16px;  animation-delay: 0s,   0.3s; }
.fi-2 { top: 120px; right: 20px; animation-delay: 1.2s, 1.5s; }
.fi-3 { bottom: 60px; left: 40%; animation-delay: 2.2s, 2.5s; }
.fi-4 { top: 40%;  left: 6%;    animation-delay: 3s,   1s; }

@keyframes etFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}
@keyframes etPulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

/* ── Bloc par type ─────────────────────────────────────────── */
.et-type-block {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e9ecef;
}
.et-type-block:last-of-type { border-bottom: none; margin-bottom: 0; }

/* ── Chapeau ───────────────────────────────────────────────── */
.et-chapeau {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border-radius: var(--et-radius);
    border-left: 5px solid var(--et-orange);
    box-shadow: var(--et-shadow);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.et-chapeau-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--et-orange-dark), var(--et-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--et-orange-light);
}
.et-chapeau-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.et-chapeau-info { flex: 1; min-width: 0; }
.et-chapeau-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--et-orange);
    margin-bottom: 0.15rem;
}
.et-chapeau-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}
.et-chapeau-level {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--et-orange-dark);
    background: var(--et-orange-light);
    border: 1px solid var(--et-orange-border);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.et-chapeau-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.et-chapeau-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
}
.et-pill-orange {
    color: var(--et-orange-dark);
    background: var(--et-orange-light);
    border: 1px solid var(--et-orange-border);
}
.et-pill-green {
    color: #15803d;
    background: var(--et-green-light);
    border: 1px solid var(--et-green-border);
}
.et-pill-gray {
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.et-chapeau-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    background: var(--et-orange);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}
.et-chapeau-btn:hover {
    background: var(--et-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249,115,22,0.35);
}
.et-chapeau-btn i { transition: transform 0.2s ease; }
.et-chapeau-btn:hover i { transform: translateX(4px); }

/* ── Cards sujets ──────────────────────────────────────────── */
.et-subjects-row { position: relative; z-index: 2; }

.et-subject-card-link { display: block; height: 100%; }

.et-subject-card {
    height: 100%;
    background: #fff;
    border-radius: var(--et-radius);
    border: 2px solid #e9ecef;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.et-subject-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--et-shadow-hover);
    border-color: var(--et-orange-border);
}

.et-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    background: #f8fafc;
    border-bottom: 1px solid #e9ecef;
}

.et-year-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--et-orange-dark), var(--et-orange));
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    letter-spacing: 0.02em;
}

.et-card-badges { display: flex; gap: 0.25rem; }
.et-badge {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}
.et-badge-green {
    color: #15803d;
    background: var(--et-green-light);
    border: 1px solid var(--et-green-border);
}
.et-badge-gold {
    color: #92400e;
    background: #fefce8;
    border: 1px solid #fde68a;
}
.et-badge-premium {
    color: #6b21a8;
    background: rgba(107,33,168,0.08);
    border: 1px solid rgba(107,33,168,0.2);
}

.et-card-body { padding: 0.75rem 0.8rem; flex: 1; }

.et-card-discipline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--et-orange-dark);
    background: var(--et-orange-light);
    border: 1px solid var(--et-orange-border);
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    margin-bottom: 0.45rem;
}

.et-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.et-card-session {
    font-size: 0.72rem;
    color: #64748b;
    font-style: italic;
}

.et-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.8rem;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}
.et-views {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: #94a3b8;
}
.et-consult-hint {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--et-orange);
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: gap 0.2s ease;
}
.et-subject-card:hover .et-consult-hint { gap: 0.4rem; }

/* Tuile "Voir tous" */
.et-card-more {
    border-color: var(--et-orange-border);
    border-style: dashed;
    justify-content: center;
    background: var(--et-orange-light);
    min-height: 160px;
}
.et-card-more:hover {
    background: rgba(249,115,22,0.15);
}
.et-card-more-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}
.et-more-count {
    font-size: 2rem;
    font-weight: 900;
    color: var(--et-orange);
    line-height: 1;
}
.et-more-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--et-orange-dark);
}
.et-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: var(--et-orange);
    border-radius: 6px;
    padding: 0.3rem 0.7rem;
    transition: background 0.2s;
}
.et-card-more:hover .et-more-btn { background: var(--et-orange-dark); }

/* Message aucun sujet */
.et-no-subjects {
    font-size: 0.85rem;
    color: #94a3b8;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 0;
}

/* États vides */
.et-empty-card {
    background: #fff;
    border-radius: var(--et-radius);
    box-shadow: var(--et-shadow);
    padding: 3rem 2rem;
}

/* Bouton primaire */
.et-btn-primary {
    background: var(--et-orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.et-btn-primary:hover {
    background: var(--et-orange-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .et-hero-stats { grid-template-columns: 1fr; gap: 0.5rem; }
    .et-chapeau { gap: 0.75rem; }
    .et-chapeau-title { font-size: 1.05rem; }
    .et-chapeau-btn { width: 100%; justify-content: center; }
    .et-chapeau-meta { margin-top: 0.25rem; }
    .et-float-icon { display: none; }
}

@media (max-width: 575.98px) {
    .et-chapeau { flex-direction: column; align-items: flex-start; }
    .et-chapeau-meta { width: 100%; }
    .et-chapeau-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .et-float-icon     { animation: none !important; }
    .et-subject-card   { transition: none !important; }
    .et-chapeau-btn    { transition: none !important; }
}
