/* ============================================
   COMÈTE - Modern CSS Override
   Photo-oriented landing page design
   ============================================ */

/* Import Font Awesome */
@import url('fontawesome-all.min.css');

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --accent: #00d9ff;
    --accent-warm: #667eea;
    --bleu-comete: #4B5FA8;
    --bleu-profond: #2D3E7D;
    --bleu-ciel: #6BA5D6; 
    --off-white: #f5f5f5;
    --gray: #a0a0a0;
    --dark: #0a0a0a;
    --dark-surface: #121212;
    --border: rgba(255, 255, 255, 0.1);
    --overlay-delay: 1.7s;
    --overlay-dur: 0.7s;
}

body {
  background-color: rgb(10, 15, 30);
  color: var(--off-white, #f5f5f5);
}

html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;}

/* Remove bullets from all lists globally, but not for icons */
ul li:not(.icon):not(:has(.icon))::before {
    content: none !important;
}

ul {
    list-style: none !important;
}

/* Icon styles for Font Awesome */
.icon {
    text-decoration: none;
    border-bottom: none;
    position: relative;
}

.icon:before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    text-transform: none !important;
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
}

.icon > .label {
    display: none;
}

.icon:before {
    line-height: inherit;
}

.icon.solid:before {
    font-weight: 900;
}

.icon.brands:before {
    font-family: 'Font Awesome 5 Brands';
}

/* ============================================
   INTRO ANIMATION (FULL CSS - NO JS)
   ============================================ */

/* 1. Blocage visuel immédiat : fond noir total dès le chargement */
#page-wrapper.is-animating #banner {
    background-color: #000 !important;
}

/* 2. Cache le contenu du site pendant que le logo "voyage" */
#page-wrapper.is-animating {
    opacity: 0;
    animation: content-reveal 0.5s ease-in 1.5s forwards; /* Apparition après 2.5s */
}

/* 3. L'overlay qui gère le décor (étoiles et comètes) */
#banner { position: relative; }
#banner > .intro-overlay {
    overflow: hidden;
    position: absolute;
    inset: 0;
    height: 100%; /* couvre toute la bannière */
    background: #000;
    z-index: 11;
    pointer-events: none;
    animation: overlay-vanish var(--overlay-dur, 2.8s) cubic-bezier(.2,.9,.2,1) var(--overlay-delay, 0.9s) forwards;
}

/* Fallback si .intro-overlay reste en dehors de #banner */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 11;
    pointer-events: none;
    animation: overlay-vanish 0.8s ease-in 1.5s forwards;
}

/* Étoiles scintillantes */
.intro-star-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--d) ease-in-out infinite;
}

/* Pluie d'étoiles filantes (traits bleus) */
.intro-comet {
    position: absolute;
    width: 4px;  /* ← Plus large */
    height: var(--h, 150px);  /* ← Utilise la variable du HTML */
    /* Dégradé aligné avec la diagonale -45deg */
    background: linear-gradient(135deg,  /* ← Direction opposée à la trajectoire */
        transparent 0%, 
        var(--accent) 60%, 
        #fff 100%  /* ← Blanc pur */
    );
    transform: rotate(-45deg);  /* ← Garde la rotation de base */
    opacity: 0;
    animation: meteor-flow var(--v, 2s) linear var(--del, 0s) 1;
    /* Glow comme dans la démo */
    filter: drop-shadow(0 0 4px var(--accent));
    pointer-events: none;
}

/* 4. Animation du LOGO (Le favicon qui traverse l'écran) */
.logo img {
    opacity: 0;
    animation: main-comet-landing 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 11; /* Doit être au-dessus de l'overlay noir */
    position: relative;
}

/* 5. Animation du TITRE (Apparition smooth) */
.intro-animate-title {
    display: block !important;
    opacity: 0; /* Commence invisible */
    visibility: visible !important;
    position: relative;
    z-index: 11 !important; 
    animation: title-reveal-smooth 0.5s ease-out 1.0s forwards !important;
}

/* --- LOGIQUE DES KEYFRAMES --- */

@keyframes meteor-flow {
    0% {transform: translate(-100px, -100px) rotate(-45deg); opacity: 0;}
    20% {opacity: 1;}
    100% {transform: translate(100vw, 100vh) rotate(-45deg); opacity: 0;}
}

