@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oxanium:wght@400;500;600;700;800&display=swap');

* 
{
    margin: 0;
    cursor: default;
    font-family: 'Oxanium', sans-serif;
}

html
{
    scroll-behavior: smooth;
}

body 
{
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 150%;
    margin: 0;
    background-color: #1D2438;
    padding-top: 120px;
}

h1 
{
    margin: 0;
    font-size: 400%;
    font-weight: bold;
    text-transform: uppercase;
    clear: both;
    padding: 100px;
    color: #fff;
    text-decoration: underline;
    width: 100%;
    text-align: center;
}

a 
{
    color: #000000;
    text-decoration: none;
}

a:hover 
{
    text-decoration: none;
    color: #000000;
    background-color: #ffffff;
    cursor: pointer;
}

img 
{
    margin: 10px;
    padding: 40px;
    float: right;
}

nav div ul 
{
    padding: 0;
    margin: 0;
    text-align: center;
}

nav div ul li 
{
    display: inline-block;
    text-align: center;
}

nav div ul :first-child a
{
    filter: drop-shadow(0 0 3px yellow) drop-shadow(0 0 7px yellow); /*effet neon*/
    background-color: yellow;
    border: none;
    color: black;

}

/*------------------------------------------------------------------------HEADER------------------------------------------------------------------------*/

header 
{
    position: fixed;           /* Reste visible en haut */
    top: 0;                    /* Colle au haut de la fenetre */
    left: 0;                   /* Collé à gauche */
    width: 100%;               /* Occupe toute la largeur */
    background-color: #2f2f2f;
    text-transform: uppercase;
    padding: 50px 0 10px 0;
    height: 100px;
    z-index: 1000; /* Passe au-dessus du reste du contenu */
}

/* --- Header --- */
header a 
{
    margin-right: 40px;
    font-size: 200%;
    padding: 10px;
    color: #fff;
    border: #fff 2px solid;
    border-radius: 10px;
}

header img:first-child
{
    cursor: pointer;
}

header a:hover 
{
    filter: drop-shadow(0 0 3px white) drop-shadow(0 0 7px white); /*effet neon*/
}

header > a:first-child
{
    filter : none;
    transform: none;
    border :none;
    background-color: transparent;
}

header img 
{
    position: absolute;
    height: 120px;
    width: 120px;
    top: -30px;
    left: -20px;
}

.titre-responsive 
{
    display: none; /* Caché par défaut */
}

/*------------------------------------------------------------------------ARTICLE------------------------------------------------------------------------*/

article p 
{
    text-align: justify;
}

article p::first-letter 
{
    font-size: 150%;
}

/* --- Images principales --- */
article > img 
{
    margin: 0;
    padding: 0;
    width: 100%;
    height: auto;
    border-bottom: yellow 7px solid;
}

/*------------------------------------------------------------------------CARDS------------------------------------------------------------------------*/

