/* Configuration des polices de caractères pour le site.
   Sources: Google Fonts Helper */
/* oswald-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/oswald-v53-latin-regular.eot'); /* IE9 Compat Modes */
    src: url('../fonts/oswald-v53-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/oswald-v53-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('../fonts/oswald-v53-latin-regular.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
    url('../fonts/oswald-v53-latin-regular.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
    url('../fonts/oswald-v53-latin-regular.svg#Oswald') format('svg'); /* Legacy iOS */
}
/* oswald-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/oswald-v53-latin-600.eot'); /* IE9 Compat Modes */
    src: url('../fonts/oswald-v53-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('../fonts/oswald-v53-latin-600.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('../fonts/oswald-v53-latin-600.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
    url('../fonts/oswald-v53-latin-600.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
    url('../fonts/oswald-v53-latin-600.svg#Oswald') format('svg'); /* Legacy iOS */
}


/* Utilisation de variable en CSS */
/* Pseudo-classe qui permet de cibler la racine du document */
:root {
    --bi-width: 40px; /* Largeur de l'icône burger */
    --bi-bar-height: 6px; /* Hauteur des barres de l'icône burger */
    --bi-bar-gap: 6px; /* Espacement entre les bars de l'icône burger */
    --bi-marge: 18px; /* Marge de l'icône burger */
    --bi-animation-timing: 500ms ease-in-out; /* Timing de l'animation de l'icône burger */
    --bi-height: calc(var(--bi-bar-height) * 3 + var(--bi-bar-gap) * 2); /* Hauteur de l'icône burger */
    --bi-splr-padding: 0; /* Espacement gauche et droite pour la version Smartphone */

    --hd-height: 120px; /* Hauteur de header. */
    --ft-height: 120px; /* Hauteur de footer. */

    --hd-logo-height: 96px; /* Taille standard du logo. */

    --mn-side-margin: 15px; /* Marge pour la partie contenu en smartphone. */
}

html {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
    background-color: #520000;
    height: 100%;
}

/* En-tête du site. */
header {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    width:100%;
    min-height: var(--hd-height);
    padding: 0 1rem;
    box-sizing: border-box;

    background-color: #2F0000;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* Logo du site. */
.logo {
    display: flex;
    height: var(--hd-height);
    align-items: center;
}
.logo-image {
    width: auto;
    height: var(--hd-logo-height);
}

/* Navigation responsive masquée en mode écran de terminal. */
.burgericon  {
    display: none;
}

/* Volet du menu déroulant masqué en mode écran de terminal. */
.dropdownnav {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--bi-animation-timing);
}

/* Navigation classique */
.topnav {
    display: flex;
    height: var(--hd-height);
    align-items: center;
}
/* Style des ancres. */
.topnav a {
    text-decoration: none;
    font-family: 'Oswald', Geneva, Tahoma, sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #ae5627;

    padding: 0.75rem;

}
.topnav a:target {
    color: #ED9A6E;
}
.topnav a.active  {
    color: #FBE5DA;
}
/* Suppression du padding à droite sur l'icône de langue */
.topnav a:nth-last-child(1) {
    padding-right: 0;
}

/* Drapeaux pour la langue */
.topnav .lang-flag {
    height: 1.25rem;
    opacity: 50%;
}

/* Zone principale du contenu. */
main {
    flex: 2;
    margin: 0 15%;
    padding: calc(var(--hd-height) - 2rem) 0;
}

/* Polices et couleurs de titres. */
h1, h2 {
    font-family: Oswald, Geneva, Tahoma, sans-serif;
    font-weight: 600;
}
h1 {
    color: #ae5627;
    font-size: 3.75rem;
}
h2 {
    color: #ED9A6E;
    font-size: 2.75rem;
    margin-top: 3.5rem;
    margin-bottom: 1rem;

}

/* Texte principal */
p {
    color: #FBE5DA;
    font-family: 'Oswald', Geneva, Tahoma, sans-serif;
    font-weight: 400;
    font-size: 1.875rem;
    margin-top: 0;
    /*margin: 1rem;*/
}
strong {
    color: #f98229;
}

/* Rubrique de contenu pour un intitulé.
   avec une image, un titre et des listes à puces. */
.resume-box {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: 40px;
 }
.resume-box:nth-child(odd) {
   justify-content: right;
}

.resume-text {
    align-content: flex-start;
    margin-right: 20px;
}
.resume-text:nth-child(odd) * {
    text-align: right;
}

/* Mise en forme du texte. */
.resume-text p {
    text-align: left;
}
.ci-contre {
    display: inline;
}
.ci-dessus {
    display: none;
}

/* Mise en forme des vignettes */
.resume-image {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-right: 20px;
}
.resume-image:nth-child(even) {
    margin-right: 0;
}
.resume-image img {
    border: 8px solid #bf0000;
    border-radius: 15px;
    margin: 0;
    opacity: 50%;
    aspect-ratio: auto;
    width: 250px;
}

/* Mise en forme des lecteurs audio */
.resume-audio {
    background-color: #000000;
    border-radius: 15px;
    width: 266px;
    margin-top: 15px;
}
.resume-audio-text {
    font-family: 'Oswald', Geneva, Tahoma, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    font-style: italic;
    color: #f98229;
    width: 266px;
    text-align: center;
}

.resume-text h2 {
    margin-top: -10px;
    padding: 0;
}

/* Mise en forme des éléments biographique chronologique. */
.resume-text ol {
    padding: 0;
    list-style: none;
    list-style-position: inside;
}
.resume-text ol li::before {
    content: attr(data-year) ": ";
    color: #f98229;
    font-weight: bold;
    text-align: left;
}
.resume-text ol li {
    color: #FBE5DA;
    font-family: 'Oswald', Geneva, Tahoma, sans-serif;
    font-weight: 400;
    font-size: 1.875rem;
    text-align: left;
    margin-bottom: 20px;

}
.resume-text a {
    color: #ae5627;
    text-decoration: none;
    font-weight: bold;
}

/* Tables HTML */
.resume-table {
    border-collapse: collapse;
    margin: 0;
    width: 100%;

    border: solid 4px #f98229;
    border-radius: 15px;

    font-family: 'Oswald', Geneva, Tahoma, sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    color: #FBE5DA;
}
.resume-table td, .resume-table th {
    padding: 0.5rem;
}
.resume-table thead {
    background-color: #ae5627;
    text-align: left;

}
.resume-table tr:nth-child(even) {
    background-color: #2c0000;
}

/* Page d'index (entrée). */
.intro-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: auto;
}
.intro-logo a, .intro-logo a:visited, .intro-logo a:active {
    text-decoration: none;
    color: #c00000;
    background-color: #f98229;
    font-family: Impact, Geneva, Tahoma, sans-serif;
    font-size: 6rem;
    text-align: center;
    vertical-align: middle;

    max-width: 1200px;
    border: 10px solid #c00000;
    border-radius: 15px;
    padding: 15px;
    margin: 0 auto;
}
.intro-round-logo {
    display: none;
}


/* Signature sur la page d'accueil.*/
.resume-text .signature {
    text-align: right;
}

/* Footer */
footer {

    background-color: #2F0000;
    font-family: 'Oswald', Geneva, Tahoma, sans-serif;
    font-weight: 600;

    min-height: var(--ft-height);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    box-sizing: border-box;


}

/* Icônes Awesome */
.fa-square-facebook, .fa-square-youtube {
    font-size: 4rem;
    color: #f98229;
    padding-right: 1rem;
}
.fa-link {
    font-size: 1rem;
    vertical-align: middle;
}
.copyright {
    font-size: 1rem;
    color: #f98229;
}

/* Styles pour l'affichage sur un smartphone */
@media screen and (max-width: 1200px) {

    body {
        margin: 0;

    }
    header, footer {
        margin: 0;
    }

    main {
        margin: calc(var(--hd-height) - 2rem) var(--mn-side-margin);
        padding: 0;
    }

    .ci-contre {
        display: none;
    }
    .ci-dessus {
        display: inline;
    }

    .topnav {
        display: none;
    }

    /* Icône du  menu. */
    .menu {
        position: relative;
        top: 18px;
    }
    .menu .burgericon {
        display: flex;
        flex-direction: column;
        gap: var(--bi-bar-gap);
        align-items: end;
    }
    .burgericon {
        --bi-close-icon-width: calc(var(--bi-height) * 1.41421356237);
        cursor: pointer;
    }

    /* Dessin des trois couches du burger button */
    .burgericon::before,
    .burgericon::after,
    .burgericon input {
        content: "";
        width: var(--bi-width);
        height: var(--bi-bar-height);
        background-color: #f98229;
        border-radius: 0;
        transform-origin: right center;
        transition: opacity var(--bi-animation-timing), width var(--bi-animation-timing), rotate var(--bi-animation-timing), translate var(--bi-animation-timing);
    }

    /* case à cocher pour l'affichage du menu déroulant */
    .burgericon input {
        appearance: none;
        padding: 0;
        margin: 0;
        outline: none;
        pointer-events: none;
    }

    /* Comportement du burger button au click */
    .burgericon:has(input:checked)::before {
        rotate: -45deg;
        width: var(--bi-close-icon-width);
        translate: 0 calc(var(--bi-bar-height) / -2);
    }
    .burgericon:has(input:checked)::after {
        rotate: 45deg;
        width: var(--bi-close-icon-width);
        translate: 0 calc(var(--bi-bar-height) / 2);
    }
    .burgericon input:checked {
        opacity: 0;
        width: 0;

    }

    /* Positionnement du menu déroulant. */
    .dropdownnav {
        position: relative;
        right: 0;
        top: 0;
        padding: 1rem 0;

        /* right: var(--bi-splr-padding);
        top: calc(var(--bi-height) + var(--bi-marge) + 20px); */
    }
    .dropdownnav ul {
        list-style: none;
        font-family: 'Oswald', Geneva, Tahoma, sans-serif;
        font-weight: 600;
        font-size: 1.5rem;

        text-align: right;
        margin-top: 0;
        padding-top: 0;
    }
    .dropdownnav li {
        padding-top: 1rem;
        margin: 0;
        display: block;
    }
    .dropdownnav ul li a {
        text-decoration: none;
        color: #ae5627;
    }
    .dropdownnav ul li a:target {
        color: #ED9A6E;
    }
    .dropdownnav ul li a.active  {
        color: #FBE5DA;
    }

    .dropdownnav .lang-text {
        color: #f98229;
    }

    /* Animation du menu déroulant . */
    .burgericon:has(input:checked) + .dropdownnav {
        max-height: 512px;
        transition: max-height var(--bi-animation-timing);
    }

    /* Logo d'introduction */
    .intro-box {
        height: 100vh;
    }
    .intro-logo {
        display: none;
    }
    .intro-round-logo {
        display: flex;
    }
    .intro-round-logo img {
        width: auto;
        height: 256px;
    }

    .resume-text ol li {
        word-break: normal;
    }

    /* Rubriques de contenu*/
    .resume-box {
        flex-direction: column;
    }
    .resume-box:nth-child(odd) .resume-image {
        order: 1;
    }
    .resume-box:nth-child(odd) .resume-text {
        order: 2;
        margin-bottom: 1rem;
    }
    .resume-text {
        width: 100%;
    }
    .resume-text h2 {
        margin-top: 0.5rem;
    }
    .resume-text p {
        text-align: justify;
    }
    .resume-text:nth-child(odd) * {
        text-align: left;
    }

    /* Tables HTML */
    .resume-table thead tr {
        display: none;
    }
    .resume-table tr {
        display: block;
    }
    .resume-table th, .resume-table td {
        padding: .5rem;
    }
    .resume-table td {
        text-align: center;
        display: block;
        font-size: 1.5rem;
    }
    /* .resume-table td::before{
        content: attr(data-title) ": ";
        float: left;

    }*/
    .resume-table tr:nth-child(even) {
        background-color: #2c0000;
    }
    .resume-table td:nth-child(2), .resume-table td:nth-child(3){
        display: none;
    }

    /* Pied de page */
    footer {
        flex-direction: column;
    }
    footer div {
        margin: 0.5rem 0;
    }

    .social-networks {
        margin-top: 0;
    }
    .fa-square-facebook, .fa-square-youtube {
        font-size: 2.5rem;
    }
}