@keyframes main-comet-landing {
    0% {
        transform: translate(-100vw, -100vh) scale(0.2) rotate(-45deg);
        filter: drop-shadow(0 0 40px #00d9ff) blur(5px);
        opacity: 0;
    }
    15% { opacity: 1; }
    95% {
        transform: translate(0, 2.5vh) scale(2) rotate(0deg);
        filter: drop-shadow(0 0 20px #00d9ff) blur(0);
    }
    100% {
        transform: translate(0, 2.5vh) scale(1.8) rotate(0deg);
        filter: none;
        opacity: 1;
    }
}

@keyframes title-reveal-smooth {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes overlay-vanish {
    to { opacity: 0; visibility: hidden; }
}

@keyframes content-reveal {
    to { opacity: 1; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Animation de reveal boutons */
@keyframes scan-reveal {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes scan-line {
    0% { left: -110%; }
    100% { left: 110%; }
}

/* ============================================
   BANNER (Hero Section) : Size of logo on mobile to change
   ============================================ */

#banner {
    min-height: 100dvh;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(10,10,10,0.9) 100%), 
                      url('/static/vitrine/images/pic01.jpg') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
}

#banner .inner {
    text-align: center;
    position: relative;
    max-width: 900px;
}

#banner .logo {
    margin-bottom: 5rem !important;
}

#banner .logo img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 30px var(--accent));
}

#banner h2 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(4rem, 8vw, 6rem) !important;
    font-weight: 300 !important;
    line-height: 1.1;
    margin-bottom: 2rem !important;
    letter-spacing: 0.02em;
    color: var(--off-white) !important;
}

#banner p {
    font-size: clamp(1.1rem, 2vw, 1.4rem) !important;
    color: var(--gray) !important;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Buttons */

#banner .button {
    padding: 0.8rem 2rem !important;
    background: transparent !important;
    border: none !important;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Intranet button - Cyan gradient */

#banner .actions.special {
    display: flex !important;
    gap: 0.75rem !important;
    justify-content: center;
    flex-wrap: wrap;
}

/* Style Ghost Minimaliste - SEULEMENT pour .button.primary */
#banner .button.primary:not(.cta-main) {
    position: relative;
    overflow: hidden;
    opacity: 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(107, 165, 214, 0.35) !important;
    color: rgba(107, 165, 214, 0.9) !important;
    transition: all 0.3s ease !important;
    z-index: 11;
    display: inline-block;
    animation: scan-reveal 0.25s ease-out forwards;
    padding: 0.75rem 1.8rem !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.18em !important;
}

#banner .button.primary:not(.cta-main)::after {
    content: '';
    position: absolute;
    top: 0;
    left: -110%; 
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: scan-line 0.35s ease-out forwards;
    background: linear-gradient(90deg, transparent, rgba(107, 165, 214, 0.6), transparent);
}

#banner .button.primary:not(.cta-main)::before {
    display: none;
}

/* Délais d'animation pour Intranet */
#banner .button.primary:not(.cta-main):not(#extshow) {
    animation-delay: 0.1s;
}

#banner .button.primary:not(.cta-main):not(#extshow)::after {
    animation-delay: 0.1s;
}

/* Délais d'animation pour Accès Extés */
#banner .button.primary#extshow {
    animation-delay: 0.25s;
}

#banner .button.primary#extshow::after {
    animation-delay: 0.25s;
}

/* Hover pour les boutons secondaires */
#banner .button.primary:not(.cta-main):hover {
    background: rgba(107, 165, 214, 0.1) !important;
    border-color: var(--bleu-ciel) !important;
    color: var(--bleu-ciel) !important;
    transform: translateY(-1px);
}

/* CTA Principal - Fond bleu profond sobre */

#banner .inner > .cta-main {
    /* Use inline-block + parent text-align:center so horizontal padding applies visually */
    display: inline-block;
    max-width: 400px;
    margin: 2rem auto 0; /* top and center via auto horizontal on block fallback */
    padding: 0.95rem 2.8rem !important;
    background: rgba(45, 62, 125, 0.6) !important;
    border: 1px solid rgba(107, 165, 214, 0.6) !important;
    color: #fff !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.25em !important;
    width: auto; /* allow padding to expand horizontally */
    backdrop-filter: blur(10px);
    z-index: 11;
    animation: scan-reveal 0.25s ease-out forwards;
    animation-delay: 0.4s;
    position: relative;
    opacity: 0;
}

