@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

/* Tes variables restent identiques pour le mode clair */
:root {
    --bg-page: var(--trois);
    /* Fond blanc par défaut */
    --un: #234B5E;
    --deux: #669bbc;
    --trois: #ffffff;
    --quatre: #9d9171;
    --cinq: #fafafa;
    --icon-color: var(--un);
    --transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --animation: slideUp 0.5s forwards;
}

/* LE DARK MODE ====================================================================== */

[data-theme="dark"] {
    --bg-page: #0a0a0a;
    /* Noir profond pour le fond */
    --un: #ffffff;
    /* Le bleu sombre devient blanc pur pour la lisibilité */
    --deux: #669bbc;
    /* On garde ce bleu en accentuation */
    --trois: #111111;
    /* Le blanc pur devient un gris "Monolithe" */
    --quatre: #b5a47a;
    /* Le bronze devient un peu plus lumineux */
    --cinq: #1a1a1a;
    /* Le gris devient un gris anthracite */
}

/* On applique le fond au body */
body {
    background-color: var(--bg-page);
    color: var(--un);
    transition: background-color 0.8s ease, color 0.8s ease;
}

/* Correction pour les sections spécifiques */
[data-theme="dark"] #main2 {
    background-color: var(--bg-page);
}

/* --- LE HEADER --- */
[data-theme="dark"] .site-header {
    background: transparent;
    /* On garde la transparence pour voir le fond noir */
}

/* --- LE DOCK (Barre stable1) --- */
[data-theme="dark"] .stable1 {
    background: rgba(18, 18, 18, 0.8) !important;
    /* On force le sombre */
    border: 1px solid var(--nav-border) !important;
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* --- LES BOUTONS DU DOCK --- */
[data-theme="dark"] .nav {
    background-color: #1a1a1a;
    /* Un gris un peu plus clair que le dock */
    color: #ffffff;
}

[data-theme="dark"] .nav:hover::after {
    color: var(--quatre) !important;
}

[data-theme="dark"] .principale2 {
    background-color: #000000;
}

/* On s'assure que les logos dans les navs restent visibles */
[data-theme="dark"] .nav img,
[data-theme="dark"] .principale2 img {
    filter: invert(0);
    /* On ne les inverse pas s'ils sont déjà clairs */
}

/* --- SECTION CITATIONS (DARK MODE) --- */
[data-theme="dark"] #main3 {
    background-color: #050505;
    /* Noir plus profond que le body */
    border-top: 1px solid rgba(157, 145, 113, 0.1);
}

/* --- FOOTER (DARK MODE) --- */
[data-theme="dark"] footer {
    background-color: #000000;
    border-top: 1px solid var(--quatre);
    /* Ligne de séparation bronze */
}

/* Les champs de saisie du formulaire */
[data-theme="dark"] .input {
    border-bottom: 1px solid rgba(157, 145, 113, 0.3);
    color: var(--trois);
}

[data-theme="dark"] .input:focus {
    border-bottom-color: var(--quatre);
    background: rgba(157, 145, 113, 0.05);
}

[data-theme="dark"] .footer-contact h3 {
    color: var(--quatre);
    text-shadow: 0 0 30px rgba(157, 145, 113, 0.2);
}

/* Les icônes sociales */
[data-theme="dark"] .social-icons a {
    color: var(--quatre);
}

[data-theme="dark"] .social-icons a:hover {
    color: var(--deux);
    filter: drop-shadow(0 0 8px var(--deux));
}

/* Le badge de disponibilité */
[data-theme="dark"] .status-badge {
    background: rgba(157, 145, 113, 0.1);
    border-color: var(--quatre);
}


[data-theme="dark"] #preloader {
    background: var(--bg-page);
}


[data-theme="dark"] #meteo-container,
[data-theme="dark"] #datetime-container {
    color: var(--un);
}

[data-theme="dark"] .meteo-calendrier-container {
    border: 1px solid var(--quatre);
}

/* debut =============================================================================*/


* {
    font-family: 'Poppins', sans-serif;
    /* Applique la police 'Inter' à tout le contenu */
    margin: 0;
    /* Supprime les marges par défaut des éléments */
    padding: 0;
    /* Supprime les espacements par défaut des éléments */
    box-sizing: border-box;
    /* Inclut la bordure et le padding dans la taille totale des éléments */
    scroll-behavior: smooth;
    /* Active le défilement fluide pour une meilleure expérience utilisateur */
}

html,
body {

    width: 100%;
}
/* ============================= */
/* HEADER */
/* ============================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1000;
}

/* ============================= */
/* GROUPE LOGO */
/* ============================= */

.logo-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    padding: 15px;
    cursor: pointer;
}

/* LOGO SVG */
.main-logo {
    width: 68px;
    height: 68px;
    overflow: visible;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.logo-group:hover .main-logo {
    transform: translateY(-2px);
}

/* Couleur logo : adaptatif par défaut (sombre sur blanc, blanc en dark) */
.path-top,
.path-bottom {
    fill: var(--un);
    transition: fill 0.4s ease;
}

/* Doré uniquement sur la page d'accueil (fond vidéo) */
.page-home .path-top,
.page-home .path-bottom {
    fill: var(--quatre);
}

/* Dark mode global */
[data-theme="dark"] .path-top,
[data-theme="dark"] .path-bottom {
    fill: var(--quatre);
}

/* ============================= */
/* ANIMATION SAGE & SUBTILE (HOVER) */
/* ============================= */
/* (handled above in .logo-group:hover .main-logo) */

/* ============================= */
/* Stylisation des sections */
/* ============================= */


.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: var(--un);
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

#main2 {
    background-color: var(--trois);
}


/* ============================= */
/* Stylisation de la barre d'outils fixe en bas */
/* ============================= */


