/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0a0e27;
    color: white;
    font-family: 'Roboto', sans-serif;
}

/* ===== CONTENU PRINCIPAL ===== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: rgba(17, 34, 64, 0.7);
    backdrop-filter: blur(15px) saturate(150%);
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5vw;
    padding: 10px 20px;
    flex-wrap: wrap;
}

nav a {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #ff6b35;
    color: #0a0e27;
    transform: translateY(-2px);
}

/* ===== BANNER ===== */
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40vh;
    min-height: 250px;
    background-image: url('../img/banner.png');
    background-size: cover;
    background-position: center;
    filter: contrast(1.2) brightness(1.1) saturate(1.3);
}

.blockBanner {
    padding: 20px 30px;
    max-width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(13px);
    text-align: center;
}

/* ===== TITRES ===== */
h1 {
    font-weight: 700;
    font-size: clamp(28px, 6vw, 48px);
    margin-bottom: 20px;
}

h2 {
    font-weight: 700;
    font-size: clamp(24px, 5vw, 40px);
    margin-top: 30px;
    color: #ff6b35;
}

strong {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: clamp(18px, 4vw, 28px);
    margin-bottom: 20px;
}

/* ===== PARAGRAPHES & LISTES ===== */
p, ul {
    padding: 0;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: clamp(16px, 3vw, 18px);
}

ul {
    padding-left: 40px;
}

li {
    margin-bottom: 10px;
}

/* ===== LIGNE DE SÉPARATION ===== */
.soulignement {
    width: 90%;
    margin: 10px auto 30px auto;
    border-top: 5px solid rgba(255, 255, 255, 0.4);
    border-radius: 33px;
}

/* ===== SECTION INTRODUCTION - IMAGE & TEXTE ===== */
#img-accueil-createur {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem auto;
    padding: 0;
    max-width: 1200px;
}

#img-accueil-createur img {
    width: 300px;
    height: auto;
    border-radius: 20px;
    flex-shrink: 0;
}

#img-accueil-createur p {
    flex: 1;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    line-height: 1.8;
    padding: 0;
}

/* ===== ÉVOLUTION DE VERSION - BULLES ===== */
.versions-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.version-bubble {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    min-width: 300px;
    border: 2px solid #ff6b35;
    border-radius: 20px;
    background: rgba(255, 107, 53, 0.05);
    transition: all 0.3s ease;
}

.version-bubble img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.version-bubble strong {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #00ff41;
}

.version-bubble:hover {
    background: rgba(255, 107, 53, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

/* ===== GRAPHIQUE UTILISATION ===== */
.chart-container {
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 107, 53, 0.05);
    border: 2px solid #ff6b35;
    border-radius: 15px;
}

.chart-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ===== FOOTER ===== */
footer {
    background: rgba(17, 34, 64, 0.7);
    backdrop-filter: blur(15px) saturate(150%);
    border-top: 1px solid rgba(100, 255, 218, 0.2);
    margin-top: 4rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    padding: 0;
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b35;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    padding: 0;
    margin: 0;
}

/* ===== BARRE VERSIONS (bas de page) ===== */
.versions-bar {
    max-width: 600px;
    margin: 3rem auto 0 auto;
    padding: 1rem 2rem;
    background: rgba(17, 34, 64, 0.8);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
}

.versions-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.versions-bar a:hover {
    transform: translateY(-3px);
}

.versions-bar img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.versions-bar span {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    color: white;
}

/* ===== ANECDOTES CONTENT ===== */
.anecdotes-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

.anecdotes-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: clamp(15px, 2.5vw, 17px);
    color: rgba(255, 255, 255, 0.9);
}

/* ===== VERSION DETAIL PAGE ===== */
.version-detail {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    padding: 2rem 1.5rem;
}

.version-badge {
    display: inline-block;
    background: #ff6b35;
    color: #0a0e27;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.version-detail-subtitle {
    color: #00ff41 !important;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(20px, 4vw, 30px);
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.version-detail p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: clamp(14px, 2.5vw, 16px);
    margin-bottom: 1.2rem;
}

.version-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.version-logos figure {
    text-align: center;
}

.version-logos img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.4));
}