/* Double bordure au hover */
#banner .button.primary.cta-main::before {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1px solid rgba(107, 165, 214, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: block !important;
}

#banner .button.primary.cta-main::after {
    /* Flash line similar to other primary buttons */
    content: '';
    position: absolute;
    top: 0;
    left: -110%;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(107, 165, 214, 0.6), transparent);
    animation: scan-line 0.35s ease-out forwards;
    animation-delay: 0.4s;
}

#banner .button.primary.cta-main:hover::before {
    opacity: 1;
}

#banner .button.primary.cta-main:hover {
    background: rgba(45, 62, 125, 0.75) !important;
    border-color: var(--bleu-ciel) !important;
    box-shadow: 0 8px 28px rgba(45, 62, 125, 0.3);
    transform: translateY(-2px);
}

/* Token input styling */
/* Token input styling - harmonisé avec la charte bleu */
#extinput {
    display: none;
    box-sizing: border-box;
    min-width: 200px;
    max-width: 420px;
    width: auto;
    padding: 0.75rem 1.2rem;
    background: rgba(45, 62, 125, 0.15);
    border: 1px solid rgba(107, 165, 214, 0.3);
    border-radius: 2px;
    color: var(--off-white);
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
    caret-color: var(--bleu-ciel);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-left: 0.75rem;
}

/* Placeholder discret */
#extinput::placeholder {
    color: rgba(107, 165, 214, 0.5);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Focus avec bordure bleu ciel */
#extinput:focus {
    display: inline-flex;
    outline: none;
    border-color: var(--bleu-ciel);
    box-shadow: 0 4px 16px rgba(107, 165, 214, 0.2);
    transform: translateY(-1px);
    background: rgba(45, 62, 125, 0.25);
}

/* Bouton Valider - même style que les boutons secondaires */
#extaction {
    padding: 0.75rem 1.8rem !important;
    background: transparent !important;
    border: 1px solid rgba(107, 165, 214, 0.35) !important;
    color: rgba(107, 165, 214, 0.9) !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-left: 0.75rem;
    display: none;
}

#extaction:hover {
    background: rgba(107, 165, 214, 0.1) !important;
    border-color: var(--bleu-ciel) !important;
    color: var(--bleu-ciel) !important;
    transform: translateY(-1px);
}

/* Scroll indicator */
#banner .more {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--off-white) !important;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
}

#banner .more::after {
    content: '↓';
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

#banner .more:hover {
    color: var(--bleu-ciel) !important;
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */

.language-selector {
    position: fixed;
    top: 0.4rem;
    right: 2rem;
    z-index: 11;
    opacity: 0;
    transform: translateY(-10px);
    animation: slide-fade-in 0.6s ease-out 1.8s forwards;
}

.language-button {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.6rem 1.2rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.language-button:hover {
    border-color: var(--bleu-ciel) !important;
    color: var(--bleu-ciel) !important;
    transform: translateY(-1px);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    gap: 0;
    min-width: 80px;
}

.language-selector.open .language-menu {
    display: flex;
}

.language-option {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 0.8rem 1.2rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.language-option:last-child {
    border-bottom: none !important;
}

.language-option:hover {
    background: rgba(45, 62, 125, 0.3) !important;
    color: var(--bleu-comete) !important;
}

@keyframes slide-fade-in {
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* ============================================
    HEADER (Original)
    ============================================ */

#header {
		transition: background-color 0.2s ease;
		background: linear-gradient(to right, rgba(10, 15, 30, 0.95), rgba(15, 25, 45, 0.95));
 	    border-bottom: 1px solid rgba(15, 25, 45, 0.5);
 	    height: 3em;
		left: 0;
		line-height: 3em;
		position: fixed;
		top: 0;
		width: 100%;
		z-index: 10;
	}

#header h1 {
    transition: opacity 0.2s ease;
    height: inherit;
    left: 2rem;
    line-height: inherit;
    position: absolute;
    top: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

#header h1 a {
    color: var(--off-white, #f5f5f5);
    text-decoration: none;
    border: 0;
    display: flex;
    align-items: center;
    height: inherit;
    line-height: inherit;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.3rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

#header h1 a:hover {
    color: var(--accent, #00d9ff);
}

@media screen and (max-width: 736px) {

    #header h1 {
        left: 1rem;
    }

    #header h1 a {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

}

#header nav {
    height: inherit;
    line-height: inherit;
    position: absolute;
    right: 7rem;
    top: 0;
    transition: opacity 0.2s ease;
}

#header nav > ul {
margin: 0;
padding: 0;
white-space: nowrap;
display: flex;
align-items: center;
gap: 1rem;
}