.stable1 {
    position: fixed;
    bottom: 0;
    /* Collé au bord pour un effet barre d'instruments, ou 30px pour flotter */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 25, 41, 0.4);
    /* Plus sombre pour le contraste */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px);
    padding: 6px;
    z-index: 2000;
    display: flex;
    flex-direction: row;
    gap: 5px;
    /* Gap réduit pour un aspect plus compact */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    /* Si collé au bas de l'écran */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    bottom: 20px;
}

.stable {
    bottom: 20px;
    left: 50%;
    /* Effet flou derrière le conteneur */
    z-index: 1000;
    display: flex;
    flex-direction: row;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.principale {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--quatre);
    height: 50px;
    width: 50px;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;

}

.principale img {
    display: flex;
    align-items: center;
    height: 40px;
    /* Hauteur du logo */
}

.principale:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.principale2 {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--trois);
    height: 50px;
    width: 50px;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;

}

.principale2 img {
    display: flex;
    align-items: center;
    height: 30px;
    /* Hauteur du logo */
}

/* Flèche vers le haut */
.principale2.up img {
    transform: rotate(180deg);
}

/* Effet luxe au hover */
.principale2:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.principale2.up:hover img {
    transform: rotate(180deg) scale(1.05);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--un);
    height: 50px;
    width: 50px;
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;

}



.nav img {
    display: flex;
    align-items: center;
    height: 40px;
    /* Hauteur du logo */

}

.nav:hover,
.nav:focus-within {
    width: auto;
    padding: 0 20px;
}


.nav:hover::after,
.nav:focus-within::after {
    content: attr(data-label);
    margin-left: 8px;
    font-size: 0.9em;
    color: var(--trois);
    margin-left: 12px;
}

/* ============================= */
/* BARRE DE RECHERCHE */
/* ============================= */

.search-container {
    display: flex;
    align-items: center;
    max-width: 600px;
    /* Margin : Haut (0), Côtés (auto), Bas (50px) */
    margin: 0 auto 50px auto;
    padding: 2px;
    position: relative;
    background: rgba(157, 145, 113, 0.03);
    backdrop-filter: blur(8px);

    /* Bordure or fantôme très fine */
    border: 1px solid rgba(157, 145, 113, 0.15);
    border-radius: 0;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.search-container:hover,
.search-container:focus-within {
    /* Éclat plus prononcé au survol */
    border-color: var(--quatre);
    background: rgba(157, 145, 113, 0.08);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 15px 20px;
    color: var(--un);
    /* Texte principal pour la lisibilité */
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    width: 100%;
}

.search-input::placeholder {
    /* Or tamisé pour le placeholder */
    color: var(--quatre);
    opacity: 0.3;
}

.search-button {
    background: transparent;
    border: none;
    /* Séparateur utilisant ta variable */
    border-left: 1px solid rgba(157, 145, 113, 0.2);
    color: var(--quatre);
    padding: 15px 25px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.search-button:hover {
    background-color: var(--quatre) !important;
    color: var(--trois) !important;
    /* Fond sombre pour le contraste */
}

/* Ligne d'accentuation dynamique */
.search-container::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    /* Part du centre */
    width: 0%;
    height: 1px;
    background: var(--quatre);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateX(-50%);
}

.search-container:focus-within::after {
    width: 100%;
}

/* Visibilité accrue sur mobile */
@media (max-width: 768px) {
    .search-container {
        max-width: 90%;
        background: rgba(157, 145, 113, 0.05);
        /* Plus d'opacité sur mobile */
    }
}

/* ============================= */
/* Stylisation du titre principal */
/* ============================= */

/* ==========================================================================
   HERO VIDÉO
   ========================================================================== */

.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

/* Vidéo plein écran, recadrée comme un background-cover */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: opacity 1.2s ease;
}

/* Voile sombre multicouche : profondeur + lisibilité */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.28) 40%,
            rgba(0,0,0,0.28) 60%,
            rgba(0,0,0,0.72) 100%);
}

/* Contenu centré */
.hero-identity {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    animation: heroFadeUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(24px);
}

@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Logo */
.hero-logo-wrap {
    margin-bottom: 28px;
}

.hero-logo {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 32px rgba(157, 145, 113, 0.35));
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-logo:hover {
    transform: scale(1.08) rotate(-4deg);
}

/* Séparateur doré */
.hero-divider {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, transparent, rgba(157,145,113,0.7), transparent);
    margin: 0 auto 28px;
}

/* Label discret */
.hero-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(157, 145, 113, 0.85);
    margin-bottom: 18px;
}

/* Nom monumental */
.hero-name {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3.2rem, 9vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

/* Indicateur scroll — ligne qui descend en boucle */
.hero-scroll-hint {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-scroll-line {
    display: block;
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, rgba(157,145,113,0.8), transparent);
    animation: scrollPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    transform-origin: top;
}

@keyframes scrollPulse {
    0%   { transform: scaleY(0); opacity: 0; transform-origin: top; }
    40%  { transform: scaleY(1); opacity: 1; }
    80%  { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
    100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* ── Responsive mobile ── */
@media (max-width: 768px) {
    .hero-video-section {
        height: 100vh;
        height: 100dvh;
        min-height: -webkit-fill-available;
    }
    .hero-logo { width: 54px; height: 54px; }
    .hero-divider { height: 32px; margin-bottom: 20px; }
    .hero-label { font-size: 0.55rem; letter-spacing: 0.28em; }
    .hero-scroll-hint { margin-top: 40px; }
    .hero-scroll-line { height: 38px; }
}

/* ============================= */
/* Stylisation de la barre de progression de défilement */
/* ============================= */


/* Conteneur fixe */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    /* fin et élégant */
    background: transparent;
    z-index: 2000;
}

/* Barre animée */
.scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,
            #7f755a,
            #9d9171,
            #b3a782,
            #9d9171,
            #7f755a);
    transition: width 0.12s ease-out;
}


/* ============================= */
/* Stylisation du footer */
/* ============================= */



footer {
    background-color: var(--un);
    color: var(--trois);
    padding: 70px 8%;
    display: flex;
    flex-direction: column;
}

/* LA GRILLE : 2 colonnes, le formulaire prend plus de place à droite */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
    width: 100%;
}

