/* ============================================== */
/* ========== VARIABLES ET COULEURS ========== */
/* ============================================== */
/* Définition des variables CSS réutilisables partout dans le site */

/* poppins-300 - 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: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/poppins-v24-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/poppins-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-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: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('assets/fonts/outfit-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-700 - 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: 'Outfit';
  font-style: normal;
  font-weight: 700;
  src: url('assets/fonts/outfit-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    /* Couleurs principales du site */
    --background: #fafafa;     /* Gris clair pour le fond général */
    --background-secondary: #2f2f2f;    /* Gris foncé (header/footer) */

    --color-light-section: #f3f3f3;        /* Gris clair - fond sections */
    --color-dark-section: #d0d0d0; /* Couleur sections alternées (plus foncé) */

    --color-black : #000000;    /* Noir pur pour les textes principaux */
    --color-gray: #7f7f7f;     /* Gris moyen pour les textes secondaires */
    --color-white: #ffffff;    /* Blanc pur pour les textes secondaires et éléments clairs */
    --color-primary: #15056a;      /* Bleu foncé principal */
    --color-accent: #ff9a00;       /* Orange - couleur d'accent */
    --color-danger: #ff3b3b;       /* Rouge - état danger */
    --color-close: #ff6b6b;       /* Rouge clair pour les boutons de fermeture */
    --color-blue: #007bff;        /* Bleu pour les liens et accents secondaires */
    

    /* Gradients - utilisés pour les boutons et accents */
    --gradient-primary: linear-gradient(135deg, var(--color-accent) 0%, var(--color-danger) 100%);
    
    /* Espacements standardisés */
    --spacing-sm: 8px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-bn: 60px 
    
    /* Rayons de bordure pour arrondir les coins */
    --radius-sm: 2px;
    --radius-md: 20px;
    --radius-lg: 10px;
    --radius-full: 50%;
    
    /* Ombres pour les éléments */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================== */
/* ========== ÉLÉMENTS PRINCIPAUX =========== */
/* ============================================== */
/* Styles de base pour body, header, main, footer */

body {
    margin: 0;
    line-height: 1.6;
    font-family: 'Outfit', sans-serif;
    background: var(--background);
}

header {
    width: 100%;
    gap: 8vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--background-secondary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

}

main {
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--background);
}

footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 0.75fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    padding-left: 50px;
    background: var(--background-secondary);
    min-height: auto;
}

/* ============================================== */
/* ========== ÉLÉMENTS TEXTE =============== */
/* ============================================== */
/* Styles pour les textes et typographie */

section {
    /* Sections avec espacement normal (Desktop) */
    margin-bottom: 40px;
    padding: var(--spacing-lg);
    background: var(--color-light-section);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    transition: 0.5s;
}

#intro {
    margin-top: 5vh;
}

#intro-without-img, #menu {
    margin-top: 16vh;
}

h1 {
    font-size: 2.6em;
    margin: 0 0 var(--spacing-md) 0;
    font-family: 'Outfit', sans-serif;
}

h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--color-primary);
}

h3 {
    color: inherit;
    font-size: 1.2em;
}

a {
    text-decoration: none;
}

p {
    font-size: 1.05em;
    font-family: 'Poppins';
}

i {
    color: #7f7f7f;
}

h1, h3, h4, p, a, li, label, input {
    color: var(--color-black);
}

footer h3,
footer p {
    color: #ffffff;
}

/* ============================================== */
/* ========== BARRE DE NAVIGATION ========== */
/* ============================================== */
/* Header navigation - fixed en haut du site */

.banner-nav {
    position: fixed;
    top: 0;
    display: flex;
    gap: 8vw;
    padding: 15px 50px;
    width: 100%;
    height: 60px;
    background: var(--background-secondary);
    z-index: 11;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.banner-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4em;
    letter-spacing: 0.4px;
    position: relative;
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    width: 90px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}


.menu-icon {
    width: 50px;
    height: 50px;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: flex-start;
}

.menu {
    z-index: 12;
    margin: 0; 
    width: 100%; 
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
}

.menu-nav {
    height: 75%;
    gap: 10vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
}

.menu-nav a {
    color: var(--color-gray);
    font-size: 1.4em;
    font-weight:bolder;
    transition: 0.2s;
    text-decoration: underline;
} 

/* ============================================== */
/* ========== IMAGE D'ACCUEIL ============== */
/* ============================================== */
/* Banner image au top de la page */

.banner-img {
    margin-top: 80px;
    width: 100%;
    height: auto;
}

#hero-img {
    visibility: hidden;
}