#header nav > ul > li {
display: inline-block;
padding: 0;
margin: 0;
}

#header nav > ul > li > a {
    border: 0;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    font-size: 0.75em;
    letter-spacing: 0.15em;
    padding: 0;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

#header nav > ul > li > a:hover {
    color: var(--bleu-ciel, #00d9ff);
}

@media screen and (max-width: 1100px) {
    #header nav > ul {
        gap: 0.6rem;
    }

    #header nav > ul > li > a {
        font-size: 0.72em;
    }
}

@media screen and (max-width: 1000px) {
    #header nav {
        right: 6rem;
    }

    #header nav > ul {
        gap: 0.4rem;
    }

    #header nav > ul > li > a {
        padding: 0 0.6em;
        font-size: 0.68em;
    }
}

@media screen and (max-width: 750px) {
    #header {
        display: none;
    }
}

/* ============================================
   MOBILE NAVIGATION (Hamburger Menu)
   ============================================ */

.navPanelToggle {
    display: none;
    position: fixed;
    top: 0.5rem;
    left: 1rem;
    z-index: 10001;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: transparent;
}

.navPanelToggle .bar {
    width: 28px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navPanelToggle:hover .bar {
    background: var(--bleu-ciel, #00d9ff);
}

@media screen and (max-width: 750px) {
    .navPanelToggle {
        display: flex;
    }
}

/* Hide hamburger when lightbox is active */
.lightbox.active ~ .navPanelToggle,
body:has(.lightbox.active) .navPanelToggle {
    display: none !important;
}

/* Navigation Panel */
#navPanel {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 15, 30, 0.98), rgba(5, 10, 25, 0.98));
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

#navPanel.visible {
    left: 0;
}

#navPanel nav {
    padding: 4rem 1.5rem 2rem;
}

#navPanel nav a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

#navPanel nav a:hover {
    color: var(--bleu-ciel, #00d9ff);
    padding-left: 0.5rem;
}

#navPanel nav a:last-child {
    border-bottom: none;
}

/* Overlay pour fermer le menu */
.navPanel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navPanel-overlay.visible {
    display: block;
    opacity: 1;
}

#header.alt {
    background: transparent;
    border-bottom: 1px solid transparent;
}

#header.alt h1 {
    pointer-events: none;
    opacity: 0;
}

#header.alt nav {
    pointer-events: none;
    opacity: 0;
}

/* ============================================
   SECTION TWO (Presentation)
   ============================================ */

#two {
    background: var(--dark) !important;
    padding: 0 !important;
}

#two .spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 100vh;
    align-items: center;
}

#two .spotlight .image {
    height: 100%;
    overflow: hidden;
    position: relative;
}

#two .spotlight .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: all 0.6s ease;
}

#two .spotlight:hover .image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

#two .spotlight .content {
    padding: 8rem 5% !important;
    background: var(--dark);
}

#two .spotlight h2 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 300 !important;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    color: var(--off-white) !important;
}

#two .spotlight p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray) !important;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* ============================================
    Clients
   ============================================ */

#clients {
    padding: 8rem 5% !important;
    background: var(--dark-surface) !important;
}

#clients .major h2 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 300 !important;
    margin-bottom: 4rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#clients img {
    transition: all 0.4s ease;
    filter: grayscale(50%) opacity(0.7);
}

#clients img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* ============================================
   SECTION CTA (Contact)
   ============================================ */

#cta {
    background: var(--dark-surface) !important;
    padding: 8rem 5% !important;
}

#cta h2 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 300 !important;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#cta p {
    font-size: 1.2rem;
    color: var(--gray) !important;
    margin-bottom: 3rem;
}

/* Form styling */
#cta form {
    max-width: 800px;
    margin: 0 auto;
}

#cta .fields {
    display: grid;
    gap: 2rem;
}

#cta .field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#cta label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

#cta input[type="text"],
#cta input[type="email"],
#cta textarea {
    padding: 1rem 1.5rem;
    background: var(--dark) !important;
    border: 2px solid var(--border) !important;
    border-radius: 0 !important;
    color: var(--off-white) !important;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif !important;
    transition: all 0.3s ease;
}

