/* ======================================================
   THEME : FUTURISTE · PASTEL  · DYNAMIQUE ⇢ style.css
   ====================================================== */

/* ---------- 1. VARIABLES GLOBALES ---------- */
:root {
    /* Couleurs pastel principales */
    --clr-primary: #7ec8e3;         /* bleu pastel */
    --clr-secondary: #f4b8e4;       /* rose pastel */
    --clr-accent: #b0eab7;          /* vert pastel */
    --clr-dark: #222222;
    --clr-light: #ffffff;

    /* Variantes plus sombres */
    --clr-primary-dark: #4ca0b8;
    --clr-secondary-dark: #cc86c1;
    --clr-accent-dark: #6dbf7d;

    /* Gradients dynamiques */
    --gradient-1: linear-gradient(120deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    --gradient-2: linear-gradient(120deg, var(--clr-accent) 0%, var(--clr-primary) 100%);
    --gradient-3: linear-gradient(120deg, var(--clr-secondary) 0%, var(--clr-accent) 100%);

    /* Typographie */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Ombres & Radius */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius-md: .75rem;
}

/* ---------- 2. RESET LÉGER & BASE TYPO ---------- */
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    color: var(--clr-dark);
    background-color: var(--clr-light);
    line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: .75rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}
p {
    margin-bottom: 1rem;
}

/* ---------- 3. NAVIGATION ---------- */
#topHeader {
    transition: background-color .4s ease;
}
#topHeader.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}
.navbar-brand {
    letter-spacing: .5px;
}
.nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    transition: color .3s;
}
.nav-link:hover,
.nav-link:focus {
    color: var(--clr-primary-dark);
}

/* ---------- 4. SECTIONS SPÉCIFIQUES ---------- */

/* HERO */
#hero {
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);      /* Assure la lisibilité */
}
#hero .container {
    position: relative;
    z-index: 2;
}
#hero h1,
#hero p {
    color: var(--clr-light);
}

/* GALERIE */
#gallery .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .4s ease, box-shadow .4s ease;
}
#gallery .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* INSTRUCTORS & WEBINARS – Cartes héritent des mêmes règles */
.card-image,
.image-container {
    width: 100%;
    height: 260px;
    overflow: hidden;
}
.card-image img,
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}
.card-content {
    flex: 1 1 auto;
    text-align: center;
}

/* AWARDS Accordéon */
.accordion-button:not(.collapsed) {
    background: var(--gradient-1);
    color: var(--clr-light);
}
.accordion-button {
    font-family: var(--font-heading);
}
.accordion-body {
    background: var(--clr-light);
}

/* RESSOURCES externes */
#ressources .list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    transition: background-color .3s;
}
#ressources .list-group-item:hover {
    background: var(--clr-accent);
    color: var(--clr-dark);
}

/* CONTACT */
#contactForm {
    border-radius: var(--radius-md);
}
#contactForm .form-control:focus {
    border-color: var(--clr-primary-dark);
    box-shadow: 0 0 0 .25rem rgba(126, 200, 227,.25);
}

/* FOOTER */
footer {
    font-size: .875rem;
}
footer a {
    color: var(--clr-light);
    text-decoration: none;
    transition: color .3s;
}
footer a:hover {
    color: var(--clr-accent);
}

/* ---------- 5. BOUTONS GLOBAUX ---------- */
.btn,
button,
input[type="submit"] {
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    transition: all .35s ease;
}
.btn-primary {
    background: var(--gradient-2);
    border: none;
    color: var(--clr-light);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--gradient-3);
    color: var(--clr-light);
}
.btn-outline-primary {
    border-color: var(--clr-primary);
    color: var(--clr-primary-dark);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--clr-primary);
    color: var(--clr-light);
}

/* Liens 'Lire la suite / Read more' */
.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--clr-secondary-dark);
    position: relative;
    padding-right: 1.25rem;
    transition: color .3s;
}
.read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 0;
    transition: transform .3s;
}
.read-more:hover {
    color: var(--clr-primary-dark);
}
.read-more:hover::after {
    transform: translateX(4px);
}

/* ---------- 6. ANIMATIONS SCROLL (Reveal) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 7. UTILITAIRES & LAYOUT ---------- */
.bg-gradient-1 { background: var(--gradient-1); }
.bg-gradient-2 { background: var(--gradient-2); }
.bg-gradient-3 { background: var(--gradient-3); }
.full-center {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.page-legal {
    padding-top: 100px;      /* privacy & terms */
}
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}
.text-shadow-light {
    text-shadow: 1px 1px 2px rgba(255,255,255,0.6);
}
.text-shadow-dark {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* ---------- 8. MEDIA QUERIES ---------- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255,255,255,0.95);
        padding: 1rem;
    }
    #topHeader.scrolled {
        background-color: rgba(255,255,255,1);
    }
    .card-image,
    .image-container {
        height: 220px;
    }
}
@media (max-width: 575.98px) {
    .card-image,
    .image-container {
        height: 180px;
    }
}

/* ---------- 9. SOCIAL LINK STYLE (TEXTE) ---------- */
footer a:hover,
footer a:focus {
    text-decoration: underline;
}

/* ---------- 10. ACCESSIBILITÉ ---------- */
:focus-visible {
    outline: 3px dashed var(--clr-accent-dark);
    outline-offset: 2px;
}