.version-logos figcaption {
    margin-top: 0.5rem;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.version-next-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 0 0;
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(50, 70, 100, 0.6), rgba(30, 50, 80, 0.4));
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.version-next-link:hover {
    border-color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.version-next-link span {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    color: white;
}

.version-next-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.version-all-link {
    flex-direction: column;
    width: 100%;
}

.version-all-icons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.version-all-icons img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* ===== STYLES UNIQUES PAR SECTION ===== */

/* HTML 1 & 2 - Style rétro bleuté */
#html12 {
    background: linear-gradient(180deg, rgba(20, 40, 80, 0.4) 0%, rgba(10, 14, 39, 0) 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 0 15px 15px 0;
    padding-left: 2rem;
}
#html12 .version-detail-subtitle { color: #60a5fa !important; }
#html12 .version-badge { background: #3b82f6; }
#html12 .version-next-link { border-color: rgba(59, 130, 246, 0.4); }
#html12 .version-next-link:hover { border-color: #3b82f6; box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3); }

/* HTML 3 & 4 - Style vert émeraude */
#html34 {
    background: linear-gradient(180deg, rgba(16, 60, 50, 0.4) 0%, rgba(10, 14, 39, 0) 100%);
    border-left: 4px solid #10b981;
    border-radius: 0 15px 15px 0;
    padding-left: 2rem;
}
#html34 .version-detail-subtitle { color: #34d399 !important; }
#html34 .version-badge { background: #10b981; }
#html34 .version-next-link { border-color: rgba(16, 185, 129, 0.4); }
#html34 .version-next-link:hover { border-color: #10b981; box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3); }

/* XHTML - Style violet */
#xhtml {
    background: linear-gradient(180deg, rgba(60, 20, 80, 0.4) 0%, rgba(10, 14, 39, 0) 100%);
    border-left: 4px solid #a855f7;
    border-radius: 0 15px 15px 0;
    padding-left: 2rem;
}
#xhtml .version-detail-subtitle { color: #c084fc !important; }
#xhtml .version-badge { background: #a855f7; }
#xhtml .version-next-link { border-color: rgba(168, 85, 247, 0.4); }
#xhtml .version-next-link:hover { border-color: #a855f7; box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3); }

/* HTML 5 - Style orange vif */
#html5 {
    background: linear-gradient(180deg, rgba(80, 40, 10, 0.4) 0%, rgba(10, 14, 39, 0) 100%);
    border-left: 4px solid #ff6b35;
    border-radius: 0 15px 15px 0;
    padding-left: 2rem;
}
#html5 .version-detail-subtitle { color: #fb923c !important; }
#html5 .version-badge { background: #ff6b35; }
#html5 .version-next-link { border-color: rgba(255, 107, 53, 0.4); }
#html5 .version-next-link:hover { border-color: #ff6b35; box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3); }

/* Norme vivante - Style cyan/turquoise */
#norme-vivante {
    background: linear-gradient(180deg, rgba(10, 50, 60, 0.4) 0%, rgba(10, 14, 39, 0) 100%);
    border-left: 4px solid #06b6d4;
    border-radius: 0 15px 15px 0;
    padding-left: 2rem;
}
#norme-vivante .version-detail-subtitle { color: #22d3ee !important; }
#norme-vivante .version-badge { background: #06b6d4; }
#norme-vivante .version-next-link { border-color: rgba(6, 182, 212, 0.4); }
#norme-vivante .version-next-link:hover { border-color: #06b6d4; box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3); }

/* ===== VERSIONS PAGE - GRILLE DE CARTES ===== */

.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* ===== VERSION CARD ===== */
.version-card {
    /* Crée un dégradé de couleur en diagonal (135°) : du bleu-gris au bleu foncé
       Les valeurs rgba(R, G, B, transparence) permettent des couleurs semi-transparentes
       0.6 et 0.4 = 60% et 40% d'opacité */
    background: linear-gradient(135deg, rgba(50, 70, 100, 0.6), rgba(30, 50, 80, 0.4));

    /* Crée une bordure de 2px d'épaisseur, couleur orange (#ff6b35) avec 30% d'opacité (semi-transparent) */
    border: 2px solid rgba(255, 107, 53, 0.3);

    /* Arrondit les coins de la carte avec un rayon de 25px pour un look moderne et doux */
    border-radius: 25px;

    /* Ajoute de l'espace à l'intérieur de la carte :
       2.5rem (40px) en haut/bas, 1.5rem (24px) à gauche/droite */
    padding: 2.5rem 1.5rem;

    /* Active le modèle flexbox pour organiser les éléments enfants facilement */
    display: flex;

    /* Arrange les éléments enfants en colonne (verticalement, du haut vers le bas) */
    flex-direction: column;

    /* Centre les éléments horizontalement (gauche/droite) dans la carte */
    align-items: center;

    /* Centre les éléments verticalement (haut/bas) dans la carte */
    justify-content: center;

    /* Centre le texte à l'intérieur (utile pour les paragraphes et titres) */
    text-align: center;

    /* Anime TOUTES les propriétés CSS quand elles changent (ex: au survol)
       0.4s = durée de 400 millisecondes
       cubic-bezier = courbe d'animation fluide et élégante */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Change le curseur de la souris en "pointeur" (main) quand tu survoles la carte
       Indique que c'est cliquable */
    cursor: pointer;

    /* permet aux éléments enfants positionnés en "absolute" de se positionner par rapport à cette carte */
    position: relative;

    /* Cache tout ce qui dépasse des limites de la carte (important pour les animations) */
    overflow: hidden;

    min-height: 380px;
}