#loader {
    width: 80px;
    height: 80px;
    border: 20px solid var(--color-dark-section);
    border-top: 20px solid #333;
    border-radius: 50%;
    position: absolute;
    top: 35vw;
    left: calc(50% - 40px);
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}

.img-theme {
    z-index: 10;
    position: fixed;
    top: 110px;
    right: 20px;
    height: 50px;
    cursor: pointer;
}

/* ============================================== */
/* ========== TITRES ET LOGOS ============== */
/* ============================================== */
/* Section titles avec logos à côté */

.title-container {
    display: grid;
    grid-template-columns: 35% 45% 20%;
}

.title-container img {
    justify-self: center;
    align-self: center;
}

.like-container {
    display: flex;
    align-items: center;
    display: flex;
    gap: 10px; 
}

/* ============================================== */
/* ========== SECTIONS INTERACTIVES ======== */
/* ============================================== */
/* Liens cliquables sur les sections */

.section-link {
    inset: 0;
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

/* ============================================== */
/* ========== CARTES DE PROJETS =========== */
/* ============================================== */
/* Cartes affichant les projets - minimalistes */

.project-image {
    width: 100%;
    max-height: 300px;
}

.projects-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.file-container {
    background-color: var(--color-white); 
    padding: 20px; 
    border-radius: 20px;
    border: solid 3px var(--color-gray);
}

.message {
    padding: 5px 15px;
    border-radius: 10px;
    border-left: solid 5px;
}

.message p {
    margin: 0;
    padding: 0;
}

.user-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row;
}

.status-dot {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    background: #8a8a8a;
    border: 2px solid #3e3e3e;
}

/* Carte projet - style minimaliste */
.card-link {
    background: var(--color-white);
    border-radius: 0;
    padding: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    border-left:solid;
    border-color: var(--color-primary);
    border-width: 4px;
}

/* Paragraphes dans les cartes visibles (Desktop) */
.card-link p {
    padding-top: 10px;
    font-size: 0.75em;
    font-weight: 00;
    margin: 0;
}

.card-link h4 {
    margin: 0 0 var(--spacing-sm) 0;
}

/* ============================================== */
/* ========== DÉTAILS DE PROJETS ========== */
/* ============================================== */
/* Page de détail pour chaque projet */

.project-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.project-detail-image {
    width: 100%;
    height: auto;
    display: block;
    align-self: center;
}

/* ============================================== */
/* ========== BOUTONS ==================== */
/* ============================================== */
/* Boutons call-to-action avec gradient */

.btn-play,
.btn-service {
    display: inline-block;
    padding: 14px 30px;
    background: var(--gradient-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

/* Effet hover sur les boutons */

.btn-service {
    margin-top: 10px;
}

.btn-sponsors {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-download {
    display: flex;
    align-items: center;
    padding: 9px 18px;
}

.like-btn {
    margin-left: 20px;
    height: 30px;
    cursor: pointer;
}

.buttons-container {
    display: grid; 
    gap: 15px;
}
.buttons-container button {
    height: 80px;
}

#ski-buttons {
    grid-template-columns: 1fr 1fr 1fr;
}

/* ============================================== */
/* ========== MODALE DU JEU ============== */
/* ============================================== */
/* Fenêtre modale pour afficher les jeux */

.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Active pour afficher la modale */
.game-modal.active {
    display: flex;
}

.game-window {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 80%;
    max-width: 900px;
    height: 80%;
    max-height: 700px;
    overflow: hidden;
}

/* En-tête de la modale du jeu */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background-color: var(--color-white);
    border-bottom: 1px solid #ddd;
}

.game-header h2 {
    margin: 0;
    font-size: 1.5em;
}

/* Bouton fermer la modale */
#closeGameBtn {
    background-color: var(--color-close);
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    font-weight: bold;
}

/* Contenu du jeu dans la modale */
.game-content {
    width: 100%;
    height: calc(100% - 60px);
    background-color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ============================================== */
/* ========== FORMULAIRE DE SERVICES ===== */
/* ============================================== */
/* Styles pour tous les formulaires du site */

.service-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Labels des formulaires */
.service-form label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.05em;
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* Inputs, selects, textareas - styles de base */
.service-form input,
.service-form select,
.service-form textarea {
    padding: var(--spacing-md);
    border: 2px solid var(--color-dark-section);
    border-radius: var(--radius-md);
    font-size: 1em;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
    background: var(--background);
}

/* Focus state - quand l'utilisateur clique dans le champ */
.service-form input:focus,
.service-form select:focus,
.service-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-white);
    box-shadow: 0 0 8px rgba(255, 154, 0, 0.2);
}

