html {
    margin: .6%;
}

body {
    background-color: #200cd8;
}


/*
  _                         
 | |                        
 | |_ _   _ _ __   ___  ___ 
 | __| | | | '_ \ / _ \/ __|
 | |_| |_| | |_) | (_) \__ \
  \__|\__, | .__/ \___/|___/
       __/ | |              
      |___/|_|              
*/

@font-face {
    font-family: 'anthony';
    src: url('../../../TYPOS/Anthony.otf') format('opentype'), 
    url('../../../TYPOS/Anthony.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'archivo-regular';
    src: url('../../../TYPOS/Archivo-Regular.ttf') format('truetype'),
         url('../../../TYPOS/Archivo-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'archivo-regular-italic';
    src: url('../../../TYPOS/Archivo-Regular-Italic.ttf') format('truetype'),
         url('../../../TYPOS/Archivo-Regular-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'archivo-semibold';
    src: url('../../../TYPOS/Archivo-SemiBold.otf') format('truetype'),
         url('../../../TYPOS/Archivo-SemiBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'archivo-semibold-italic';
    src: url('../../../TYPOS/Archivo-SemiBold-Italic.ttf') format('truetype'),
         url('../../../TYPOS/Archivo-SemiBold-Italic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'archivo-bold';
    src: url('../../../TYPOS/Archivo-Bold.ttf') format('truetype'),
         url('../../../TYPOS/Archivo-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'archivo-bold-italic';
    src: url('../../../TYPOS/Archivo-Bold-Italic.ttf') format('truetype'),
         url('../../../TYPOS/Archivo-Bold-Italic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}



/*
  _                    _           
 | |                  | |          
 | |__   ___  __ _  __| | ___ _ __ 
 | '_ \ / _ \/ _` |/ _` |/ _ \ '__|
 | | | |  __/ (_| | (_| |  __/ |   
 |_| |_|\___|\__,_|\__,_|\___|_|   
                                   
*/

header {
    position: fixed;
    width: 98%;
    height: auto;
    top: 0;
    left: 0;
    z-index: 100;
    background: linear-gradient(to bottom, #200cd8 0%, rgba(238,237,237,0) 100%);
    padding-left: 1%;
    padding-right: 1%;
    display: flex;
    flex-direction: column; /* <-- colonne pour empiler les lignes */
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start; /* ou stretch selon ton besoin */
}

@media (orientation: portrait) {
    header {
        margin-top: 0%;
    }
}

header button {
    background-color: #06A77D;
    border: solid 1px #06A77D;
    color: #E7ECEF;
    font-family: 'archivo-regular', serif;
    font-weight: normal;
    font-size: 1em;
    padding: 0.3em 0.8em;
}

@media (orientation: portrait) {
    header button {
        margin-bottom: 1%;
    }
}

header .boutons {
        margin-top: 1%;
}

header button:hover {
    border: solid 1px #E7ECEF;
    cursor: pointer;
}

header #titre  {
    font-family: 'anthony';
    background-color: #200cd8;
    border: solid 1px #E7ECEF;
    padding: 0.12em 0.8em 0.3em 0.8em ;
}

header .active {
    background-color: white;
    border: solid 1px #E7ECEF;
}

header .active:hover {
    cursor: default;
}



.langue-switch {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    padding: 1%;
}

@media (orientation: portrait) {
    .langue-switch {
        position: fixed;
        bottom: 0;
        right: 0;
    }
}

.langue-switch p {
    font-family: 'archivo-regular', serif;
    font-size: 1em;
    color: #06A77D;
    margin: 0;
}

.langue-switch p a {
    color: #E7ECEF;
    text-decoration: none;
}

.langue-switch p a:hover {
    text-decoration: underline;
}


/*
   __            _            
  / _|          | |           
 | |_ ___   ___ | |_ ___ _ __ 
 |  _/ _ \ / _ \| __/ _ \ '__|
 | || (_) | (_) | ||  __/ |   
 |_| \___/ \___/ \__\___|_|   
                              
*/

#footer {
    margin-top: 4%;
    border: solid 0.8px #E7ECEF;
}

@media (orientation: portrait) {
    #footer {
        margin-top: 15%;
    }
}

footer {
    width: 100%;
    height: auto;

    margin-top: 1%;
    margin-bottom: 1%;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;

    color:#E7ECEF;
}

footer p {
    font-family: 'archivo-regular', serif;
    font-weight: normal;
    font-size: 1em;
    line-height: 1.3em;
    margin: 0;
}

footer p a {
    color: #E7ECEF;
    text-decoration: underline;
}

footer p strong {
    font-family: 'anthony';
    font-weight: normal;
}

footer button {
    background-color: #200cd8;
    border: solid 1px #E7ECEF;
    color: #E7ECEF;
    font-family: 'anthony';
    font-size: 1.6em;
    padding: 0.2em 0.4em 0.3em 0.4em;
}

@media (orientation: portrait) {
    footer button {
        display: none;
    }
}

footer button:hover {
    background-color: #06A77D;
    color: #E7ECEF;
    border: solid 1px #E7ECEF;
    cursor: n-resize;
}

/*
                  _      _   
                 (_)    | |  
  _ __  _ __ ___  _  ___| |_ 
 | '_ \| '__/ _ \| |/ _ \ __|
 | |_) | | | (_) | |  __/ |_ 
 | .__/|_|  \___/| |\___|\__|
 | |            _/ |         
 |_|           |__/          
*/


.titre-projet {
    display: flex;
    flex-direction: column;
    align-items: center;    /* centre les éléments enfants horizontalement */
    justify-content: center;
    text-align: center;     /* centre le texte à l'intérieur */
    margin: 0 auto;         /* centre le bloc si largeur fixée ou max-width */
    width: 100%;  
    margin-top: 6%;          /* ou adapte selon ton design */
    margin-bottom: 6%;
}

@media (orientation: portrait) {
    .titre-projet {
        margin-top: 24%;
    } 
}

.titre-projet h1 {
    font-family: 'anthony';
    font-weight: normal;
    font-size: 3.2em;
    color: #E7ECEF;
    margin: 0;
    margin-bottom: 1%;
    padding: 0;
}

.titre-projet h2 {
    font-family: 'archivo-regular', serif;
    font-weight: normal;
    font-size: 1.2em;
    color: #E7ECEF;
    margin: 0;
    padding: 0;
}

@media (orientation: portrait) {
    .titre-projet h1 {
        line-height: .9em;
        margin-top: 4%;
    }

    .titre-projet h2 {
        margin-top: 2%;
    }  
}



.carousel-img {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5em;              /* espace entre les images */
    overflow-x: auto;        /* scroll horizontal */
    overflow-y: hidden;      /* masque le scroll vertical */
    padding-bottom: 3em;     /* espace sous les images pour la scrollbar */
    scrollbar-width: thin;   /* style scrollbar Firefox */
    scrollbar-color: #200cd8 #200cd8; /* couleurs scrollbar Firefox */
}

@media (orientation: portrait) {
    .carousel-img {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;  
    }
}

.carousel-img::-webkit-scrollbar {
    height: 8px;
    background: #200cd8;
}
.carousel-img::-webkit-scrollbar-thumb {
    background: #170a93;
    border-radius: 4px;
}

.carousel-item {
    flex: 0 0 auto;          /* empêche le retour à la ligne */
    height: 600px;           /* définit une hauteur fixe pour toutes les images */
    text-align: left;
    overflow: visible;       /* permet au texte d'être visible */
    display: flex;           /* utilise flexbox pour aligner le contenu */
    flex-direction: column;  /* aligne l'image et le texte verticalement */
}

@media (orientation: portrait) {
    .carousel-item {
        width: 100%;
        height: auto;
    }
}

.carousel-img img {
    height: 100%;            /* remplit la hauteur du conteneur */
    width: auto;             /* ajuste la largeur pour conserver le ratio d'aspect */
    display: block;
}

.carousel-item p {
    margin-top: 0.5em;
    font-family: 'archivo-regular', serif;
    font-weight: normal;
    font-size: .8em;
    color: #E7ECEF;
}

@media (orientation: portrait) {
    .carousel-item p {
        font-size: .6em;
        margin-bottom: 0;
    }
}



.description-projet {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6%;
    margin-top: 2%;
    gap: 10%;
}

@media (orientation: portrait) {
    .description-projet {
        flex-wrap: wrap;
    }
}

.infos-projet {
    width: 30%;
}

@media (orientation: portrait) {
    .infos-projet {
      width: 80%;
      margin-bottom: 8%;
   }
}


.infos-projet p {
    font-family: 'archivo-regular', serif;
    font-weight: normal;
    font-size: 1em;
    color: #E7ECEF;
}

.infos-projet a {
    color: #E7ECEF;
    text-decoration: underline;
}

.infos-projet a:hover {
    text-decoration: none;
    color: #06A77D;
}


.texte-projet {
    width: 62%;
}

@media (orientation: portrait) {
    .texte-projet {
        width: 100%;
}
}

.texte-projet a:hover {
    text-decoration: none;
    color: #06A77D;
}

.texte-projet p {
    font-family: 'archivo-regular', serif;
    font-weight: normal;
    font-size: 1.2em;
    line-height: 1.2em;
    color: #E7ECEF;
    text-indent: 5em;
    margin-top: 0;
    margin-bottom: .2em;
    hyphens: auto;
}

@media (orientation: portrait) {
    .texte-projet p {
        text-indent: 2em;
    }
}

.texte-projet ul {
    margin-top: 6%;
    list-style: none;
    padding: 0;
    column-count: 3;

    font-family: 'archivo-regular', serif;
    font-weight: normal;
    font-size: 1em;
    line-height: 1.4em;
    color: #E7ECEF;
}

@media (orientation: portrait) {
    .texte-projet ul {
      column-count: 2;
      margin-top: 12%;
    }
}

.texte-projet li {
    margin-bottom: 1em;
    margin-top: 0;
    break-inside: avoid;
    -webkit-column-break-inside: avoid; /* pour Safari/Chrome */
    page-break-inside: avoid;
}

@media (orientation: portrait) {
    .texte-projet li {
        hyphens: auto;
    }
}



.bouton-retour button {
    background-color: #200cd8;
    border: solid 1px #E7ECEF;
    color: #E7ECEF;
    font-family: 'anthony';
    font-weight: normal;
    font-size: 1em;
    padding: 0.2em 0.8em 0.3em 0.8em;
}

.bouton-retour button:hover {
    background-color: #06A77D;
    color: #E7ECEF;
    border: solid 1px #E7ECEF;
    cursor: pointer;
}