#cta input[type="text"]:focus,
#cta input[type="email"]:focus,
#cta textarea:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

#cta textarea {
    min-height: 150px;
    resize: vertical;
}

#cta input[type="submit"] {
    padding: 1.2rem 3rem !important;
    background: linear-gradient(135deg, var(--accent) 0%, #667eea 100%) !important;
    border: 2px solid var(--accent) !important;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    cursor: pointer;
    border-radius: 0 !important;
}

#cta input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4) !important;
}

/* ============================================
   FOOTER
   ============================================ */

#footer {
    padding: 4rem 5% !important;
    background: var(--dark) !important;
    border-top: 1px solid var(--border);
}

#footer .icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.25em;
}

#footer .icons a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer .icons a:hover {
    color: #fff;
}

#footer .copyright {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

#footer .copyright li {
    color: var(--gray);
    font-size: 0.9rem;
}

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

@media (max-width: 1024px) {
    .top-nav-links {
        gap: 1.5rem;
    }
    
    .top-nav-links a {
        font-size: 0.75rem;
    }
    
    #two .spotlight {
        grid-template-columns: 1fr;
    }
    
    #two .spotlight .image {
        min-height: 50vh;
    }
}

@media (max-width: 768px) {
    #banner .logo {
    margin-bottom: 3.2rem;
  }

    #banner h2 {
        margin-top: 1rem;
    }

    .top-nav-banner {
        padding: 1rem 5%;
    }
    
    .top-nav-links {
        gap: 1rem;
    }
    
    .top-nav-links a {
        font-size: 0.7rem;
    }
    
    #banner {
        background-attachment: scroll;
    }
    
    #banner .actions.special {
        display: flex;
        gap: 0.75 rem;
        justify-content: center;
        align-items: stretch;
        flex-wrap: wrap;
        position: relative;
        z-index: 12;
        list-style: none !important; 
        padding: 0 !important;      
    }

    #banner .actions.special li {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        max-width: 420px;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    #banner .button {
        width: 100%;
        text-align: center;
    }
    
    #two .spotlight .image {
        min-height: 40vh;
    }
    
    #footer .copyright {
        flex-direction: column;
        text-align: center;
    }

    #extinput {
        min-width: 0;
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    #banner .button.primary.cta-main {
        width: 50% !important;
        max-width: 300px !important;
        padding: 0.85rem 1.5rem !important;
        font-size: 0.8rem !important;
        letter-spacing: 0.2em !important;
        margin-top: 1.5rem !important;
    }
    
    /* Input garde sa largeur */
    #extinput {
        min-width: 0;
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    /* Bouton Valider - plus petit et mieux proportionné */
    #extaction {
        width: auto !important;
        min-width: 120px !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.75rem !important;
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
        justify-content: center;
        display: none;
    }
    
    /* Cache le bouton "Voir nos réalisations" et la flèche sur mobile */
    #banner .more {
        display: none !important;
    }
}

/* ============================================
   SMOOTH SCROLL OFFSET (Fix for anchor links)
   ============================================ */

section {
    scroll-margin-top: 80px;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Hide preload animations */
.is-preload * {
    animation: none !important;
    transition: none !important;
}

/* Hide stars during preload, show after */
.is-preload #organigramme::before {
    opacity: 0 !important;
}

#organigramme::before {
    opacity: 0;
    transition: opacity 0.6s ease 1.8s;
}

body:not(.is-preload) #organigramme::before {
    opacity: 0.5;
}

/* ============================================
   NOSCRIPT - Disable all animations
   ============================================ */

/* To be used in <noscript> tag */
.no-js * {
    animation: none !important;
    transition: none !important;
}

.no-js #banner .more::after {
    animation: none !important;
}

.no-js .top-nav-banner {
    transform: translateY(0) !important;
}

.no-js section {
    opacity: 1 !important;
    transform: none !important;
}

.no-js .intro-overlay {
    display: none !important;
}
/* ============================================
   ORGANIGRAMME - COMÈTE (Style Pro)
   ============================================ */

#organigramme {
    background: rgb(10, 15, 30);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

