@font-face{font-family:vcsm;src:url(https://use.typekit.net/af/d7ff92/00000000000000007735e609/31/l?subset_id=2&fvd=n4&v=3)
}
/* ========================================
   STYLE GLOBAL
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    font-family: 'League Spartan', 'Segoe UI', Arial, sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-size: 1.07rem;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
body {
    /* font-family: 'Inter', 'Segoe UI', Arial, sans-serif; */
    font-family: 'Inter', 'Segoe UI', vcsm, sans-serif;
    /* font-family: vcsm; */
    background: #fe5944;  /* Couleur de fond principale */
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box; /* Inclure le padding dans la largeur */
    margin: 0;
    padding: 0; 
}
/* Appliquer la police à tous les éléments */
body,
button,
input,
textarea,
select {
    font-family: 'League Spartan', 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
}



/* Liens et boutons */
nav a,
.filtre-btn,
.btn-partage,
.btn-retour,
.social-link {
    font-weight: 500;
    text-decoration: none;
}
a:hover {
  text-decoration: none;
}
/* ========================================
   BANNIÈRE & FOOTER
   ======================================== */

header {
    background: #fcfffa;
    padding: 1.5rem;
    /* border: 4px solid #ffffff; */
    border: none;
    background-image: url(/static/images/fond-header.webp);
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position-y: center;
    /* padding: 1.5rem; */
    /* border: 4px solid #ffffff; */
    height: 13.5rem;
}
.header-projet {
    background: #fcfffa;
    padding: 1.5rem;
    /* border: 4px solid #ffffff; */
    border: none;
    background-image: url(/static/images/fond-header.webp);
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position-y: center;
    /* padding: 1.5rem; */
    /* border: 4px solid #ffffff; */
    height: 7rem;
}
.header-projet nav a img {
    height: 4rem;
    width: auto;
}
nav {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

nav a {
    color: #ffffff;
    background-color: #fe5944;
    border-radius: 11% 11%;
    border: solid 2px #fed540;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.4s ease-out, border 0.7s ease;
}

nav a img {
    max-height: 4.5rem;
    width: auto;
    height: auto;
}

nav a:hover {
    /* opacity: 0.7; */
    border: solid 2px #ffffff;
    color: #fed540;
}

footer {
    background: #fcfffa;
    padding: 1.5rem;
    text-align: center;
    margin: 0;
    border: none;
    color: #fe5944;
    width: 100%;
    box-sizing: border-box; /* Inclure le padding dans la largeur */
}

footer a {
    color: #fe5944;
    text-decoration: none;
}

/* ========================================
   MAIN - CORPS CENTRAL
   ======================================== */

main {
    /* max-width: 1400px; */
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 2rem 2rem 3rem 2rem;
    flex: 1;
    width: 100%;
    /* background: #fe5944; --> désormais la couleur de fond est définie dans le CMS et reste orange si rien n'a été défini */
    border-radius: 0;
}
/* Bordure blanche uniquement pour les pages projets et À propos */
main.bordure-blanche {
    border: 4px solid #ffffff;
}

/* ========================================
   PAGE D'ACCUEIL - PAS DE BORDURE
   ======================================== */

main.page-accueil-main {
    border: none;
    border-top: 4px solid #ffffff;
    /* background-image: url(/static/images/fond-motif.webp);
    background-size: 100% auto;
    background-repeat: repeat-y; */
    background: #4b4343;
}

/* ========================================
   TYPOGRAPHIE
   ======================================== */

h1 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 100;
    letter-spacing: -0.4px;
}

h2 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 700;
}
h3 {
    font-weight: 500;
}
.sous-titre {
    font-size: 1.17rem;
    color: #fffef7;
    font-weight: 100;
}

.description-projet {
    font-size: 1.3rem;
    color: #fffef7;
    margin: auto;
    margin-bottom: 2rem;
    line-height: 1.22;
    max-width: 1100px;
    text-align: justify;
}

/* ========================================
   GRILLE PROJETS - SURVOL
   ======================================== */

.grille-projets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;  /* Réduit de moitié (était 2rem) */
    margin-top: 1rem;
}

.projet-card {
    background: transparent;  /* Pas de cadre de fond */
    border-radius: 4px;       /* Arrondi très léger */
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
}

.projet-card:hover {
    transform: translateY(-4px);
}

.projet-card a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    position: relative;
}

.projet-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 2px;       /* Arrondi très très léger */
    background: #1a1a1a;
    display: block;
    border: solid 3px #ffffff;
}

/* Overlay au survol */
.projet-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(254, 89, 68, 0.54);
    padding: 2rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.projet-card:hover .projet-overlay {
    opacity: 1;
    transform: translateY(0);
}

.projet-overlay h3 {
    color: #fed540;           /* Titre jaune */
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.projet-overlay p {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
}

.projet-overlay .categorie-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;       /* Arrondi très très léger */
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   FILTRES CATÉGORIES - STYLE BOUTONS
   ======================================== */

.filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.87rem;
    margin-top: 1.1rem;
}