/* TON DOT DE DISPONIBILITÉ (Conservé tel quel) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--quatre);
    border: 1px solid rgba(157, 145, 113, 0.3);
    padding: 8px 15px;
    margin-bottom: 28px;
    width: fit-content;
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background-color: #50fa7b;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(80, 250, 123, 0.4);
    animation: pulse 2s infinite;
}

.social-block h4 {
    font-size: 0.65rem;
    /* Très petit pour le côté luxe */
    text-transform: uppercase;
    letter-spacing: 5px;
    /* Grand espacement pour la clarté */
    color: var(--quatre);
    /* Ta couleur bronze/dorée */
    margin-bottom: 30px;
    font-weight: 600;

    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.8;
}


.social-icons {
    display: flex;
    flex-direction: row;
    /* Remis en ligne comme tu aimes */
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    /* Taille icône */
    transition: 0.3s ease;
}

.social-icons a:hover {
    color: var(--quatre);
    transform: translateY(-5px);
}

/* FORMULAIRE (Style Galerie de Distortion) */
.footer-contact h3 {
    font-size: 5rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    line-height: 0.8;
    margin-bottom: 40px;
    transform: scaleY(1) scaleX(1) skewY(0deg);
    filter: blur(0px);
    color: var(--quatre);
}

/* L'élément de design : Une grille de coordonnées qui apparaît derrière */
.footer-contact {
    position: relative;
}



.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input {
    width: 100%;
    margin-bottom: 20px;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Style du texte d'aide (Placeholder) */
.input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

/* --- EFFET WOW AU FOCUS --- */
.input:focus {
    border-bottom: 1px solid var(--quatre);
    /* Ta couleur bronze/dorée */
    padding-left: 10px;
    /* Léger décalage vers la droite pour le dynamisme */
}

.input:focus::placeholder {
    opacity: 0.5;
    transform: translateX(10px);
    /* Le texte d'aide se déplace avec le texte */
    color: var(--quatre);
}

.input:hover {
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.btn-submit {
    background: transparent;
    border: 1px solid var(--quatre);
    color: var(--quatre);
    padding: 15px 30px;
    cursor: pointer;
    transition: 0.4s;
    text-decoration: none;
}

.btn-submit:hover {
    background: var(--quatre);
    color: var(--un);
}

/* BAS DE PAGE */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    opacity: 0.5;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(80, 250, 123, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(80, 250, 123, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(80, 250, 123, 0);
    }
}



/* ============================= */
/* Stylisation du chat monolithique */
/* ============================= */

/* Bouton de lancement du chat */
#chat-launcher {
    position: fixed;
    bottom: 15px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3001;
    transition: transform 0.3s ease;
}

#chat-launcher img {
    height: 60px;
}

/* Fenêtre de Chat Monolithique */
#chat-window {
    position: fixed;
    right: 10px;
    bottom: 90px;
    top: auto;
    width: 350px;
    height: 470px;
    background: rgba(10, 25, 41, 0.7);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    z-index: 3000;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

#chat-window.active {
    display: flex;
    animation: var(--animation);
}

/* Animation slide-up pour mobile */
@keyframes chatSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@media (max-width: 768px) {
    #chat-window.active {
        animation: chatSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }
}

/* En-tête */
.chat-header {
    padding: 20px;
    background: var(--un);
    color: var(--trois);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .chat-header {
    background: var(--quatre);
    color: var(--trois);
}

/* Bouton de fermeture */
.close-cross {
    width: 20px;
    /* Zone de clic */
    height: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .close-cross {
    background-color: var(--quatre);
}

.close-cross:hover {
    opacity: 0.6;
}

/* Les deux lignes de la croix */
.close-cross::before,
.close-cross::after {
    content: '';
    position: absolute;
    width: 100%;
    /* Longueur des branches */
    height: 1px;
    /* Finesse extrême */
    background-color: var(--quatre);
    /* Utilise la couleur de tes textes */
}

[data-theme="dark"] .close-cross::before,
[data-theme="dark"] .close-cross::after {
    background-color: var(--trois);
}

/* Rotation pour former le X */
.close-cross::before {
    transform: rotate(45deg);
}

.close-cross::after {
    transform: rotate(-45deg);
}

/* Zone d'affichage */
#chat-display {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    padding: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 85%;
}

.bot {
    background: rgba(255, 255, 255, 0.05);
    color: var(--trois);
    align-self: flex-start;
    border-left: 2px solid var(--quatre);
    /* Accents sable */
}

.user {
    background: var(--quatre);
    color: var(--un);
    align-self: flex-end;
}

[data-theme="dark"] .bot {
    color: var(--un);
}

[data-theme="dark"] .user {
    color: var(--trois);
}

/* Zone d'entrée */
.chat-input-area {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 20px;
    color: white;
    font-family: inherit;
    outline: none;
}

#chat-send {
    background: transparent;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: transform 0.3s;
}

#chat-send:hover {
    transform: scale(1.1);
}

#chat-send img {
    height: 24px;
    width: 24px;
    filter: invert(1);
    /* Icône blanche */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    justify-content: flex-start;
}