#organigramme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(0.5px 0.5px at 10% 20%, rgba(255,255,255,0.15), transparent),
        radial-gradient(0.5px 0.5px at 30% 40%, rgba(255,255,255,0.1), transparent),
        radial-gradient(0.75px 0.75px at 50% 10%, rgba(255,255,255,0.18), transparent),
        radial-gradient(0.5px 0.5px at 70% 60%, rgba(255,255,255,0.12), transparent),
        radial-gradient(0.5px 0.5px at 90% 30%, rgba(255,255,255,0.1), transparent),
        radial-gradient(0.75px 0.75px at 20% 80%, rgba(255,255,255,0.15), transparent),
        radial-gradient(0.5px 0.5px at 60% 90%, rgba(255,255,255,0.1), transparent),
        radial-gradient(0.5px 0.5px at 85% 85%, rgba(255,255,255,0.12), transparent),
        radial-gradient(0.5px 0.5px at 15% 50%, rgba(255,255,255,0.08), transparent),
        radial-gradient(0.5px 0.5px at 45% 25%, rgba(255,255,255,0.1), transparent),
        radial-gradient(0.75px 0.75px at 75% 45%, rgba(255,255,255,0.14), transparent),
        radial-gradient(0.5px 0.5px at 35% 70%, rgba(255,255,255,0.09), transparent),
        radial-gradient(0.5px 0.5px at 65% 15%, rgba(255,255,255,0.11), transparent),
        radial-gradient(0.5px 0.5px at 25% 35%, rgba(255,255,255,0.1), transparent),
        radial-gradient(0.75px 0.75px at 55% 65%, rgba(255,255,255,0.13), transparent),
        radial-gradient(0.5px 0.5px at 80% 75%, rgba(255,255,255,0.09), transparent);
    pointer-events: none;
}

.organigramme-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.organigramme-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.organigramme-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 300;
    color: white;
    letter-spacing: 0.15em;
    margin: 0;
    text-transform: uppercase;
}

.organigramme-year {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
    margin-left: 1rem;
}

/* Bureau principal - 4 colonnes centrées */
.organigramme-bureau {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.organigramme-bureau .membre {
    flex: 0 0 calc((100% - 7.5rem) / 4);
    max-width: calc((100% - 7.5rem) / 4);
}

/* Membres - 6 par ligne */
.organigramme-membres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.organigramme-membres .membre {
    flex: 0 0 calc((100% - 10rem) / 6);
    max-width: calc((100% - 10rem) / 6);
}

.organigramme-membres-bas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.organigramme-membres-bas .membre {
    flex: 0 0 calc((100% - 10rem) / 6);
    max-width: calc((100% - 10rem) / 6);
}

.membre {
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.membre:hover {
    transform: translateY(-5px);
}

.membre-photo {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 0 0 1px rgba(0, 217, 255, 0.0),
        0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    object-position: center;
    display: block;
}

.membre:hover .membre-photo {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 
        0 0 0 1px rgba(0, 217, 255, 0.3),
        0 0 25px rgba(0, 217, 255, 0.15),
        0 8px 30px rgba(0, 0, 0, 0.4);
}

.bureau-principal .membre-photo {
    width: 110px;
    height: 110px;
    margin-bottom: 1.2rem;
}

.membre-role {
    font-family: 'Outfit', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.membre-nom {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: white;
    letter-spacing: 0.05em;
}

.membre-responsabilites {
    font-family: 'Outfit', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .organigramme-membres .membre {
        flex: 0 0 calc((100% - 6rem) / 4);
        max-width: calc((100% - 6rem) / 4);
    }
    
    .organigramme-membres-bas .membre {
        flex: 0 0 calc((100% - 6rem) / 4);
        max-width: calc((100% - 6rem) / 4);
    }
}

@media screen and (max-width: 900px) {
    .organigramme-bureau .membre {
        flex: 0 0 calc((100% - 2.5rem) / 2);
        max-width: calc((100% - 2.5rem) / 2);
    }
    
    .organigramme-membres .membre {
        flex: 0 0 calc((100% - 4rem) / 3);
        max-width: calc((100% - 4rem) / 3);
    }
    
    .organigramme-membres-bas .membre {
        flex: 0 0 calc((100% - 4rem) / 3);
        max-width: calc((100% - 4rem) / 3);
    }
    
    .organigramme-title {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
    }
    
    .organigramme-year {
        font-size: 0.85rem;
        margin-left: 0.5rem;
    }
}

@media screen and (max-width: 600px) {
    #organigramme {
        padding: 3rem 1rem;
    }
    
    .organigramme-header {
        margin-bottom: 3rem;
        padding-bottom: 1.5rem;
    }
    
    .organigramme-title {
        font-size: 1.2rem;
        letter-spacing: 0.1em;
    }
    
    .organigramme-year {
        font-size: 0.75rem;
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .organigramme-bureau {
        gap: 2rem;
    }
    
    .organigramme-bureau .membre {
        flex: 0 0 calc((100% - 2rem) / 2);
        max-width: calc((100% - 2rem) / 2);
    }
    
    .organigramme-membres {
        gap: 1.5rem;
    }
    
    .organigramme-membres .membre {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
    }
    
    .organigramme-membres-bas {
        gap: 1.5rem;
    }
    
    .organigramme-membres-bas .membre {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
    }
    
    .membre-photo {
        width: 75px;
        height: 75px;
    }
    
    .bureau-principal .membre-photo {
        width: 90px;
        height: 90px;
    }
    
    .membre-nom {
        font-size: 0.75rem;
    }
    
    .membre-role {
        font-size: 0.55rem;
    }
    
    .membre-responsabilites {
        font-size: 0.6rem;
    }
}
/* ============================================
   PORTFOLIO SECTION
   ============================================ */

#one {
    background: linear-gradient(0deg, #184e65 0%, #0a0f1e 100%);
    padding: 4rem 0;
    position: static;
    overflow: hidden;
}

#one .inner {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 3rem;
}

#one .major {
    text-align: center;
    margin-bottom: 2.5rem;
}

#one .major h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--off-white);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

#one .major p {
    font-size: 1.1rem;
    color: var(--gray);
}