.filtre-btn {
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;
    line-height: 45px;
    margin: 0;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0;
    background: transparent;
    border: none;
    color: #fed540;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    padding: 0 0.5rem;
    transition: all 0.6s ease;
    white-space: nowrap;           /* Empêche le texte de passer à la ligne */
    display: inline-block;         /* Permet au bouton de s'élargir avec le texte */
    width: auto;                   /* Largeur automatique selon le texte */
}

/* État inactif - pas de bordure */
.filtre-btn:before,
.filtre-btn:after {
    backface-visibility: hidden;
    border: 1px solid rgba(254, 213, 64, 0);
    bottom: 0px;
    content: " ";
    display: block;
    margin: 0 auto;
    position: relative;
    transition: all 280ms ease-in-out;
    width: 0;
}

.filtre-btn:before {
    bottom: auto;
    top: 0;
}

/* Effet au survol - ESPACEMENT RÉDUIT */
.filtre-btn:hover {
    letter-spacing: 3px;           /* Réduit de 5px à 3px */
    color: #ffffff;
}

.filtre-btn:hover:before,
.filtre-btn:hover:after {
    backface-visibility: hidden;
    border-color: #fed540;
    transition: width 350ms ease-in-out;
    width: 100%;                    /* Augmenté de 70% à 85% */
}

.filtre-btn:hover:before {
    bottom: auto;
    top: 0;
    width: 100%;
}

/* État actif (catégorie sélectionnée) */
.filtre-btn.actif {
    letter-spacing: 3px;           /* Réduit de 5px à 3px */
    color: #ffffff;
}

.filtre-btn.actif:before,
.filtre-btn.actif:after {
    border-color: #fed540;
    width: 100%;                    /* Augmenté de 70% à 85% */
}

.filtre-btn.actif:before {
    bottom: auto;
    top: 0;
    width: 100%;
}

/* Responsive pour les filtres */
@media (max-width: 900px) {
    .filtres {
        gap: 0.8rem;
    }
    
    .filtre-btn {
        font-size: 14px;
        line-height: 35px;
    }
    
    .filtre-btn:hover {
        letter-spacing: 2px;
    }
    
    .filtre-btn:hover:before,
    .filtre-btn:hover:after,
    .filtre-btn.actif:before,
    .filtre-btn.actif:after {
        width: 80%;
    }
}

@media (max-width: 600px) {
    .filtres {
        gap: 0.5rem;
    }
    
    .filtre-btn {
        font-size: 12px;
        line-height: 28px;
        padding: 0 0.3rem;
    }
    
    .filtre-btn:hover {
        letter-spacing: 1px;
    }
    
    .filtre-btn:hover:before,
    .filtre-btn:hover:after,
    .filtre-btn.actif:before,
    .filtre-btn.actif:after {
        width: 75%;
    }
}

/* ========================================
   PAGE PROJET - GALERIE
   ======================================== */

.projet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: auto;
    margin-bottom: 0.5rem;
    max-width: 1100px;
}

.projet-header h1 {
    margin: auto;
    margin-bottom: 0;
    flex: 1;
    font-weight: 700;
}

/* Boutons de partage */
.boutons-partage {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-partage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 2px;       /* Arrondi très très léger */
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-partage:hover {
    border-color: #fed540;
    color: #fed540;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-partage svg {
    width: 20px;
    height: 20px;
}

/* Galerie d'images - 1 colonne */
.galerie {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.image-wrapper {
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    width: 100%;
    text-align: center;
}

.image-wrapper:hover {
   /* transform: scale(1.005); */
   transform: translateY(-10px);
}

.image-wrapper img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    border: 25px solid #ffffff;   /* Bordure blanche épaisse */
    border-radius: 0;            /* Angles droits et nets */
    background: transparent;
    margin: auto;
}
/* ========================================
   GRILLES D'IMAGES PARAMÉTRABLES
   ======================================== */

/* Grille 2 colonnes */
.galerie-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem auto;
    max-width: 1100px;
}

.galerie-2 .image-wrapper {
    width: 100%;
}

.galerie-2 .image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border: 4px solid #ffffff;
    border-radius: 0;
    background: transparent;
}

/* Grille 3 colonnes */
.galerie-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem auto;
    max-width: 1100px;
}

.galerie-3 .image-wrapper {
    width: 100%;
}

.galerie-3 .image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border: 4px solid #ffffff;
    border-radius: 0;
    background: transparent;
}