.suggest-btn {
    background: rgba(157, 145, 113, 0.1);
    border: 1px solid var(--quatre);
    color: var(--quatre);
    padding: 6px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggest-btn:hover {
    background: var(--quatre);
    color: var(--un);
}

/* Animation des points qui clignotent */
.typing {
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content !important;
}

.typing span {
    width: 6px;
    height: 6px;
    background: var(--quatre);
    display: block;
    animation: typingAnim 1s infinite;
}

.typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnim {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

/* Style de transition pour le Dock lors du highlight */
.nav {
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}


.hermes-bubble {
    position: fixed;
    bottom: 100px;
    /* Positionnée juste au-dessus du launcher */
    right: 30px;
    width: 250px;
    background: rgba(10, 25, 41, 0.85);
    /* Ton fond monolithique */
    backdrop-filter: blur(20px);
    border: 1px solid var(--quatre);
    padding: 15px;
    z-index: 3002;
    display: none;
    /* Piloté par le JS */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.bubble-tag {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--quatre);
    margin-bottom: 5px;
    font-weight: bold;
}

.bubble-text {
    color: white;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 300;
}

.close-bubble {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 22px;
    height: 22px;
    background: var(--un);
    border: 1px solid var(--quatre);
    color: var(--quatre);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.close-bubble:hover {
    background: var(--quatre);
    color: var(--un);
    transform: rotate(90deg);
}

.bubble-arrow {
    position: absolute;
    bottom: -6px;
    right: 25px;
    width: 12px;
    height: 12px;
    background: rgba(10, 25, 41, 0.85);
    border-right: 1px solid var(--quatre);
    border-bottom: 1px solid var(--quatre);
    transform: rotate(45deg);
}







/* ==============  SERVICES  =============
=======================================*/
#mainservices {
    padding: 90px 5%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Titre aligné sur la grille */
.services-header {
    margin-bottom: 40px;
    padding-left: 0;
}

.services-header .title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
}

/* Grille Bento Mathématique */
.services-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 400px);
    /* Hauteur fixe pour éviter les débordements */
    gap: 2px;
    /* Lignes de séparation chirurgicales */
    background: rgba(157, 145, 113, 0.1);
    /* Couleur des joints */
    border: 1px solid rgba(157, 145, 113, 0.1);
}

/* Structure des items */
.bento-item {
    background: var(--cinq);
    /* Fond pur pour éviter la pollution visuelle */
    position: relative;
    overflow: hidden;
    /* Sécurité anti-débordement */
    display: flex;
    flex-direction: column;
    padding: 40px;
    transition: background 0.4s ease;
}

/* Gestion des zones */
.tall {
    grid-row: span 2;
}

.wide {
    grid-column: span 2;
}

/* Contenu forcé à rester dans la boite */
.bento-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
    pointer-events: none;
}

/* Typographie Chirurgicale */
.price {
    font-family: monospace;
    color: var(--quatre);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--quatre);
}

.bento-item h3 {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--un);
}

.bento-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--un);
    opacity: 0.5;
    margin-bottom: auto;
    /* Pousse le reste en bas */
    max-width: 100%;
}

/* --- LISTES ET BOUTONS (Zero débordement) --- */
.features {
    list-style: none;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}

.features li {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    opacity: 0.6;
}

.srvc-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--quatre);
    color: var(--quatre);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    /* Réactive le clic */
}

/* --- INTERACTION "SCANNING LIGHT" --- */
.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(157, 145, 113, 0.05),
            transparent);
    transition: left 0.6s ease;
}

.bento-item:hover::before {
    left: 100%;
}

.bento-item:hover {
    background: rgba(157, 145, 113, 0.03);
    border: 1px solid var(--quatre);
}




/* ============================= */
/* Stylisation de la section Services */
.services-section {
    padding: 0 8%;
    background: var(--trois);
}

.services-grid {
    display: flex;
    gap: 0;
    /* Les colonnes sont collées pour l'effet bloc */
    border: 1px solid rgba(157, 145, 113, 0.352);
}

.service-col {
    flex: 1;
    padding: 44px 36px;
    border-right: 1px solid rgba(157, 145, 113, 0.352);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    background: var(--trois);
}

.service-col:last-child {
    border-right: none;
}

.service-num {
    font-family: monospace;
    color: var(--quatre);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 18px;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 200;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--un);
}

.service-text {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0;
    /* Caché au départ */
    transform: translateY(20px);
    transition: 0.4s;
}

/* L'EFFET WOW : La colonne s'illumine et le texte apparaît */
.service-col:hover {
    background: rgba(157, 145, 113, 0.171);
    flex: 1.5;
    /* La colonne s'élargit */
}

.service-col:hover .service-text {
    opacity: 0.6;
    transform: translateY(0);
}








.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

#form-success {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}














.manifeste {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 70px 10%;
    background: var(--cinq);
    text-align: center;
}

.pillar-num {
    display: block;
    font-family: serif;
    /* Pour le côté académique/classique */
    font-style: italic;
    font-size: 2rem;
    color: var(--quatre);
    margin-bottom: 1rem;
}

.manifeste h3 {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.faq-philosophique {
    padding: 80px 10%;
    background-color: var(--trois);
}

.faq-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-intro {
    margin-bottom: 40px;
}

.faq-list {
    border-top: 1px solid rgba(157, 145, 113, 0.2);
}

.faq-item {
    border-bottom: 1px solid rgba(157, 145, 113, 0.2);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 28px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.faq-num {
    font-family: serif;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--quatre);
    margin-right: 40px;
    width: 30px;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--un);
    flex: 1;
    transition: transform 0.3s ease;
}

/* Le bouton + personnalisé */
.faq-plus {
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-plus::before,
.faq-plus::after {
    content: '';
    position: absolute;
    background-color: var(--quatre);
    transition: transform 0.4s ease;
}

.faq-plus::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.faq-plus::after {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
}

/* Animation quand ouvert */
.faq-item.active .faq-plus::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-question {
    transform: translateX(10px);
    color: var(--quatre);
}

/* Contenu extensible */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-inner {
    padding: 0 0 24px 70px;
}

.faq-inner p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    max-width: 700px;
}