/* Textarea - zone de texte multiligne */
.service-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Select - dropdown personnalisé */
.service-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2315056a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* ============================================== */
/* ========== FOOTER =============== */
/* ============================================== */
/* Pied de page du site */

.contact-list {
    list-style: none;
    color: #ffffff;
    padding: 0;
}

.contact-list a {
    color: aqua;
    transition: 0.2s;
}

.profil {
    border-radius: 10%;
    width: 60%;
    justify-self: center;
    align-self: center;
    transition: 0.5s;
}

/* ============================================== */
/* ========== ONGLETS DE SOUMISSION ======= */
/* ============================================== */
/* Tabs pour choisir entre fichier et code */

.submission-tabs {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

/* Bouton d'onglet */
.tab-button {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--background);
    border: 2px solid var(--color-dark-section);
    border-radius: var(--radius-md);
    font-size: 1em;
    font-weight: 600;
    color: var(--color-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

/* Onglet actif/sélectionné */
.tab-button.active {
    background: var(--gradient-primary);
    color: var(--color-white);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

/* Conteneur des onglets */
.tabs-content {
    display: flex;
    flex-direction: column;
}

/* Contenu d'un onglet - masqué par défaut */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

/* Contenu d'onglet actif - visible */
.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

@media(hover: hover) {

    section:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

    #intro:hover, #intro-without-img:hover {
        transform: translateY(0);
        box-shadow: var(--shadow-sm);
        transition: 0.5s;
    }

    .menu-icon:hover {
        transform: scale(1.1);
        transition: 0.3s;
    }

    .section-link:hover {
        cursor: pointer;
    }

    .card-link:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-md);
    }

    .btn-play:hover,
    .btn-service:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(255, 154, 0, 0.4);
    }

    #closeGameBtn:hover {
        background-color: #ff5252;
        transform: scale(1.1);
    }

    .contact-list a:hover {
        color: var(--color-accent);
        text-decoration: underline;
    }

    .profil:hover {
        transform: translateY(-5px);
        opacity: 0.25;
    }

    .tab-button:hover {
        border-color: var(--color-accent);
        background: #fff9f0;
    }

}

/* Animation de transition des onglets */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================== */
/* ========== RESPONSIVE (Tablettes & Mobiles) ======= */
/* ============================================== */
/* Media queries pour adapter le site à tous les écrans */

/* === TABLETTES ET ÉCRANS MOYENS (768px et moins) === */
/* Adaptation pour tablettes et écrans moyens */
@media (max-width: 768px) {
    /* Ajuster les variables d'espacement pour plus compact */
    :root {
        --spacing-lg: 15px;
        --spacing-xl: 20px;
    }

    /* Header et barre de navigation */
    header {
        height: auto;
        flex-wrap: wrap;
        gap: 0;
        position: relative;
        z-index: 10;
    }

    /* Espacement du banner */

    /* Navigation - adaptée pour tablette */
    .banner-nav {
        width: 100%;
        gap: 0;
        padding: 10px 0;
        justify-content: space-around;
    }

    .banner-nav a {
        font-size: 1.1em;
        padding: 0;
        flex: 1;
        text-align: center;
    }

    #loader {
        top: 45vw;
        left: calc(50% - 30px);
        width: 40px;
        height: 40px;
        border: 10px solid var(--color-dark-section);
        border-top: 10px solid #333;
    }

    .img-theme {
        top: 90px;
        right: 10px;
        height: 45px;
    }

    /* Contenu principal */
    main {
        padding: 0;
        max-width: 100%;
    }

    /* Sections mobile - collées, alternance de couleur, full-width */
    section {
        margin: 0;
        padding: var(--spacing-md);
        background: var(--color-light);
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Alternance de couleur mobile */
    section:nth-child(even) {
        background: var(--color-dark-section);
    }

    #intro {
        margin-top: 0;
    }

    #intro-without-img {
        margin-top: 7vh;
    }

    /* Titres */
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }

    /* Projects container */
    .projects-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Cartes mobile - style carré sans descriptions */
    .card-link {
        padding: 12px;
    }

    .card-link h4 {
        font-size: 1.1em;
        margin: 0 0 10px 0;
    }

    /* Masquer les descriptions sur mobile */
    .card-link p {
        display: none;
    }

    .project-image {
        width: 100%;
        object-fit: cover;
        /* Pas de border-radius sur tablette */
        border-radius: 0;
    }

    /* Détails de projet - adapté tablette */
    .project-detail-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .project-detail-image {
        object-fit: cover;
    }

    /* Sections de projet avec espacement minimal */
    #projet-detail {
        margin-top: 15px !important;
    }

    .like-container {
        margin: 15px 0;
    }

    h1 {
        margin: var(--spacing-md) 0;
    }

    /* Boutons - full width sur tablette */
    .btn-play,
    .btn-service {
        margin: 5px 0;
        padding: 12px 20px;
        font-size: 1em;
        width: 100%;
    }

    #ski-buttons {
        grid-template-columns: 1fr;
    }

    #ski-buttons button{
        height: 60px;
    }

    body#jeu-de-ski #launchGameBtn {
        display: none;
    }

    #noMobile {
        display: none;    
    }

    /* Flex containers - responsive */
    div[style*="display: flex"] {
        flex-wrap: wrap;
        gap: 10px !important;
    }

    div[style*="display: flex"] > button,
    div[style*="display: flex"] > a {
        flex: 1 1 100%;
        min-width: 100%;
    }

    div[style*="display: flex"] > a > button {
        width: 100%;
    }

    /* Formulaires - adapté tablette */
    .service-form {
        padding: var(--spacing-md);
    }

    /* Inputs, selects, textareas - taille augmentée pour tactile */
    .service-form input,
    .service-form select,
    .service-form textarea {
        padding: 12px;
        font-size: 16px;  /* 16px pour éviter le zoom automatique */
    }

    /* Onglets */
    .submission-tabs {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .tab-button {
        width: 100%;
        padding: 12px var(--spacing-md);
        font-size: 0.9em;
    }

    /* Modal du jeu */
    .game-window {
        width: 95%;
        height: 85vh;
        max-height: none;
    }


    /* Footer responsive sur tablette - 2 colonnes */
    footer {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-lg);
        padding-left: var(--spacing-lg);
    }

    footer div {
        display: flex;
        flex-direction: column;
    }

    .profil {
        width: 100%;
        max-width: 160px;
        margin: var(--spacing-md) auto 0 auto;
    }
}