/* Portfolio Tabs */
.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(107, 165, 214, 0.35);
    color: var(--off-white);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tab-button:hover {
    border-bottom-color: var(--bleu-ciel);
    transform: translateY(-2px);
}

.tab-button.active {
    border-bottom-color: var(--bleu-ciel);
}

/* Portfolio Grid - Masonry Layout */
.grid {
    display: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    position: relative;
    width: 100%;
}

.grid.active {
    display: block;
}

.grid.active.visible {
    opacity: 1;
}

.grid-sizer,
.grid-item { 
    width: 23.5%; /* 4 columns */
}

.gutter-sizer {
    width: 2%;
}

.grid-item {
    position: relative;
    float: left;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2%;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(24, 78, 101, 0.4);
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 1280px) {
    #one .inner {
        padding: 0 2rem;
    }
}

@media (max-width: 1024px) {
    .grid-sizer,
    .grid-item { width: 32%; }  /* 3 colonnes */
}

@media (max-width: 768px) {
    #one .inner {
        padding: 0 1.5rem;
    }
    
    .grid-sizer,
    .grid-item { width: 49%; }  /* 2 colonnes */
}

@media (max-width: 480px) {
    #one .inner {
        padding: 0 1rem;
    }
    
    .grid-sizer,
    .grid-item { width: 100%; }  /* 1 colonne */
    
    .gutter-sizer {
        width: 0;
    }
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(24, 78, 101, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    color: var(--off-white);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.play-icon {
    font-size: 3rem;
    color: var(--off-white);
    margin-top: 1rem;
    opacity: 0.9;
}

/* Video Item Specific */
.video-item .portfolio-overlay {
    background: linear-gradient(to top, rgba(24, 78, 101, 0.95) 0%, rgba(10, 15, 30, 0.7) 100%);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    will-change: transform;
}

.lightbox-caption {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--off-white);
    font-size: 1.2rem;
    padding: 1rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    z-index: 10001;
    /* Size constraints for SVG images */
    width: 48px;
    height: 48px;
    object-fit: contain;
    /* Hover effect */
    opacity: 0.9;
    /* Improve visibility */
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
}

.lightbox-close {
    width: 25px;
    height: 25px;
}

.lightbox-prev,
.lightbox-next {
    width: 35px;
    height: 35px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
    transform: scale(1.15);
}

.lightbox-close {
    top: 20px;
    right: 40px;
}

.lightbox-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.15);
}

.lightbox-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.15);
}

/* Responsive Design */
@media screen and (max-width: 980px) {    
    #one .major h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    #one {
        padding: 3rem 0;
    }
    
    #one .major h2 {
        font-size: 1.6rem;
    }
    
    .portfolio-tabs {
        gap: 0.5rem;
    }
    
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 24px;
        height: 24px;
    }
}