#preloader {
    position: fixed;
    inset: 0;
    background: var(--un);
    /* Ton bleu profond */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.logo-svg-custom {
    width: 280px;
    height: auto;
}

.draw-path {
    /* Le JS va calculer ces valeurs automatiquement */
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;
    animation: drawing 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawing {
    to {
        stroke-dashoffset: 0;
    }
}


/* Sortie fluide */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    transition: all 1s ease-in-out;
}


/*======================*/
/* section interets marquee-container */
/*======================*/
.sc-tech-marquee {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background: transparent;
    border-top: 1px solid rgba(157, 145, 113, 0.15);
    border-bottom: 1px solid rgba(157, 145, 113, 0.15);
    position: relative;
    /* Masque de dégradé pour un effet de fondu sur les bords */
    mask-image: linear-gradient(to right,
            transparent,
            black 15%,
            black 85%,
            transparent);
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            black 15%,
            black 85%,
            transparent);
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 80px;
    /* Espace augmenté pour plus de respiration */
    width: max-content;
    animation: scroll-tech 40s linear infinite;
    will-change: transform;
    /* Optimisation GPU pour la fluidité */
}

/* Pause de l'animation au survol pour permettre l'examen des logos */
.sc-tech-marquee:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content img {
    height: 42px;
    /* Légèrement plus grand */
    width: auto;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backface-visibility: hidden;
}

.marquee-content img:hover {
    filter: grayscale(0) brightness(1.1) opacity(1) drop-shadow(0 0 15px rgba(157, 145, 113, 0.3));
    transform: scale(1.15) translateY(-5px);
}

.dot {
    width: 5px;
    height: 5px;
    background: var(--quatre);
    flex-shrink: 0;
    /* Petite lueur sur les losanges */
}

@keyframes scroll-tech {
    from {
        transform: translateX(0);
    }

    to {
        /* On défile exactement de la moitié du contenu total */
        transform: translateX(-50%);
    }
}

/* Optimisation pour les petits écrans */
@media (max-width: 768px) {
    .marquee-content {
        gap: 50px;
        animation-duration: 30s;
    }

    .marquee-content img {
        height: 30px;
    }
}

[data-theme="dark"] .icon-white {

    /* Rend le logo blanc pour le Dark Mode */

    filter: invert(1) grayscale(1) brightness(2) opacity(0.5) !important;
}

[data-theme="dark"] .icon-white:hover {
    filter: invert(1) grayscale(1) brightness(3) opacity(1) !important;
    transform: scale(1.1);
}



/* ==========================================================================
   SIDEBAR "CYBER-MONOLITHE" — DESIGN AMÉLIORÉ (BLOC UNIQUE)
   ========================================================================== */


.side-nav-tech {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 46px;
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 4001;
    background: var(--trois);
    border: 1px solid rgba(157, 145, 113, 0.3);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* separateur ============*/
.tech-separator {
    width: 25px;
    /* Un peu plus large pour affirmer la structure */
    height: 1px;
    position: relative;
    overflow: hidden;

    /* Fond de base très discret */
    background: rgba(157, 145, 113, 0.1);

    /* L'effet de lumière dynamique */
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(157, 145, 113, 0.4) 50%,
            transparent 100%);

    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Animation au survol de la sidebar : le séparateur "s'allume" */
.side-nav-tech:hover .tech-separator {
    width: 32px;
    opacity: 0.8;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--quatre) 50%,
            transparent 100%);
}

/* Masquage propre en mode Zen */
body.zen-active .tech-separator {
    opacity: 0 !important;
    width: 0;
    transition: all 0.5s ease;
}


/* --- BOUTONS --- */
.tech-item,
.zen-btn {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    background: transparent;
    border: none;
    cursor: pointer;

    color: var(--icon-color);
    transition: color 0.3s ease, transform 0.25s ease;
}

/* Zone gravée */
.tech-item::before,
.zen-btn::before {
    content: '';
    position: absolute;
    inset: 6px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* Signature latérale */
.tech-item::after,
.zen-btn::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom,
            transparent,
            var(--quatre),
            transparent);
    transition: height 0.3s ease;
}

/* --- ICÔNES --- */
.icon-clock,
.icon-theme {
    width: 17px;
    height: 17px;
    stroke-width: 1;
    fill: none;
    stroke: currentColor;
    transition: all 0.3s ease;
    filter:
        drop-shadow(0 0 1px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.12));
}

.zen-btn i {
    font-size: 0.9rem;
    color: currentColor;
    filter:
        drop-shadow(0 0 1px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.12));
}

/* --- HOVER --- */
.tech-item:hover,
.zen-btn:hover {
    transform: translateX(2px);
}

.tech-item:hover::before,
.zen-btn:hover::before {
    opacity: 1;
}

.tech-item:hover::after,
.zen-btn:hover::after {
    height: 80%;
}

.tech-item:hover,
.tech-item:hover *,
.zen-btn:hover,
.zen-btn:hover * {
    color: var(--quatre);
}

/* --- MODE ZEN --- */
body.zen-active .side-nav-tech {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border-right-color: rgba(157, 145, 113, 0.12);
}

body.zen-active .tech-item:not(#zen-mode-toggle),
body.zen-active .lang-btn,
body.zen-active .tech-separator {
    opacity: 0;
    transform: translateX(-8px);
    pointer-events: none;
}

body.zen-active #zen-mode-toggle {
    color: var(--quatre);
    filter: drop-shadow(0 0 10px var(--quatre));
}


/* --- LOGIQUE DARK MODE --- */
.icon-theme {
    position: absolute;
}