/* === PETITS TÉLÉPHONES (480px et moins) === */
/* Adaptations pour smartphones */
@media (max-width: 480px) {
    /* Variables d'espacement réduites pour mobile */
    :root {
        --spacing-md: 12px;
        --spacing-lg: 12px;
        --spacing-xl: 15px;
    }

    /* Header mobile */
    header {
        gap: 0;
    }

    /* Navigation mobile */
    .banner-nav {
        display: flex;
        align-items: center;
        justify-content: start;
        gap: 0;
        padding: 0;
        padding-left: 10px;
        height: 60px;
    }

    .banner-nav a {
        display: none;
    }

    .banner-nav a.active::after {
        height: 3px;
        width: 60%;
    }

    .menu-icon {
        display: flex;
    }

    .banner-img{
        margin-top: 60px;
    }

    .img-theme {
        top: 70px;
        height: 40px;
    }

    /* Main */
    main {
        padding: 0;
        max-width: 100%;
    }

    /* Titres */
    h1 {
        font-size: 1.5em;
        margin: 0 0 10px 0;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1em;
    }

    p {
        font-size: 0.95em;
        margin: 8px 0;
    }

    /* Sections mobile - collées, alternance de couleur, full-width */
    section {
        margin: 0;
        padding: var(--spacing-md);
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Alternance de couleur mobile */
    section:nth-child(even) {
        background: var(--color-dark-section);
    }

    /* Banner */
    .banner {
        padding-top: 0;
        margin-top: 50px;
    }

    /* Project image - taille optimisée */
    /* Images de projets - compactes sur mobile */
    .project-image {
        width: 100%;
        object-fit: cover;
        border-radius: 0;  /* Pas de border-radius */
    }

    /* Cartes de projets minimales */
    .card-link {
        padding: 10px;
    }

    .card-link h4 {
        font-size: 1em;
        margin: 0 0 8px 0;
    }

    /* Masquer les descriptions mobile */
    .card-link p {
        display: none !important;
    }

    /* Sections de détail de projet mobile */
    #projet-detail {
        margin-top: 8px !important;
    }

    .project-detail-image {
        width: 100%;
        object-fit: cover;
        border-radius: 0;
    }



    /* Boutons mobile - full width */
    .btn-play,
    .btn-service {
        padding: 10px 15px;
        font-size: 0.9em;
        width: 100%;
    }

    /* Flex containers mobile - column */
    div[style*="display: flex"] {
        gap: 10px !important;
    }

    div[style*="display: flex"] > button,
    div[style*="display: flex"] > a {
        flex: 1 1 auto;
        min-width: 0;
    }

    div[style*="display: flex"] > button {
        width: 100%;
        box-sizing: border-box;
    }

    div[style*="display: flex"] > a {
        display: flex;
    }

    div[style*="display: flex"] > a > button {
        width: 100%;
        flex: 1;
        box-sizing: border-box;
    }

    /* Forms */
    .service-form {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }

    .service-form label {
        font-size: 0.95em;
        margin-bottom: var(--spacing-sm);
    }

    .service-form input,
    .service-form select,
    .service-form textarea {
        padding: 10px;
        font-size: 16px;
    }

    /* Tabs */
    .submission-tabs {
        gap: var(--spacing-sm);
    }

    .tab-button {
        padding: 10px var(--spacing-md);
        font-size: 0.85em;
    }

    /* Game modal */
    .game-window {
        width: 98%;
        height: 80vh;
    }

    .game-header h2 {
        font-size: 1.2em;
    }

    .close-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    /* Project detail */
    /* Conteneur détails de projet - single column */
    .project-detail-container {
        gap: var(--spacing-md);
    }

    .project-detail-image {
        width: 100%;
        object-fit: cover;
        border-radius: 0;  /* Pas de border-radius */
    }

    /* Sections de projet très compactes */
    #projet-detail {
        margin-top: 10px !important;
        padding: var(--spacing-md);
    }

    h1 {
        font-size: 1.5em;
        margin: var(--spacing-sm) 0;
    }

    /* Titres et logos très compacts */
    .title-container {
        grid-template-columns: 40% 30% 30%;
    }

    /* Footer mobile - single column */
    footer {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
        height: auto;
    }

    footer h3 {
        font-size: 1em;
        margin: 0 0 8px 0;
    }

    footer p {
        font-size: 0.9em;
        margin: 0;
    }

    .btn-service {
        margin-top: 20px;
    }

