/* ========================================
   BASE-HEADER-BANNER.CSS
   Styles de base pour TOUS les headers/banners du site
   À importer dans TOUS les fichiers CSS spécifiques (main.*.css)
   ======================================== */

/* ========================================
   HEADER - Design unifié pour toutes les pages
   ======================================== */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: #2e3842;
    height: 3rem;
    line-height: 3rem;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

/* Container interne du header (même largeur que #wrapper) */
#header > .inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Titre du header */
#header h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.225em;
    text-transform: uppercase;
    color: #fff;
    line-height: inherit;
    position: relative !important;
    left: auto !important;
    right: auto !important;
}

#header h1 a {
    color: inherit;
    text-decoration: none;
    display: block;
    height: inherit;
    line-height: inherit;
    border: 0;
}

/* Navigation - Suppression TOTALE des décorations de liste */
#header nav ul,
#header nav ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#header nav ul li::marker,
#header nav ul li::before {
    content: none !important;
    display: none !important;
}

#header nav ul {
    display: flex;
    gap: 0;
    align-items: center;
}

#header nav ul > li {
    display: inline-block;
    vertical-align: middle;
}

#header nav ul > li > a {
    display: inline-block;
    padding: 0 1.25rem;
    color: inherit;
    text-decoration: none !important;
    border: 0 !important;
    line-height: inherit;
}

/* Tablette */
@media screen and (max-width: 980px) {
    #header > .inner { 
        padding: 0 0.75rem; 
    }
    #header nav ul > li > a { 
        padding: 0 0.5rem; 
    }
}

/* Mobile */
@media screen and (max-width: 736px) {
    #header { 
        height: 2.5rem; 
        line-height: 2.5rem; 
    }
    #header > .inner { 
        padding: 0 0.75rem; 
    }
    #header h1 a { 
        font-size: 0.9rem; 
    }
    #header nav ul > li > a { 
        padding: 0 0.5rem; 
    }
}

/* ========================================
   BANNER - Design unifié pour toutes les pages
   ======================================== */

/* Banner de base */
#banner, section#banner {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    text-align: center;
    padding: 8em 0 2em 0;
    cursor: default;
}

#banner.ase-banner {
    position: relative;
    min-height: 100vh;
    height: auto;
}

/* ========================================
   BACKGROUND IMAGE/VIDEO - Unifié pour toutes les pages
   ======================================== */

/* Desktop : background plein écran */
.header-bg-img, 
.header-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
    pointer-events: none;
}

/* Effet blur appliqué */
.header-bg-img.blur, 
.header-bg-video.blur {
    filter: blur(8px) brightness(0.7);
}

/* ========================================
   CONTENU DU BANNER - Unifié
   ======================================== */

.banner-inner, 
#banner .inner {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center !important;
    padding: 0 2em;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Logo */
.ase-logo {
    width: 180px;
    max-width: 40vw;
    height: auto;
    margin-bottom: 1.2em;
    display: block;
    order: 1;
}

/* Titre */
#banner h2, 
#banner .banner-inner h2, 
#banner .inner h2 {
    font-size: 2.5em;
    line-height: 1.05;
    margin: 0 auto 0.5em auto !important;
    text-align: center !important;
    order: 2;
}

/* Boutons header */
.header-buttons {
    margin: 1em auto 0.5em auto !important;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: center !important;
    order: 3;
}

.header-buttons .header-btn {
    background: #fff;
    color: #222;
    border-radius: 24px;
    padding: 0.5em 1.5em;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.header-buttons .header-btn:hover {
    background: #222;
    color: #fff;
}

/* Sous-titre */
.header-subtitle {
    font-size: 1.2em;
    margin: 1em auto 0.5em auto !important;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-align: center !important;
    order: 4;
}

/* Logo dans le sous-titre */
.header-subtitle img {
    max-width: 150px !important;
    width: 100% !important;
    height: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin: 0 auto !important;
}

/* Bouton "En savoir plus" - Desktop */
#banner .more, 
#banner .more.scrolly {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2em;
    display: inline-block;
    font-size: 1.2em;
    color: #fff;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50px;
    padding: 0.5em 1.5em;
    text-decoration: none;
    transition: background 0.2s;
    z-index: 3;
    order: initial;
}

#banner .more:hover, 
#banner .more.scrolly:hover {
    background: #3b1b4a;
    color: #ffffff;
}

/* ========================================
   RESPONSIVE - Tablette
   ======================================== */

@media screen and (max-width: 980px) {
    #banner, 
    #banner.ase-banner {
        min-height: 80vh;
        padding: 6em 0 2em 0;
    }

    #banner h2 {
        font-size: 2em;
    }

    .ase-logo {
        width: 140px;
    }

    .header-subtitle {
        font-size: 1.1em;
    }
    
    .header-subtitle img {
        max-width: 120px !important;
    }
}

/* ========================================
   RESPONSIVE - Mobile
   ======================================== */