.icon-theme.moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.icon-theme.sun {
    opacity: 1;
    color: var(--un);
}

[data-theme="dark"] .icon-theme.sun {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .icon-theme.moon {
    opacity: 1;
    color: var(--quatre);
    transform: rotate(0deg) scale(1);
}


/* ==========================================================================
   PANNEAU MÉTÉO & CALENDRIER
   ========================================================================== */
.meteo-calendrier-container {
    position: fixed;
    left: -100%;
    top: 50%;
    transform: translateY(-50%) rotateY(-10deg);
    transform-origin: left center;
    display: flex;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid var(--un);
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: left 0.8s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.8s cubic-bezier(0.19, 1, 0.22, 1),
        opacity 0.5s ease-out;
}

.meteo-calendrier-container.active {
    left: 48px;
    opacity: 1;
    transform: translateY(-50%) rotateY(0deg);
    pointer-events: auto;
}

.meteo-calendrier-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--quatre), transparent);
    opacity: 0.3;
}

/* --- CONTENEURS INTERNES (STYLE INCHANGÉ) --- */
#meteo-container,
#datetime-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 200px;
    height: 300px;
    color: var(--un);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#meteo-container {
    gap: 10px;
    font-size: 0.95em;
}

#datetime-container {
    gap: 20px;
    text-align: center;
}



#datetime-container #jour {
    font-size: 8.5rem;
    font-weight: 100;
    line-height: 0.7;
    letter-spacing: -10px;
    margin: 0 0 10px -8px;
    color: var(--un);
}

#datetime-container #date {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0;
    color: var(--un);
}

#datetime-container #date::after {
    content: '';
    display: block;
    width: 160px;
    height: 1px;
    margin: 10px 0;
    background: var(--un);

}

[data-theme="dark"] #datetime-container #date::after {
    background: rgba(157, 145, 113, 0.5);
}

#datetime-container #heure {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 300;
    line-height: 1;
    color: var(--un);
}

#datetime-container #semaine {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 4px;
    margin-top: 8px;
    color: var(--un);
}

.weather-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto -30px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

#meteo-container #ville {
    font-size: 0.65rem;
    /* Très petit */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    /* Espacement large pour le luxe */
    margin-bottom: -5px;
    /* Rapproche la ville de la température */
}

#meteo-container #temperature {
    font-size: 3.5rem;
    /* Plus grand mais... */
    font-weight: 100;
    /* ...ultra fin */
    letter-spacing: -3px;
    /* Serré pour l'aspect compact/moderne */
    line-height: 1;
}

#meteo-container #conditions {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

.levercoucher {
    display: flex;
    gap: 15px;
    font-family: 'Space Mono', monospace;
    /* Optionnel : pour le côté data */
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 10px;
}

[data-theme="dark"] #datetime-container #jour,
[data-theme="dark"] #datetime-container #date,
[data-theme="dark"] #datetime-container #heure,
[data-theme="dark"] #datetime-container #semaine,
[data-theme="dark"] #ville,
[data-theme="dark"] #temperature,
[data-theme="dark"] #conditions,
[data-theme="dark"] .levercoucher {
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   MODE ZEN (FOCUS)
   ========================================================================== */

body.zen-active .stable1,
body.zen-active .chat-launcher,
body.zen-active #hermes-bubble,
body.zen-active .scroll-progress,
body.zen-active .tech-separator,
body.zen-active #meteo-calendrier-button,
body.zen-active .lang-btn {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

body.zen-active .side-nav-tech {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body.zen-active #mode-switcher {
    opacity: 0.2;
}

body.zen-active #mode-switcher:hover {
    opacity: 1;
}

body.zen-active .zen-btn {
    color: var(--quatre);
    filter: drop-shadow(0 0 8px var(--quatre));
}







/* GITHUB SELECTION    =============================================
================================================================== */


.github-section {
    background-color: var(--bg-page);
    padding: 80px 5%;
}

.gh-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1000px;
    margin-top: 28px;
}

/* --- LA CARTE STYLE REPO --- */
.gh-card {
    background: var(--trois);
    border: 1px solid rgba(157, 145, 113, 0.2);
    /* Ton bronze mais très léger */
    padding: 24px;
    text-align: left;
    transition: var(--transition);
    position: relative;
}

[data-theme="dark"] .gh-card {
    background: #0d1117;
    /* Le vrai noir bleuté de GitHub Dark */
    border-color: #30363d;
}

.gh-card:hover {
    border-color: var(--quatre);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.gh-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.gh-icon {
    fill: var(--un);
    opacity: 0.6;
}

.gh-repo-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--deux);
    /* Ton bleu d'accentuation */
    text-decoration: none;
}

.gh-repo-name:hover {
    text-decoration: underline;
}

.gh-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border: 1px solid rgba(157, 145, 113, 0.3);
    border-radius: 20px;
    color: var(--un);
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
}

.gh-repo-desc {
    font-size: 0.85rem;
    color: var(--un);
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 20px;
    height: 45px;
    overflow: hidden;
}

.gh-card-footer {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--un);
    opacity: 0.6;
}

.gh-lang {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.gh-stat {
    font-family: 'JetBrains Mono', monospace;
}

/* --- LIEN GLOBAL --- */
.gh-global-link {
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--un);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 24px;
    background: var(--cinq);
    border: 1px solid rgba(157, 145, 113, 0.2);
    transition: var(--transition);
}

.gh-global-link:hover {
    background: var(--quatre);
    color: white;
}














/* ==========================================================================
   RESPONSIVE MOBILE — style.css
   ========================================================================== */