.card 
{
    width: 100%;
    background-color: #ffffff;
    filter: drop-shadow(0 0 3px white) drop-shadow(0 0 7px white);
    padding: 40px;
    border-radius: 10px;
    margin: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

/* Largeur pour le conteneur des cartes */
article div.cards-container 
{
    position: relative;
    width: 900px;
    margin: 0 auto;
    display: flex; 
    flex-direction: column;
    align-items: center; /* centrer les cartes horizontalement */
    padding: 20px 0;
}

a:hover
{
    background-color: none;
}

.card h2 
{
    margin: 0;
    color: #2f2f2f;
    font-size: 220%;
    text-transform: uppercase;
    width: 25%;
    text-align: center;
    text-decoration: none;
    flex-shrink: 0; /*le texte occupe son espace sans retrecir*/
    line-height: 1.2;
    cursor: pointer;

}

.card img 
{
    float: none;
    width: 250px;
    height: auto;
    margin: 0 20px;
    padding: 0;
    border-radius: 5px;
    cursor: pointer;

}

.card p 
{
    text-align: justify;
    color: #2f2f2f;
    font-size: 150%;
    line-height: 1.4;
    margin: 0;
    cursor: pointer;

}

.card p a 
{
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;

}


/*------------------------------------------------------------------------FOOTER------------------------------------------------------------------------*/

footer 
{
    position: relative;   /*positionner le lien au dessus l'image */
    width: 100%;
    height: 200px;
}

footer div a
{
    position: absolute;
    margin-left: 50px;
    width: 15%;
}

footer div a img:hover
{
    cursor: pointer;
}

footer img 
{
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
}

footer a 
{
    position: absolute;  /* position sur l'image */
    width: 100%;         /* prend toute la largeur pour que text-align fonctionne */
    text-align: center; 
    padding-top: 50px;
    color: #fff;          /* texte blanc */
    font-size: 150%;  
    font-weight: bold;    
    text-decoration: underline;
}

footer a:hover 
{
    background-color: transparent;
    color: white;
}

/*----------------------------------------------------------------------------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------RESPONSIVE------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------------------------------------------------------------------------------------*/

@media only screen
and (max-width: 1024px)
and (orientation: portrait)
{

/*-------------------------------------------------------------------------HEADER------------------------------------------------------------------------------*/

    header 
    {
        display: flex;
        align-items: center;   /* Centre verticalement */
        justify-content: center; /* Centre horizontalement */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100px; 
        background-color: #2f2f2f;
    }

    .titre-responsive 
    {
        display: block;
        color: white;
        font-family: 'Oxanium', sans-serif;
        font-size: 2rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        text-align: center;
    }

/*--------------------------------------------------------------------------NAV--------------------------------------------------------------------------------*/

	/* --- NAV BURGER --- */
    nav 
    {
        position: absolute; /* On le positionne par rapport au header */
        top: 0px; 
        right: 0px;
        border-radius: 24px;
        padding: 10px;
        width: auto;/* ajustement automatique a son contenu */
        margin: 0;
    }

    /* bouton burger */
    nav div ul::before 
    {
        content: "≡";
        font-weight: 700;
        font-size: 70px;
        color: white;
        cursor: pointer;
        display: block;
        text-align: right;
    }

    /* cacher les liens */
    nav div ul li 
    {
        display: none;
        position: relative;
        margin: 40px ;
        left: 0;
        top: 0;
        text-align: right;
    }

    /* container UL positionné en haut a droite */
    nav div ul 
    {
        position: absolute;
        right: 20px;
        top:40px;
        background-color: #2f2f2f;
        width: 500px;           /*largeur raisonnable du menu déroulant */
        border-radius: 12px;
        padding-top: 20px;
        padding-right: 20px;
    }

    nav div ul:hover
    {    border: white 2px solid;
        background-color: #102553;
    }

    /* quand on hover l'UL on affiche les links */
    nav div ul:hover li 
    {
        display: block;
        padding: 10px;
        font-size: 22px;
        cursor: pointer;

    }

/*---------------------------------------------------------------------------CARDS-----------------------------------------------------------------------*/

    .card 
    {
        width: 90%; /* prend presque toute la largeur de l’écran */
        margin: 20px auto;/* espace autour, centré */
        padding: 20px;/* un peu moins d’espace intérieur */
        flex-direction: column;/* place l’image au dessus du texte */
        align-items: center;
        text-align: center;
    }

    .card img 
    {
        width: 60%;/* image plus petite */
        height: auto;
        margin-bottom: 15px;
    }

    .card h2 
    {
        font-size: 230%;/* titre plus petit */
        width: 100%;
        margin-bottom: 15px;
    }

    .card p 
    {
        font-size: 190%; /* texte plus lisible et compact */
        width: 90%;
        margin: 15px;
    }

    article div.cards-container 
    {
        gap: 100px; /* espace entre les cartes (fonctionne si display:flex) */
    }

/*--------------------------------------------------------------------FOOTER-----------------------------------------------------------------------------*/

    footer 
    {
        height: auto;/* adapte la taille à l’image */
        margin: 0;/* retire tout espace inutile */
        padding: 0;
        background: none;/* supprime fond bleu */
        overflow: hidden;/* evite un débordement en bas */
    }

    footer img 
    {
        display: block;/* empeche l’espace blanc sous l’image */
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

}