/* Responsive pour les grilles */
@media (max-width: 768px) {
    .galerie-2,
    .galerie-3 {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .galerie-2,
    .galerie-3 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .galerie-2 .image-wrapper img,
    .galerie-3 .image-wrapper img {
        border: none;
    }
}

/* Bouton retour */
.btn-retour {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.7rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;          /* Arrondi très très léger */
    transition: all 0.3s;
    font-weight: 500;
}

.btn-retour:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fed540;
    border-color: #fed540;
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(45, 45, 45, 99%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: lightboxFadeIn 0.3s ease;
    margin: 0;
    padding: 0;
    border: none;
}

.lightbox img {
    max-width: 97%;
    max-height: 97%;
    object-fit: contain;
    border: 4px solid #ffffff;   /* Bordure blanche épaisse */
    border-radius: 0;            /* Angles droits et nets */
    box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 0.95);
    -webkit-box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 0.95);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 2.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
    font-weight: bold;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.lightbox-close:hover {
    color: #fed540;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    align-items: center;
    z-index: 10000;
}

.lightbox-nav button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.8rem;
    border-radius: 2px;          /* Arrondi très très léger */
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    font-family: Arial, sans-serif;
}

.lightbox-nav button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fed540;
    color: #fed540;
}

.lightbox-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-nav span {
    color: #ffffff;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: center;
    font-family: Arial, sans-serif;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
/* ========================================
   VIDÉOS DANS LES PROJETS
   ======================================== */

.video-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    background: none;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

/* Ajustement pour mobile */
@media (max-width: 600px) {
    .video-wrapper {
        border: none;
    }
    .video-wrapper video {
        max-height: 400px;
    }
}
/* ========================================
   PAGE À PROPOS
   ======================================== */

.a-propos-container {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 2rem;
    margin: 0 5rem;
    margin-top: 2rem;
}

.a-propos-photo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.a-propos-photo img {
    width: 72%;
    max-width: 500px;
    height: auto;
    border-radius: 50%;
    background: transparent;
    display: block;
    border: 11px solid #ffffff;
}
.a-propos-texte {
    max-width: 900px;
    text-align: justify;
    margin: auto;
}
.a-propos-texte h2 {
    color: #ffffff;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.a-propos-texte h2:first-of-type {
    margin-top: 0;
}

.a-propos-texte p {
    line-height: 1.22;
    color: #fffef7;
    margin-bottom: 0.8rem;
}

.a-propos-texte a {
    color: #fed540;
    text-decoration: none;
}

.a-propos-texte a:hover {
    text-decoration: none;
    color: #ffffff;
}

.competences {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.competences li {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 2px;          /* Arrondi très très léger */
    color: #ffffff;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reseaux-sociaux {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    /* background: rgba(255, 255, 255, 0.12); */
    color: #fed540;
    padding: 0.5rem 1.2rem;
    /* border-radius: 2px; */
    text-decoration: none;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    transition: all 0.3s;
    font-weight: 500;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    /* border-color: #fed540; */
    transform: translateY(-8px);
}

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

/* Grand écran -> 4 colonnes */
@media (max-width: 1200px) {
    .grille-projets {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1050px) {
    .a-propos-container {
        grid-template-columns: 300px 1fr;
        gap: 0.5rem;
    }
    
    .a-propos-photo {
        max-width: 360px;
        margin: 0 auto;
    }
}
@media (max-width: 900px) {
    header,
    footer {
        padding: 1rem;      /* Réduire le padding sur petit écran */
    }
    header {
        height: 8.9rem;
    }
    main.page-accueil-main {
        border: none;
        border-top: none;
    }
    /* Supprimer la bordure blanche sur les pages projets et À propos */
    main.bordure-blanche {
        border: none;
    }
    .grille-projets {
        grid-template-columns: repeat(2, 1fr);
    }
    
    main {
        padding: 1.5rem;
    }
    nav {
        gap: 1.3rem;
    }
    nav a {
        max-width: 5rem;
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
    }
    
    .a-propos-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .a-propos-photo {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .a-propos-photo img {
        max-width: 200px;
    }
    
    .projet-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .boutons-partage {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    header,
    footer {
        padding: 0.8rem 0.5rem;  /* Padding réduit */
        border: none;            /* Supprimer toutes les bordures */
    }
    header {
        height: 8rem;
        background-repeat: no-repeat;
    }
    main.page-accueil-main {
        border: none;
        border-top: none;
    }
    /* Supprimer la bordure blanche sur les pages projets et À propos */
    main.bordure-blanche {
        border: none;
    }
    nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    nav a {
        max-width: 4rem;
        font-size: 0.5rem;
        padding: 0.35rem 0.45rem;
    }
    
    .a-propos-container {
        grid-template-columns: 1fr;
        gap: 0rem;
        margin: 0 0.4rem
    }
    .grille-projets {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .projet-card img {
        height: 220px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filtres {
        gap: 0.4rem;
    }
    
    .filtre-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .lightbox img {
        max-width: 95%;
        max-height: 70%;
    }
    
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 2rem;
    }
    
    .lightbox-nav {
        gap: 1rem;
        bottom: 20px;
    }
    
    .lightbox-nav button {
        padding: 0.5rem 1.2rem;
        font-size: 1.2rem;
    }
    
    .lightbox-nav span {
        font-size: 0.9rem;
        min-width: 60px;
    }
    
    .btn-partage {
        width: 36px;
        height: 36px;
    }
}