/* ============================================== */
/* ========== CONTENEURS FLEX DE BOUTONS ===== */
/* ============================================== */
/* Styles pour les flex containers contenant des boutons */

div[style*="display: flex"] > button,
div[style*="display: flex"] > a > button {
    flex: 1;
}

    .contact-list {
        font-size: 0.9em;
    }
}

/* === TRÈS PETITS ÉCRANS (< 360px) === */
/* Adaptations pour les très petits téléphones */
@media (max-width: 360px) {
    /* Titres très réduits */
    h1 {
        font-size: 1.3em;
    }

    h2 {
        font-size: 1.1em;
    }

    /* Navigation ultra compacte */

    .img-theme {
        height: 35px;
        right: 10px;
    }

    /* Boutons ultra réduits */
    .btn-play,
    .btn-service {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    /* Grid single column */
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .project-detail-container {
        grid-template-columns: 1fr;
    }
    
    /* Modale adaptée très petits écrans */
    .game-window {
        width: 95%;
        height: 90%;
    }

    /* Boutons en flex - full width */
    [style*="display: flex"] button,
    [style*="display: flex"] a {
        width: 100%;
    }
}

/* === ÉCRANS ULTRA PETITS (320px et moins) === */
/* Adaptations extrêmes pour les plus petits appareils */
@media (max-width: 320px) {
    .banner {
        padding-top: 0;
        margin-top: 0;
    }

    #projet-detail {
        margin-top: 5px !important;
    }

    h1 {
        font-size: 1.2em;
    }
}

/* ============================================== */
/* ========== OPTIMISATIONS TACTILES ===== */
/* ============================================== */
/* Optimisations pour les appareils tactiles (touch-friendly) */
/* Assure des zones cliquables minimales de 44x44px */

@media (hover: none) and (pointer: coarse) {
    /* Tous les boutons et liens: min 44x44px */


    button,
    a,
    input[type="button"],
    input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Espacement amélioré pour les éléments interactifs */
    .btn-play,
    .btn-service,
    .card-link,
    .tab-button {
        padding: 16px 20px;
    }

    /* Formulaires tactiles - touches plus grandes */
    .service-form input,
    .service-form select,
    .service-form textarea {
        min-height: 44px;
        padding: 12px;
        font-size: 16px;  /* Évite le zoom automatique */
    }

    /* Navigation tactile - espacement optimal */

    /* Listes - espacement tactile */
    .contact-list li {
        margin-bottom: 12px;
    }
}

/* ============================================== */
/* ========== IMAGES & TEXTE RESPONSIVE ===== */
/* ============================================== */

/* Images responsive - s'adaptent à la largeur */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* FIN DU CSS */
/* ============== Le site est maintenant entièrement responsif et optimisé! ============== */