/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */


html, body {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 450;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: #222;
    font-size: 1em;
    line-height: 1.5;
}

h1, h2, h3, h4, h5 {
    color: #055160;
}

p {
    text-align: justify;
}


.quicksand-unique {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */
.periode-ecole {
    background-color: #d1e7dd;
    color: #0f5132;
}

.periode-entreprise {
    background-color: #cff4fc;
    color: #055160;
}

.week-end {
    background-color: #f8d7da;
    color: #842029;
}

hr {
    border: 0;
    height: 1px;
    background: #ccc;
}

.bloc1 {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    max-width: 1500px; /* Adjust the width as needed */
    padding-left: 7em;
    padding-right: 7em; /* Optional: Add padding for better spacing */
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

.button-container {

    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Optional: Adjust the gap between images */
    flex-wrap: wrap;
}

.image-container img {
    max-width: 333px; /* Optional: Adjust the max width of the images */
    height: auto;
}


.round-button-outline {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 1%;
    flex-grow: 1;
    padding: 2% 2%;
    gap: 1em;
    border-radius: 50px;
    background-color: white;
    color: blue;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 2px dashed green;

}

.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #007BFF;
    color: white;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.round-button {

    width: 100%;
    box-sizing: border-box;
    display: inline-block;
    padding: 2% 2%;
    border-radius: 50px;
    color: white;
    text-align: center;
    text-decoration: none;
    margin: 1%;

}


/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

.text-gray {
    color: gray;
}

.text-lightgrey {
    color: lightgrey;
}

.text-blue {
    color: #003cff;
}

.text-italic {
    font-style: italic;
}

.button-lightblue {
    background-color: rgba(0, 123, 255, 0.32);
    transition: background-color 0.3s;
}

.button-red {
    background-color: rgba(255, 0, 153, 0.29);
    transition: background-color 0.3s;
}

.button-green {
    background-color: rgba(0, 255, 0, 0.11);
    transition: background-color 0.3s;
}

.button-purple {
    background-color: rgba(255, 0, 255, 0.11);
    transition: background-color 0.3s;
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */


@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

.footer {
    display: flex;
    justify-content: space-evenly;
    font-size: 0.8em;
    flex-wrap: wrap;
    background-color: #222222;
    flex-direction: row;
    align-items: center;

}

.text-white {
    color: white;
}

@media only screen and (max-width: 40em) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .square-button {
        padding: 2em 4em;
    }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: beige;
    flex-wrap: wrap;
}

.pre-sommaire {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: beige;
    flex-wrap: wrap;
}

.square-button {

    display: inline-block;
    padding: 30px 65px;
    border-radius: 5px;
    color: black;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    background-color: beige;
}

.footer2{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: white;
    flex-wrap: wrap;
}

.footer3{
    color: black;
    font-style: italic;
}
/* Arrière-plan */
/*.background {*/
/*    position: fixed; !* Fixe l'arrière-plan *!*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    z-index: -1; !* Place derrière le contenu *!*/
/*    background-image: url('dist/icon/background.jpg');*/
/*    background-size: cover;*/
/*    background-position: center;*/
/*    opacity: 1;*/
/*}*/

.table-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.edt {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bloc {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-wrap: wrap;
}


.semestre5, .semestre6, .semestre7, .semestre8 {
    width: 100%;
    max-width: 600px;
    margin: 10px 20px;
    box-sizing: border-box;
}

.photo {
    border-radius: 1000px;
    object-fit: cover;
}

.identite {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 45%;

}

.content {
    display: flex;
    flex-direction: column;
    justify-content: normal;
    height: 100%;
}

@media only screen and (max-width: 40em) {
    html, body {
        font-family: "Quicksand", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        font-style: normal;
        font-variation-settings: "wdth" 100;
        color: #222;
        font-size: 1em;
        line-height: 1.5;

    }

    .edt1 {
        flex-direction: column;

    }

    .round-button-outline {
        padding: 50% 1%;
        height: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .round-button {
        padding: 50% 1%;
        height: 100%
    }

    .responsive-table {
        display: block;
    }

    .responsive-table thead {
        display: none; /* Masquer les en-têtes */
    }

    .responsive-table tbody {
        display: block;
    }

    .responsive-table tr {
        display: block;
        margin-bottom: 15px; /* Ajoute de l'espace entre les lignes */
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .responsive-table td::before {
        content: attr(data-label); /* Affiche le label défini dans data-label */
        font-weight: bold;
        text-align: left;
    }

    .responsive-table td:last-child {
        border-bottom: 0; /* Pas de bordure pour la dernière cellule */
    }

    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .responsive-table td::before {
        content: attr(data-label); /* Affiche le label défini dans data-label */
        font-weight: bold;
        text-align: left;
        padding-right: 10px; /* Ajoute un espace entre le label et la valeur */
        border-right: 2px solid #000; /* Ajoute un trait vertical pour séparer */
        margin-right: 10px; /* Espace après le trait */
    }

    /* Ajustement de style pour la dernière cellule d'une ligne */
    .responsive-table td:last-child {
        border-bottom: 0;
    }

}