@media (max-width: 1024px) {

    /* Sidebar : cachée à gauche, révélée par swipe */
    .side-nav-tech {
        position: fixed;
        top: 50% !important;
        left: -46px !important;
        transform: translateY(-50%) !important;
        transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
        z-index: 4001;
        touch-action: none;
    }

    .side-nav-tech.sidebar-open {
        left: 0 !important;
    }

    /* Indicateur swipe : languette visible sur le bord gauche */
    .sidebar-hint {
        position: fixed;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        z-index: 4000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: 14px;
        padding: 14px 3px;
        background: var(--quatre);
        cursor: pointer;
        transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
        box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    }

    /* Trois petits traits comme une poignée */
    .sidebar-hint span {
        display: block;
        width: 5px;
        height: 1px;
        background: var(--trois);
        border-radius: 1px;
        opacity: 0.9;
    }

    /* Flèche chevron pointant à droite */
    .sidebar-hint::after {
        content: '›';
        color: var(--trois);
        font-size: 14px;
        line-height: 1;
        margin-top: 4px;
        font-weight: 300;
    }

    /* Quand la sidebar est ouverte, la languette disparaît */
    .side-nav-tech.sidebar-open ~ .sidebar-hint,
    .sidebar-hint.hidden {
        left: -14px;
        opacity: 0;
        pointer-events: none;
    }

    /* ── PANNEAU MÉTÉO MOBILE — colonne unique, slide depuis sidebar ── */
    .meteo-calendrier-container {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        left: -260px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        transition: left 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
        opacity: 1 !important;
        pointer-events: none;
        z-index: 3999;

        width: 210px;
        max-width: calc(100vw - 66px);
        overflow: hidden;

        background: rgba(10, 10, 10, 0.92) !important;
        backdrop-filter: blur(20px) saturate(130%) !important;
        border: 1px solid rgba(157, 145, 113, 0.35) !important;
        border-left: none !important;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.55);
    }

    .meteo-calendrier-container.active {
        left: 46px !important;
        pointer-events: auto;
        z-index: 4002;
    }

    /* Bloc date/heure */
    .meteo-calendrier-container #datetime-container {
        width: 100% !important;
        height: auto !important;
        min-height: 0;
        padding: 18px 16px 14px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        border-bottom: 1px solid rgba(157, 145, 113, 0.18);
    }

    .meteo-calendrier-container #datetime-container #jour {
        font-size: 4.5rem !important;
        letter-spacing: -4px !important;
        line-height: 0.8 !important;
        margin: 0 0 6px -4px !important;
        color: var(--quatre) !important;
    }

    .meteo-calendrier-container #datetime-container #date {
        font-size: 0.52rem !important;
        letter-spacing: 3px !important;
        color: rgba(255,255,255,0.75) !important;
        text-align: center;
    }

    .meteo-calendrier-container #datetime-container #date::after {
        width: 120px !important;
        margin: 7px auto !important;
        background: rgba(157, 145, 113, 0.4) !important;
    }

    .meteo-calendrier-container #datetime-container #heure {
        font-size: 1.25rem !important;
        letter-spacing: 1px !important;
        color: rgba(255,255,255,0.9) !important;
    }

    .meteo-calendrier-container #datetime-container #semaine {
        font-size: 0.58rem !important;
        letter-spacing: 3px !important;
        color: rgba(255,255,255,0.55) !important;
        margin-top: 2px !important;
    }

    /* Bloc météo */
    .meteo-calendrier-container #meteo-container {
        width: 100% !important;
        height: auto !important;
        min-height: 0;
        padding: 14px 16px 18px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .meteo-calendrier-container #meteo-container #ville {
        font-size: 0.55rem !important;
        letter-spacing: 3px !important;
        color: var(--quatre) !important;
        text-align: center;
    }

    .meteo-calendrier-container .weather-icon {
        width: 64px !important;
        height: 64px !important;
        margin: 0 auto -10px !important;
    }

    .meteo-calendrier-container #meteo-container #temperature {
        font-size: 2.6rem !important;
        letter-spacing: -2px !important;
        color: rgba(255,255,255,0.95) !important;
        line-height: 1;
    }

    .meteo-calendrier-container #meteo-container #conditions {
        font-size: 0.52rem !important;
        letter-spacing: 1.5px !important;
        color: rgba(255,255,255,0.55) !important;
        text-align: center;
    }

    .meteo-calendrier-container .levercoucher {
        gap: 10px !important;
        font-size: 0.58rem !important;
        color: rgba(255,255,255,0.5) !important;
        margin-top: 5px !important;
    }

    /* Dark mode : override les couleurs bleues du thème sombre */
    [data-theme="dark"] .meteo-calendrier-container #datetime-container #jour,
    [data-theme="dark"] .meteo-calendrier-container #datetime-container #date,
    [data-theme="dark"] .meteo-calendrier-container #datetime-container #heure,
    [data-theme="dark"] .meteo-calendrier-container #datetime-container #semaine,
    [data-theme="dark"] .meteo-calendrier-container #ville,
    [data-theme="dark"] .meteo-calendrier-container #temperature,
    [data-theme="dark"] .meteo-calendrier-container #conditions,
    [data-theme="dark"] .meteo-calendrier-container .levercoucher {
        color: inherit !important;
    }

    .services-bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .tall { grid-row: span 1; }
    .wide { grid-column: span 2; }

    .services-section { padding: 0 6%; }
    .services-grid { flex-direction: column; }
    .service-col { border-right: none; border-bottom: 1px solid rgba(157,145,113,0.352); flex: 1 !important; }
    .service-col:last-child { border-bottom: none; }
    .service-text { opacity: 0.6; transform: translateY(0); }

    .manifeste { grid-template-columns: repeat(2, 1fr); padding: 60px 6%; gap: 2.5rem; }

    footer { padding: 60px 6%; }
    .footer-grid { grid-template-columns: 1fr; gap: 50px; margin-bottom: 40px; }

    .github-section { padding: 60px 6%; }
    .gh-bento-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {

    /* Sections génériques : pas de hauteur forcée sur mobile */
    .section { min-height: auto; height: auto; padding: 20px 5%; }

    /* Header */
    .site-header { height: 70px; padding: 0 5%; }
    .main-logo { width: 56px; height: 56px; }
    .logo-group::before { inset: 8px; }
    .brand-name { font-size: 11px; letter-spacing: 0.3em; }

    /* Dock pleine largeur collé en bas */
    .stable1 {
        left: 0 !important; right: 0 !important;
        bottom: 0 !important; transform: none !important;
        width: 100% !important;
        border-radius: 0;
        border-left: none; border-right: none; border-bottom: none;
        border-top: 1px solid rgba(157, 145, 113, 0.15);
        justify-content: space-around;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom);
        gap: 0;
    }
    /* Le wrapper .stable distribue les navs */
    .stable {
        display: flex;
        flex-direction: row;
        flex: 3;
        gap: 0;
    }
    /* 5 cases égales, sans border-radius */
    .nav, .principale, .principale2 {
        height: 54px;
        width: auto;
        flex: 1;
        border-radius: 0;
        flex-shrink: 0;
        border-right: 1px solid rgba(157, 145, 113, 0.08);
    }
    .principale { border-right: 1px solid rgba(157, 145, 113, 0.08); }
    .principale2 { border-right: none; }
    .nav img, .principale img { height: 26px; }
    .principale2 img { height: 20px; }
    /* Pas de label, pas de tooltip sur mobile */
    .nav:hover, .nav:focus-within { width: auto; padding: 0; }
    .nav:hover::after, .nav:focus-within::after { content: none; }
    .nav::before { display: none; }
    .nav { flex-direction: row; padding: 0; gap: 0; }

    .scroll-progress { height: 3px; }

    /* Hero : plein écran sur mobile */
    #main1 {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        padding: 0;
        justify-content: center;
    }

    /* Intro */

    /* Marquee */
    .sc-tech-marquee { padding: 40px 0; border-top: 1px solid rgba(157,145,113,0.3); border-bottom: 1px solid rgba(157,145,113,0.3); }
    .marquee-content { gap: 55px; animation-duration: 22s; }
    .marquee-content img { height: 46px; }

    /* Services bento 1 col */
    #mainservices { padding: 60px 5%; }
    .services-bento { grid-template-columns: 1fr; }
    .wide { grid-column: span 1; }
    .bento-item { padding: 28px 18px; }

    .services-section { padding: 0 5%; }
    .service-col { padding: 35px 16px; }

    .manifeste { grid-template-columns: 1fr; padding: 50px 5%; gap: 2rem; }

    /* FAQ */
    .faq-philosophique { padding: 50px 5%; }
    .faq-trigger { padding: 22px 0; }
    .faq-num { margin-right: 20px; }
    .faq-question { font-size: 0.95rem; }
    .faq-inner { padding: 0 0 18px 48px; }
    .faq-inner p { font-size: 0.95rem; }

    /* Footer */
    footer { padding: 44px 5%; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 30px; }
    .footer-contact h3 { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: 24px; }
    .input-group { grid-template-columns: 1fr; }
    .input-group-phone { flex-direction: column !important; gap: 0 !important; }
    .input-group-phone .input { flex: 1 1 auto !important; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; font-size: 0.7rem; }

    /* Chat launcher - above dock */
    #chat-launcher {
        bottom: calc(64px + env(safe-area-inset-bottom)) !important;
        right: 14px !important;
    }
    #chat-launcher img { height: 52px; }

    /* Chat : panneau pleine largeur, hauteur fixe calculée sans clavier */
    #chat-window {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: calc(64px + env(safe-area-inset-bottom)) !important;
        width: 100% !important;
        max-width: 100% !important;
        /* Hauteur fixe : pas de 100vh pour éviter le resize clavier */
        height: 420px !important;
        max-height: 60vh !important;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
        border-bottom: none !important;
    }
    .chat-header { padding: 14px 16px; font-size: 0.65rem; letter-spacing: 1.5px; }
    #chat-display { padding: 12px 14px; gap: 8px; }
    .msg { font-size: 0.8rem; padding: 9px 11px; }
    .suggestion-container { gap: 5px; padding: 0 14px 8px; }
    .suggest-btn { padding: 5px 10px; font-size: 0.63rem; }
    /* Input : readonly until tap, évite ouverture clavier auto */
    #chat-input { padding: 14px 16px; font-size: 0.85rem; }
    #chat-send { padding: 0 14px; }
    #chat-send img { height: 20px; width: 20px; }

    /* Bulle Hermès */
    .hermes-bubble {
        right: 10px !important;
        bottom: calc(130px + env(safe-area-inset-bottom)) !important;
        width: min(270px, calc(100vw - 20px));
    }

    /* Github */
    .github-section { padding: 50px 5%; }
    .gh-bento-grid { gap: 12px; }
    .gh-global-link { margin-top: 26px; }

    .search-container { max-width: 92%; }
}

@media (max-width: 480px) {
    .nav, .principale, .principale2 { height: 50px; border-radius: 0; }
    .nav img, .principale img { height: 22px; }
    .principale2 img { height: 18px; }
    .footer-contact h3 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
    .bento-item { padding: 22px 13px; }
    .faq-inner { padding: 0 0 20px 42px; }
    .marquee-content { gap: 42px; }
    .marquee-content img { height: 40px; }

    .meteo-calendrier-container {
        width: 185px !important;
        max-width: calc(100vw - 56px) !important;
    }
    .meteo-calendrier-container #datetime-container #jour {
        font-size: 3.8rem !important;
    }
    .meteo-calendrier-container #meteo-container #temperature {
        font-size: 2.2rem !important;
    }
}