@media screen and (max-width: 736px) {
    /* Banner mobile */
    #banner, 
    #banner.ase-banner {
        min-height: 100vh;
        height: auto;
        padding: 5em 0 2em 0;
    }

    /* Contenu empilé verticalement */
    .banner-inner, 
    #banner .inner {
        gap: 0.8rem;
        padding: 0 1rem;
        min-height: 70vh;
    }

    /* Logo mobile */
    .ase-logo {
        width: 100px;
        margin-bottom: 0.5em;
    }

    /* Titre mobile */
    #banner h2, 
    #banner .banner-inner h2, 
    #banner .inner h2 {
        font-size: 1.5em;
        margin: 0.3em 0;
    }

    /* Boutons mobile */
    .header-buttons {
        margin: 0.5em 0;
        gap: 0.5em;
    }

    .header-buttons .header-btn {
        padding: 0.4em 1em;
        font-size: 0.9em;
    }

    /* Sous-titre mobile */
    .header-subtitle {
        font-size: 1em;
        margin: 0.5em 0;
        max-width: 90%;
    }
    
    .header-subtitle img {
        max-width: 100px !important;
        display: block !important;
        margin: 0.5em auto !important;
    }

    /* Bouton "En savoir plus" - Mobile : dans le flux */
    #banner .more, 
    #banner .more.scrolly {
        position: relative;
        left: auto;
        transform: none;
        bottom: auto;
        margin: 0.8em auto 0;
        padding: 0.5em 1.2em;
        font-size: 1em;
        order: 5;
    }

    /* Background mobile : remplissage hauteur */
    .header-bg-img, 
    .header-bg-video {
        height: 100vh;
        width: auto;
        min-width: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ========================================
   RESPONSIVE - Mobile Portrait (règles spécifiques)
   ======================================== */

@media screen and (max-width: 736px) and (orientation: portrait) {
    /* Banner pleine hauteur */
    #banner, 
    #banner.ase-banner {
        min-height: 100vh !important;
        height: 100vh !important;
        overflow: hidden !important;
    }

    .banner-inner, 
    #banner .inner {
        min-height: 85vh !important;
        position: relative !important;
        z-index: 3 !important;
    }

    /* Background : prend TOUTE la hauteur, centré, déborde sur les côtés */
    .header-bg-img,
    .header-bg-video {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        height: 100vh !important;
        min-width: 100vw !important;
        object-fit: cover !important;
        background-size: auto 100% !important;
        background-position: center !important;
        z-index: 1 !important;
        filter: blur(8px) brightness(0.6) !important;
    }

    /* Video iframe : même traitement */
    .header-bg-video iframe,
    .header-bg-video video {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        height: 100vh !important;
        min-width: 100vw !important;
        object-fit: cover !important;
    }
}

/* ========================================
   FOOTER - Suppression décorations listes (unifié)
   ======================================== */

#footer ul,
#footer ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#footer ul li::marker,
#footer ul li::before {
    content: none !important;
    display: none !important;
}

#footer ul li a {
    text-decoration: none !important;
    border: 0 !important;
}

/* Copyright : liens inline avec séparateurs */
#footer .copyright li {
    border-left: solid 1px rgba(255, 255, 255, 0.5);
    display: inline-block;
    line-height: 1em;
    margin-left: 1em;
    padding-left: 1em;
    list-style: none !important;
}

#footer .copyright li:first-child {
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
}

/* Mobile : copyright empilé */
@media screen and (max-width: 480px) {
    #footer .copyright li {
        border: 0;
        display: block;
        line-height: 1.65em;
        margin: 0;
        padding: 0.5em 0;
    }
}

/* ========================================
   MAIN CONTENT - Fond blanc avec texte noir
   ======================================== */

/* Article principal avec fond blanc */
article#main,
#main {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Sections dans l'article principal */
article#main section,
#main section,
article#main .wrapper,
#main .wrapper {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Contenu interne */
article#main .inner,
#main .inner,
article#main section .inner,
#main section .inner {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Titres dans main */
article#main h1,
article#main h2,
article#main h3,
article#main h4,
article#main h5,
article#main h6,
#main h1,
#main h2,
#main h3,
#main h4,
#main h5,
#main h6 {
    color: #000000 !important;
}

/* Paragraphes et texte */
article#main p,
article#main li,
article#main span,
article#main div,
#main p,
#main li,
#main span,
#main div {
    color: #000000 !important;
}

/* Headers dans main */
article#main header p,
#main header p {
    color: rgba(0, 0, 0, 0.65) !important;
}

/* Bordures des headers major */
article#main header.major h2,
article#main header.major h3,
article#main header.major h4,
#main header.major h2,
#main header.major h3,
#main header.major h4 {
    border-bottom-color: #000000 !important;
}

/* Labels et inputs de formulaire */
article#main label,
#main label {
    color: #000000 !important;
}

article#main input,
article#main textarea,
article#main select,
#main input,
#main textarea,
#main select {
    background: #ffffff !important;
    border-color: #000000 !important;
    color: #000000 !important;
}

/* Liens dans main */
article#main a,
#main a {
    color: #5e42a6 !important;
    text-decoration: underline;
}

article#main a:hover,
#main a:hover {
    color: #7952cc !important;
}
