/* ======================================================
   VARIABLES – IDENTITÉ VISUELLE
====================================================== */
:root {
    --bg-main: #100b0b;
    --bg-soft: #181111;
    --bg-card: #201515;
    --bg-card-hover: #2a1b1b;

    --text-main: #e6e8ee;
    --text-soft: #b5b8c5;

    --primary: #fd0d0d;
    --primary-glow: rgba(253, 13, 13, 0.45);

    --radius-lg: 18px;
    --radius-md: 14px;

    --transition-fast: 0.25s ease;
    --transition-smooth: 0.45s cubic-bezier(.4,0,.2,1);
}

/* ======================================================
   BASE
====================================================== */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

p {
    color: var(--text-soft);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 110px 0;
    position: relative;
}

/* Alternance ultra subtile */
section:nth-of-type(even) {
    background: linear-gradient(
        180deg,
        var(--bg-soft),
        var(--bg-main)
    );
}

/* ======================================================
   HERO – CINÉMATIQUE
====================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: 72px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    position: relative;
    isolation: isolate;
}

/* Overlay principal */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, rgba(253, 13, 13, 0.25), transparent 60%),
        linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.7));
    z-index: -1;
}

/* Grain cinéma */
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-section .content {
    max-width: 920px;
    padding: 0 20px;
}

.hero-section h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    text-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* ======================================================
   BOUTONS – PREMIUM
====================================================== */
.btn-primary {
    background: linear-gradient(135deg, #fd0d0d, #ff3b3b);
    border: none;
    padding: 14px 34px;
    border-radius: 40px;
    font-weight: 600;
    letter-spacing: 0.4px;

    box-shadow:
        0 15px 40px rgba(253, 13, 13, 0.35),
        inset 0 0 0 1px rgba(255,255,255,0.1);

    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 25px 70px rgba(253, 13, 13, 0.55),
        inset 0 0 0 1px rgba(255,255,255,0.2);
}

/* ======================================================
   CARDS – BASE COMMUNE
====================================================== */
.card {
    border: none;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

/* Lumière douce */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top left,
        rgba(255,255,255,0.06),
        transparent 60%
    );
    opacity: 0;
    transition: var(--transition-smooth);
}

.card:hover::before {
    opacity: 1;
}

/* ======================================================
   DARK CARD – AVANTAGES / EXPERTISE
====================================================== */
.dark-card {
    padding: 10px;
    transition: var(--transition-smooth);
}

.dark-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    box-shadow: 0 35px 90px rgba(0,0,0,0.8);
}

.dark-card h5 {
    font-weight: 700;
}

/* ======================================================
   TRAINING CARDS – PRODUITS
====================================================== */
.training-card {
    height: 100%;
    text-align: center;
    transition: var(--transition-smooth);
}

.training-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 40px 100px rgba(0,0,0,0.85),
        0 0 0 1px rgba(253, 13, 13, 0.25);
}

.training-card h5 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.training-card p {
    font-size: 0.95rem;
}

/* Icône */
.training-card .card-body > div:first-child {
    filter: drop-shadow(0 10px 25px rgba(253, 13, 13, 0.4));
}

/* ======================================================
   IMAGE CONTAINER – BANNIÈRE PREMIUM
====================================================== */
.card-image-container {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    
    border-radius: var(--radius-lg);
    
    display: flex;
    align-items: flex-end;
    padding: 24px;
    
    /* Transition fluide pour le zoom */
    transition: background-size 0.8s cubic-bezier(.25,.1,.25,1);
    background-size: 102%;
}

/* Overlay dégradé sombre (repos) */
.card-image-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.5) 40%,
        rgba(16, 11, 11, 0.92) 100%
    );
    transition: var(--transition-smooth);
    z-index: 1;
}

/* Accent rouge subtil (hover) */
.card-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(253, 13, 13, 0.25) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

/* HOVER – Zoom dramatique + glow rouge */
.training-card:hover .card-image-container {
    background-size: 118%;
}

.training-card:hover .card-image-container::before {
    background: linear-gradient(
        180deg,
        rgba(253, 13, 13, 0.12) 0%,
        rgba(0,0,0,0.6) 35%,
        rgba(16, 11, 11, 0.95) 100%
    );
}

.training-card:hover .card-image-container::after {
    opacity: 1;
}

/* ======================================================
   TITRE SUR L'IMAGE – PREMIUM TYPOGRAPHY
====================================================== */
.card-image-container .card-title {
    position: relative;
    z-index: 3;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.3px;
    
    /* Ombres portées multiples pour profondeur */
    text-shadow: 
        0 15px 40px rgba(0,0,0,0.95),
        0 6px 16px rgba(0,0,0,0.8),
        0 2px 6px rgba(0,0,0,0.6),
        0 0 30px rgba(253, 13, 13, 0.2);
    
    /* Transition fluide */
    transition: all var(--transition-smooth);
    
    /* Reflet subtil */
    filter: drop-shadow(0 0 20px rgba(253, 13, 13, 0.25));
}

/* HOVER – Élévation + intensification du glow */
.training-card:hover .card-image-container .card-title {
    transform: translateY(-4px);
    letter-spacing: 0px;
    
    text-shadow: 
        0 20px 50px rgba(0,0,0,1),
        0 8px 20px rgba(0,0,0,0.9),
        0 3px 8px rgba(253, 13, 13, 0.4),
        0 0 40px rgba(253, 13, 13, 0.35);
    
    filter: drop-shadow(0 0 35px rgba(253, 13, 13, 0.45));
}

/* ======================================================
   LISTES – EXPERTISE
====================================================== */
.list-group-item {
    background: transparent;
    border: none;
    color: var(--text-soft);
    padding-left: 0;
}

.list-group-item::before {
    content: "▸";
    color: var(--primary);
    margin-right: 10px;
}

/* ======================================================
   FOOTER – SOBRIÉTÉ
====================================================== */
.footer {
    background: #080505;
    padding: 35px 0;
    font-size: 0.9rem;
    color: #998a8a;
}