/* =======================
   FONTS
======================= */

@font-face {
    font-family: 'Kremlin';
    src: url('fonts/kremlin-samovar.ttf') format('truetype');

    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Moscow';
    src: url('fonts/moscow-metro.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Fyodor';
    src: url('fonts/Fyodor-Bold.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Manuale-Italic';
    src: url('fonts/Manuale-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}


/* =======================
   BODY & BACKGROUND
======================= */

body {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
    color: antiquewhite;
}

/*.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/Fond.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}
*/
.header-bkd {
    height: 400px;

    /* Image au-dessus, dégradé derrière */
    background:
        url("images/Banne2.png") center center / contain no-repeat,
        linear-gradient(to right, #a60201 0%, #a60201 6%, #380100 80%); /* gauche -> droite */

    background-color: #a60201; /* fallback si image ne charge pas */
}

/* MAIN responsive */
.main-bkd {
    background-image: url("images/fondmain.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



/* =======================
   HEADER
======================= */

header {
    text-align: center;
    padding: 20px 0;
    position: relative;
    z-index: 3;
}

h1 {
    font-family: Moscow , sans-serif;
    font-size: 6.7em;
    margin: 0.2em 0;
    color:#000000;
    padding: 10px 20px;
}

h4 {
    font-family: Kremlin, sans-serif;
    font-size: 3em;
    margin: 0.2em 0;
    color:#000000
}

/* =======================
   NAVIGATION
======================= */

.center-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.center-links a {
    padding: 12px 24px;
    color: #fff8e7;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;

    background: linear-gradient(180deg, #8b1e1e 0%, #6a1515 100%);
    box-shadow: 0px 4px 0px #3d0c0c;

    letter-spacing: 0.7px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.center-links a:hover {
    background: linear-gradient(180deg, #a32020 0%, #7c1919 100%);
    transform: translateY(-3px);
    box-shadow: 0px 6px 0px #3d0c0c;
}

.center-links a:active {
    transform: translateY(1px);
    box-shadow: 0px 2px 0px #3d0c0c;
}


.links-invisible a {
    color:#ffffff;
}

.btn {
    margin-top: 2em;
}

/* =======================
   TITRES & TEXTES
======================= */

h2 {
    font-family: Kremlin , sans-serif;
    font-weight: 700;
    text-align: center;
    margin: 0.2em 0 0.3em;
    text-decoration: underline;
    color:#ffffff;
    font-weight:bold;
}

h3 {
    font-family: Fyodor , sans-serif;
    font-weight: 700;
    text-align: center;
    margin: 0.2em 0 0.3em;
    color: #ffffff;
}

h5 {
    font-family: Kremlin , sans-serif;
    font-weight: 700;
    text-align: center;
    margin: 0.2em 0 0.3em;
    color:#ffffff;
    font-weight:bold;
    font-size: 20px;
}
p {
    text-align: justify;
    line-height: 1.8;
    line-height: 2;
    color:#ffffff;
    font-weight: 200;
    font-size: 20px;
}

.text-banner {
    background: rgba(22, 12, 114, 0.7);
    color: antiquewhite;
    padding: 20px 40px;
    border-radius: 15px;
    display: inline-block;
    border-radius: 15px;
    text-align: center;
}

.text-banner:hover {
    transform: translateY(-3px);
    transition: all 0.3s ease;
}


/* =======================
   LAYOUT MAIN + ASIDE
======================= */

.devise-section {
    text-align: center;      /* centre la devise */
    padding: 20px;           /* espace autour */
    background-color: #f0f0f0; /* optionnel : fond différent */
}

main {
    display: flex;
    gap: 20px;
    padding: 30px;
    position: relative;
    z-index: 3;
}


article {
    flex: 3;
}

aside {
    flex: 1;
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-left: 2px solid #bb2626;
    border-radius: 10px;
    text-align: center;
}

.justify-text {
    display: block;
    margin-bottom: 1em;
    font-size: 20px;
    color: #ffffff;
    text-align: justify;
    border-radius: 12px;
    font-size: 20px;
    padding: 25px 35px;
    font-weight: 200;
    line-height: 1.8;
    line-height: 2;
}

.center-text {
    display: block;
    margin-bottom: 1em;
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    border-radius: 12px;
    font-size: 20px;
    padding: 25px 35px;
    font-weight: 200;
    line-height: 1.8;
    line-height: 2;
}

.big-block {
    border: 2px solid #8b1e1e;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.speech {
    font-family: Manuale-Italic , sans-serif;
    font-weight: 700;
    text-align: center;
    margin: 0.2em 0 0.3em;
    color: #ffffff;
}

/* =======================
   FOOTER
======================= */

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: rgba(0,0,0,0.5);
    position: relative;
    z-index: 3;
}

/* =======================
   IMAGES RESPONSIVE
======================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =======================
   RESPONSIVE LAYOUT
======================= */

/* Tablettes & petits laptops */
@media (max-width: 992px) {

    /* Le main passe en colonne */
    main {
        flex-direction: column;
    }

    aside {
        margin-top: 20px;
    }

    h1 {
        font-size: 4em;
    }

    h4 {
        font-size: 2em;
    }
}

/* Smartphones */
@media (max-width: 768px) {

    main {
        flex-direction: column;
        padding: 15px;
    }

    aside {
        margin-top: 20px;
    }

    h1 {
        font-size: 3em;
    }

    h4 {
        font-size: 1.6em;
    }

    h2, h3, h5 {
        font-size: 1.3em;
    }

    p, .center-text, .justify-text {
        font-size: 18px;
        padding: 20px;
    }
}

/* Très petits écrans */
@media (max-width: 480px) {

    h1 {
        font-size: 2.2em;
    }

    h4 {
        font-size: 1.3em;
    }

    p, .center-text, .justify-text {
        font-size: 16px;
        padding: 15px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-bkd {
        height: 260px;
        background:
            url("images/Banne2.png") center center / contain no-repeat,
            linear-gradient(to right, #a70201, #380100);
    }
}

@media (max-width: 480px) {
    .header-bkd {
        height: 200px;
        background:
            url("images/Banne2.png") center center / contain no-repeat,
            linear-gradient(to right, #a70201, #380100);
    }
}