/* Fond hover avec gradient */
.version-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(0, 255, 65, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 25px;
}

.version-card:hover::before {
    opacity: 1;
}

.version-card:hover {
    border-color: #ff6b35;
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.3);
}

/* ===== IMAGE LOGO ===== */
.version-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.5));
    transition: all 0.4s ease;
}


/* ===== ANNÉE ===== */
.version-year {
    font-size: 13px;
    color: #ff6b35;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* ===== TITRE VERSION ===== */
.version-title {
    font-size: clamp(22px, 4vw, 28px);
    color: #00ff41;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin: 0.5rem 0;
}

/* ===== DESCRIPTION ===== */
.version-description {
    font-size: clamp(13px, 2vw, 15px);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-top: 1rem;
}

/* ===== RESPONSIVE - TABLETTE ===== */
@media (max-width: 768px) {
    .versions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .version-card {
        min-height: 320px;
        padding: 2rem 1.2rem;
    }

    .version-logo {
        width: 110px;
        height: 110px;
    }

    .version-title {
        font-size: 20px;
    }

    .version-description {
        font-size: 13px;
    }
}

/* ===== MEDIA QUERIES - TABLETTE (768px) ===== */
@media (max-width: 768px) {
    nav {
        gap: 3vw;
        padding: 10px 10px;
    }

    nav a {
        font-size: 16px;
        padding: 6px 10px;
    }

    .banner {
        height: 30vh;
        min-height: 200px;
    }

    .blockBanner {
        padding: 15px 20px;
    }

    p, ul {
        padding: 0;
    }

    /* Image et texte en colonne sur tablette */
    #img-accueil-createur {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    #img-accueil-createur img {
        width: 100%;
        max-width: 300px;
    }

    .versions-container {
        gap: 1rem;
    }

    .version-bubble {
        min-width: 280px;
        padding: 1rem;
        gap: 1rem;
    }

    .version-bubble img {
        width: 60px;
        height: 60px;
    }

    .versions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .version-card {
        min-height: 320px;
        padding: 2rem 1.2rem;
    }

    .version-logo {
        width: 110px;
        height: 110px;
    }

    .version-title {
        font-size: 20px;
    }

    .version-description {
        font-size: 13px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .footer-links a {
        font-size: 13px;
    }
}

/* ===== MEDIA QUERIES - MOBILE (480px) ===== */
@media (max-width: 480px) {
    nav {
        gap: 2vw;
    }

    nav a {
        font-size: 14px;
        padding: 5px 8px;
    }

    .banner {
        height: 25vh;
        min-height: 180px;
    }

    .blockBanner {
        padding: 12px 15px;
    }

    p, ul {
        font-size: clamp(14px, 2.5vw, 16px);
    }

    .versions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .version-card {
        min-height: 300px;
        padding: 1.5rem 1rem;
    }

    .version-logo {
        width: 100px;
        height: 100px;
    }

    .version-title {
        font-size: 18px;
    }

    .version-description {
        font-size: 12px;
    }

    .version-bubble {
        min-width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .version-bubble img {
        width: 70px;
        height: 70px;
    }

    footer {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .footer-content {
        gap: 1rem;
        padding: 0 10px;
    }

    .footer-section h3 {
        font-size: 14px;
        margin-bottom: 0.5rem;
    }

    .footer-section p {
        font-size: 12px;
    }

    .footer-links a {
        font-size: 12px;
    }
}