@charset "UTF-8";

/* ==========================================================================
   Convention de nommage (alternative simple à BEM)
   - composant : un mot (ex: card, badge)
   - partie : composant-tiret-rôle (ex: card-icon, split-content)
   - variante : composant-tiret-modificateur (ex: card-large, badge-green)
   - utilitaire/layout : classes génériques (ex: grid, notice)
   Inspiration : SUIT CSS / CUBE CSS
   ========================================================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-text);
}

body {
    background: var(--primary-bg);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    padding-top: 80px;
}

main {
    flex: 1;
}

a {
    color: var(--text-light);
}

/* ===== TYPOGRAPHIE DES TITRES ===== */
h1, h2, h3, h4, h5, h6, .logo-text {
    color: var(--title-color);
    font-family: var(--font-title);
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.625rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h5 { font-size: 1rem; margin-bottom: 0.5rem; }
h6 { font-size: 0.9rem; margin-bottom: 0.5rem; }

/* ===== Paragraphes ===== */
p {
    text-align: left;
    margin: 1rem auto 1rem;
}

/* ===== Paragraphes centrés spécifiques ===== */
.text-center {
    text-align: center !important;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    background: var(--header-bg);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px var(--shadow-dark);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    height: 60px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    text-shadow:
        1px 1px 0 color-mix(in srgb, var(--accent) 70%, black 30%),
        2px 2px 0 color-mix(in srgb, var(--accent) 50%, black 50%),
        3px 3px 0 rgba(0,0,0,0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto 4rem;
    scroll-margin-top: 80px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

/* ==========================================================================
   COMPOSANTS
   ========================================================================== */

/* ----- Bannière ----- */
.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70vh;
    padding: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.banner-content {
    flex: 1 1 350px;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.4;
}

.banner-image {
    flex: 1 1 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ----- Grille (cards) ----- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.card {
    background: var(--secondary-bg);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px var(--shadow-light);
}

.card-icon {
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-icon img {
    object-fit: contain;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* ----- Variantes de cartes ----- */
.card-large {
    padding: 1rem;
}

.card-large h3 {
    font-size: 1.5rem;
}

.card-extra-large {
    padding: 1.5rem 1rem;
}

.card-extra-large:hover {
    transform: none;
}

.card-extra-large h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-extra-large p {
    max-width: 600px;
    font-size: 1rem;
    text-align: center;
}

.card-coming-soon {
    opacity: 0.8;
    border: 2px dashed #777;
    background: var(--secondary-bg);
}

.card-coming-soon p {
    text-align: center;
}

.card-coming-soon:hover {
    opacity: 1;
    border-color: var(--text-muted);
}

/* ----- Split (2 colonnes distinctes) ----- */
.split {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.split-reversed {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.split-content {
    flex: 3;
}

.split-media {
    flex: 1;
}

.split-media img {
    width: 100%;
    height: auto;
}

/* ----- Badge ----- */
.badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.badge-green { background-color: #28a745; color: #fff; }
.badge-yellow { background-color: #ffc107; color: #1e1e1e; }
.badge-orange { background-color: #f39c12; color: #1e1e1e; }

/* ----- Listes ----- */
main ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

main ul li::before {
    content: "▷";
    font-weight: bold;
    margin-right: 10px;
    color: var(--accent);
    text-shadow: 1px 1px 2px rgba(0,0,0,1);
    display: inline-block;
}

/* ----- Liens hors navigation ----- */
a:not(nav a):not(footer a) {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:not(nav a):not(footer a):not(.btn):hover {
    color: var(--accent);
    filter: brightness(1.2);
    text-decoration: underline;
}

/* ----- Boutons ----- */
.btn {
    display: inline-block;
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-bottom: 1rem;
}

.btn:hover {
    filter: brightness(var(--btn-hover-brightness));
    transform: translateY(-1px);
    box-shadow: 0 5px 10px var(--shadow-light);
}

/* ----- Zone d'information ----- */
.info {
    width: fit-content;
    margin: 0 auto 12px;
    padding: 1rem;
    background: var(--border-light);
    color: white;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.info::before {
    content: "Information";
    display: block;
    color: var(--accent);
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bolder;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.info strong {
    color: var(--accent);
}

/* ----- Animation flottante ----- */
.anim-float-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.anim-float {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0 1rem;
    flex-wrap: wrap;
}

.anim-float img {
    width: auto;
    filter: brightness(0.9) grayscale(0.2);
    transition: var(--transition);
    opacity: 0.9;
    animation: float 3.5s ease-in-out infinite;
}

.anim-float img:hover {
    filter: brightness(1.1) grayscale(0);
    transform: scale(1.05);
    opacity: 1;
    animation-play-state: paused;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* ----- Tableaux ----- */
table {
    width: 100%;
    margin-top: 2rem;
    border-collapse: collapse;
}

table th, table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #444;
    vertical-align: middle;
}

table th { color: var(--accent); }

table td span:first-child {
    display: inline-block;
    vertical-align: middle;
}

table td span:first-child img {
    width: 48px;
    height: 48px;
    vertical-align: middle;
    margin-right: 6px;
}

table td span:first-child strong { vertical-align: middle; }

/* ----- Tableaux Responsive ----- */
@media (max-width: 1084px) {
    table thead {
        display: none;
    }

    table tbody,
    table tr,
    table td {
        display: block;
        width: 100%;
    }

    table tr {
        margin-bottom: 1.5rem;
        background: var(--secondary-bg);
        border-radius: 8px;
        padding: 1rem;
    }

    table td {
        padding: 0.5rem;
        border-bottom: none;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--accent);
        min-width: 120px;
        margin-right: 0.5rem;
    }

    table td span:first-child img {
        width: 32px;
        height: 32px;
    }

    table td .badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
}

@media (max-width: 480px) {
    table td span:first-child img {
        width: 28px;
        height: 28px;
    }

    table td .badge {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: var(--secondary-bg);
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover { color: var(--accent); }
footer p { color: var(--text-muted); font-size: 0.85rem; text-align: center; }

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1084px) {
    body { padding-top: 70px; }
    main { margin-top: 1.5rem; }
    section { padding: 1rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }

    .menu-toggle { display: block; }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        background: var(--header-bg);
        box-shadow: 0 5px 15px var(--shadow-dark);
    }
    nav.active { max-height: 500px; }
    nav ul { flex-direction: column; padding: 1rem 0; gap: 0; }
    nav li { text-align: center; width: 100%; }
    nav a { display: block; width: 100%; padding: 1rem 2rem; }
    nav a::after { display: none; }
    nav a:hover { background: var(--accent); color: white; }

    .banner { flex-direction: column; text-align: center; min-height: auto; margin: 2rem 0 1rem; }
    .banner-content { max-width: 100%; order: 1; }
    .banner-image { max-width: 450px; margin: 1rem auto 0; order: 2; }
    .banner-content h1 { font-size: 2rem; }
    .banner-content p { font-size: 1rem; }

    .grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.95rem; }
    h6 { font-size: 0.85rem; }

    .banner-content h1 { font-size: 1.8rem; }
    .banner-content p { font-size: 0.95rem; }
    .logo-text { font-size: 1.2rem; }
    .banner-image { max-width: 100%; }
    .grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Split responsive distinct */
    .split { flex-direction: column !important; gap: 1rem; }
    .split-reversed { flex-direction: column-reverse !important; gap: 1rem; }

    .split-media img,
    .split-reversed .split-media img {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
}
