
/*
 * KEPIOU.FR
 * Identité graphique principale
 * © AREDIUS ART PRODUCTION
 */

:root {
    --bleu-roi: #1554AE;
    --bleu-nuit: #081F42;
    --bleu-marine: #102D59;
    --bleu-moyen: #2366BB;
    --bleu-clair: #A9CEEF;
    --beige: #C9B693;
    --beige-clair: #E5D8BD;
    --blanc: #FFFFFF;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--blanc);

    background: linear-gradient(
        120deg,
        #A9CEEF 0%,
        #D9E9FA 50%,
        #A7CAEC 100%
    );
}

/* EN-TETE */

.site-header {
    flex-shrink: 0;
    width: 100%;
    background: linear-gradient(
        105deg,
        var(--bleu-nuit),
        var(--bleu-roi) 65%,
        var(--bleu-moyen)
    );
    border-bottom: 2px solid var(--beige);
}

.header-conteneur {
    width: min(96%, 1800px);
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 26px;
}

.site-logo {
    color: var(--blanc);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
}

/* MENU */

.menu-principal {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.menu-lien {
    display: inline-block;
    padding: 5px 0;
    color: var(--blanc);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.menu-lien.actif {
    border-bottom: 2px solid var(--beige);
}

.menu-lien.en-attente {
    color: #DBE9F8;
}

a.menu-lien:hover {
    color: var(--beige-clair);
}

/* CONTENEUR GENERAL */

main {
    flex: 1 0 auto;
    width: min(96%, 1800px);
    max-width: none;
    margin: 0 auto;
    padding: 16px 0 24px;
}

.accueil {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* PRESENTATION DE KEPIOU */

.accueil-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(245px, 0.65fr);
    gap: 24px;
    align-items: center;
    padding: 24px 30px;

    background: linear-gradient(
        110deg,
        var(--bleu-nuit),
        var(--bleu-roi) 68%,
        #2C73C5
    );

    border: 2px solid var(--beige);
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(8,31,66,0.12);
}

.hero-texte {
    min-width: 0;
}

.hero-surtitle {
    margin: 0 0 6px;
    color: var(--beige-clair);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.7px;
}

.hero-texte h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 2.2vw, 38px);
    line-height: 1.2;
}

.hero-devise {
    margin: 0 0 16px;
    color: var(--beige-clair);
    font-size: clamp(17px, 1.3vw, 22px);
    font-weight: bold;
    font-style: italic;
}

.hero-texte p:not(.hero-surtitle):not(.hero-devise) {
    max-width: 1000px;
    margin: 0 0 13px;
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}

.hero-texte p:last-child {
    margin-bottom: 0;
}

.hero-texte strong {
    color: #F4DDB3;
}

/* PERSONNAGES */

.hero-personnages {
    min-width: 0;
    padding: 14px 16px;
    background: rgba(8,31,66,0.3);
    border: 1px solid var(--beige);
    border-radius: 9px;
}

.personnages-titre {
    margin: 0 0 9px;
    color: var(--beige-clair);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

.personnages-images {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
}

.personnages-images figure {
    flex: 1 1 0;
    min-width: 0;
    max-width: 155px;
    margin: 0;
    text-align: center;
}

.personnages-images img {
    display: block;
    width: 100%;
    height: 165px;
    object-fit: contain;
    object-position: center bottom;
}

.personnages-images figcaption {
    margin-top: 6px;
    color: var(--beige-clair);
    font-size: 12px;
    font-weight: bold;
}

/* HISTOIRE DES GA */

.accueil-histoire {
    display: block;
    background: var(--bleu-marine);
    border: 2px solid var(--beige);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 16px rgba(8,31,66,0.12);
}

/* EN-TETE HISTORIQUE */

.histoire-entete {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 15px 22px;

    background: linear-gradient(
        95deg,
        var(--bleu-nuit),
        var(--bleu-roi)
    );
    border-bottom: 2px solid var(--beige);
}

.histoire-periode {
    margin: 0 0 4px;
    color: var(--beige-clair);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.histoire-entete h2 {
    margin: 0;
    font-size: clamp(22px, 1.7vw, 28px);
    line-height: 1.25;
}

.histoire-introduction {
    margin: 0;
    color: #E6F0FC;
    font-size: 15px;
    line-height: 1.55;
}

/* QUATRE CADRES HISTORIQUES */

.histoire-grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 16px;
    align-items: stretch;
}

.histoire-carte {
    min-width: 0;
    padding: 19px 22px;

    background: linear-gradient(
        150deg,
        #2463AB 0%,
        #153B73 100%
    );

    border: 1px solid var(--beige);
    border-radius: 9px;
}

.histoire-carte h3 {
    margin: 0 0 12px;
    padding-bottom: 9px;
    color: var(--beige-clair);
    font-size: 19px;
    line-height: 1.3;
    border-bottom: 1px solid
        rgba(229,216,189,0.6);
}

.histoire-carte p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}

.histoire-carte p:last-child {
    margin-bottom: 0;
}

.histoire-carte strong {
    color: #F2DBB5;
}

/* CONCLUSION */

.accueil-signature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 14px 22px;

    background: linear-gradient(
        100deg,
        var(--bleu-nuit),
        var(--bleu-roi)
    );

    border: 2px solid var(--beige);
    border-radius: 10px;
}

.accueil-signature p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.accueil-signature span {
    flex-shrink: 0;
    color: var(--beige-clair);
    font-size: 17px;
    font-style: italic;
    font-weight: bold;
}

/* MENTION D'INDEPENDANCE */

.mention-independance {
    margin: 0;
    color: var(--bleu-nuit);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

/* FOOTER EN BAS */

.site-footer {
    flex-shrink: 0;
    width: 100%;
    padding: 13px 20px;
    margin-top: auto;

    background: var(--bleu-nuit);
    border-top: 2px solid var(--beige);
    color: var(--blanc);
    font-size: 12px;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

/* TABLETTES */

@media (max-width: 950px) {

    .header-conteneur {
        flex-direction: column;
        gap: 10px;
    }

    .menu-principal {
        justify-content: center;
    }

    .accueil-hero {
        grid-template-columns: 1fr;
    }

    .hero-personnages {
        max-width: 450px;
        width: 100%;
        margin: 0 auto;
    }

    .histoire-entete {
        grid-template-columns: 1fr;
        gap: 9px;
    }
}

/* SMARTPHONES */

@media (max-width: 650px) {

    .header-conteneur {
        padding: 12px;
    }

    .site-logo {
        font-size: 23px;
    }

    .menu-principal {
        gap: 8px 13px;
    }

    .menu-lien {
        font-size: 12px;
    }

    main {
        padding: 10px 0 16px;
    }

    .accueil {
        gap: 12px;
    }

    .accueil-hero {
        padding: 20px 16px;
    }

    .hero-texte h1 {
        font-size: 27px;
    }

    .hero-texte p:not(.hero-surtitle):not(.hero-devise) {
        font-size: 15px;
    }

    .histoire-entete {
        padding: 16px;
    }

    .histoire-grille {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }

    .histoire-carte {
        padding: 17px;
    }

    .histoire-carte h3 {
        font-size: 18px;
    }

    .histoire-carte p {
        font-size: 15px;
        line-height: 1.65;
    }

    .accueil-signature {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
