/* #region VARIABLES ET CONFIGURATION GLOBALE */

@font-face {
    font-family: 'Exo 2';
    src: url('/assets/Exo2-VariableFont_wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
:root {
    --bg: #071827;
    --bg2: #0c2238;
    --cyan: #46d9ff;
    --text: #f2f8ff;
    --muted: #9db6ca;
    --title-font: 'Exo 2', sans-serif;
    --normal-font: system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    --peel-size: 50px;
    --peel-open-size: 170px;
}

html{
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--normal-font);
    background-color: #ffffff;
    color: #071827;
    line-height: 1.6;
}
/* #endregion VARIABLES ET CONFIGURATION GLOBALE*/

/* #region LOGIQUE DES WRAPPERS (Gestion des largeurs maximales et centrage) */

/* Structure de base des grandes sections de la page */
section{
    width: 100%;
    padding: 90px 0;
    position: relative;
    box-sizing: border-box;
    z-index: 1;
    background-color: white;
}

/* Wrapper standard : Bloqué à 1000px (Idéal pour le confort de lecture du texte) */
.wrapper-standard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Wrapper large : Bloqué à 1200px (Idéal pour donner de l'espace aux grilles) */
.wrapper-large {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}
/* #endregion LOGIQUE DES WRAPPERS (Gestion des largeurs maximales et centrage) */

/* #region Style des textes */
a, a:visited{
    text-decoration: none;
    display: inline-block;
    color: currentColor;
}
h2 {
    font-family: var(--title-font);
    font-size: 32px;
    font-weight: 700;
    color: #071827;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 8px;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--cyan);
}

/* Style des textes généraux - Uniquement dans les sections de contenu (Exclut le Hero) */
section:not(.hero) div {
    font-size: 1.2rem;
    color: #0c2238;
    margin-bottom: 20px;
}
/* #endregion Style des textes */
/* #region boutons */
button {
    position: relative;
    display: inline-block;
    background-color: #071827;
    color: #ffffff;
    border: 2px solid white;
    padding: 12px 28px 12px 70px;
    font-family: var(--normal-font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-top: 50px;
    height: 50px;
    transform: translateX(57px);
}
button::before{
    content: "";
    position: absolute;
    left: -57px;
    top: 50%;
    transform: translateY(-50%);
    height: 88px;
    width: 113px;
    border: 2px solid var(--cyan);

}
button:hover, 
button:focus-visible {
    padding-left: 90px;
}
/* #endregion boutons */

/* #region HERO ANIME */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg2), var(--bg));
    padding: 0;
    contain: paint; /* Empêche tout calcul ou débordement interne de geler le rendu du reste de la page */
}

@keyframes fadeInContent {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(65deg, rgba(70,217,255,0.1) 0%, rgba(70,217,255,0.03) 3%, rgba(70,217,255,0.08) 8%, rgba(70,217,255,.05) 18%, rgba(70,217,255,0.02) 20%, rgba(70,217,255,.05) 25%, rgba(70,217,255,0) 28%, rgba(70,217,255,.03) 40%, rgba(70,217,255,0) 50%, rgba(70,217,255,.03) 55%, rgba(70,217,255,0) 60%, rgba(70,217,255,.07) 72%, rgba(70,217,255,.03) 82%, rgba(70,217,255,0) 92%);
    animation: sunrays 3.4s linear forwards;
}

@keyframes sunrays {
    0%   { opacity: 0.9; }
    30%  { opacity: 0.75; }
    70%  { opacity: 0.5; }
    100% { opacity: 0; }
}

.particles-final-fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 1;
    animation: fadeOutParticles 0.3s ease-out 3.1s forwards; 
}

.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border: 1px solid rgba(70,217,255,.25);
    background: rgba(70,217,255,.1);
    backdrop-filter: blur(2px);
    border-radius: 2px;
}

@keyframes floatInitial {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

@keyframes floatContinuous {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-115vh) rotate(360deg); opacity: 0; }
}

@keyframes fadeOutParticles {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* --- LISTE DES PARTICULES (1 à 35) --- */
.particle:nth-child(1)  { left: 5%;  top: 12%; width: 3px;  height: 3px;   animation: floatInitial 7s linear infinite; }
.particle:nth-child(2)  { left: 14%; top: 18%; width: 6px;  height: 6px;   animation: floatInitial 11s linear infinite; }
.particle:nth-child(3)  { left: 82%; top: 25%; width: 14px; height: 14px;  animation: floatInitial 15s linear infinite; }
.particle:nth-child(4)  { left: 24%; top: 38%; width: 5px;  height: 5px;   animation: floatInitial 9s linear infinite; }
.particle:nth-child(5)  { left: 91%; top: 42%; width: 4px;  height: 4px;   animation: floatInitial 8s linear infinite; }
.particle:nth-child(6)  { left: 68%; top: 45%; width: 16px; height: 16px;  animation: floatInitial 16s linear infinite; }
.particle:nth-child(7)  { left: 40%; top: 52%; width: 7px;  height: 7px;   animation: floatInitial 12s linear infinite; }
.particle:nth-child(8)  { left: 8%;  top: 58%; width: 3px;  height: 3px;   animation: floatInitial 6.5s linear infinite; }
.particle:nth-child(9)  { left: 19%; top: 62%; width: 12px; height: 12px;  animation: floatInitial 13s linear infinite; }
.particle:nth-child(10) { left: 54%; top: 68%; width: 8px;  height: 8px;   animation: floatInitial 10s linear infinite; }
.particle:nth-child(11) { left: 90%; top: 72%; width: 6px;  height: 6px;   animation: floatInitial 11.5s linear infinite; }
.particle:nth-child(12) { left: 33%; top: 78%; width: 13px; height: 13px;  animation: floatInitial 14.5s linear infinite; }
.particle:nth-child(13) { left: 76%; top: 85%; width: 5px;  height: 5px;   animation: floatInitial 9.5s linear infinite; }
.particle:nth-child(14) { left: 48%; top: 20%; width: 15px; height: 15px;  animation: floatInitial 13.5s linear infinite; }
.particle:nth-child(15) { left: 62%; top: 33%; width: 7px;  height: 7px;   animation: floatInitial 10.5s linear infinite; }
.particle:nth-child(16) { left: 30%; top: 48%; width: 4px;  height: 4px;   animation: floatInitial 8.5s linear infinite; }

/* --- GROUPE 2 : Flux continu depuis le bas --- */
.particle:nth-child(n+17) { top: 100%; }
.particle:nth-child(17) { left: 12%; animation: floatContinuous 11s linear infinite;  animation-delay: 0.5s; width: 6px;  height: 6px; }
.particle:nth-child(18) { left: 5%;  animation: floatContinuous 8s linear infinite;   animation-delay: 2.1s; width: 3px;  height: 3px; }
.particle:nth-child(19) { left: 28%; animation: floatContinuous 14s linear infinite;  animation-delay: 4.2s; width: 14px; height: 14px; }
.particle:nth-child(20) { left: 42%; animation: floatContinuous 10s linear infinite;  animation-delay: 0.2s; width: 8px;  height: 8px; }
.particle:nth-child(21) { left: 57%; animation: floatContinuous 13s linear infinite;  animation-delay: 5.5s; width: 13px; height: 13px; }
.particle:nth-child(22) { left: 70%; animation: floatContinuous 9s linear infinite;   animation-delay: 1.0s; width: 5px;  height: 5px; }
.particle:nth-child(23) { left: 78%; animation: floatContinuous 7.5s linear infinite; animation-delay: 3.7s; width: 4px;  height: 4px; }
.particle:nth-child(24) { left: 88%; animation: floatContinuous 16s linear infinite;  animation-delay: 6.8s; width: 18px; height: 18px; }
.particle:nth-child(25) { left: 20%; animation: floatContinuous 10.5s linear infinite; animation-delay: 3.0s; width: 7px;  height: 7px; }
.particle:nth-child(26) { left: 93%; animation: floatContinuous 6s linear infinite;   animation-delay: 1.5s; width: 3px;  height: 3px; }
.particle:nth-child(27) { left: 35%; animation: floatContinuous 11.5s linear infinite; animation-delay: 6.2s; width: 6px;  height: 6px; }
.particle:nth-child(28) { left: 51%; animation: floatContinuous 15s linear infinite;  animation-delay: 1.6s; width: 15px; height: 15px; }
.particle:nth-child(29) { left: 65%; animation: floatContinuous 12s linear infinite;  animation-delay: 4.8s; width: 8px;  height: 8px; }
.particle:nth-child(30) { left: 23%; animation: floatContinuous 8.5s linear infinite;  animation-delay: 5.0s; width: 4px;  height: 4px; }
.particle:nth-child(31) { left: 80%; animation: floatContinuous 11s linear infinite;  animation-delay: 3.5s; width: 6px;  height: 6px; }
.particle:nth-child(32) { left: 94%; animation: floatContinuous 14s linear infinite;  animation-delay: 1.0s; width: 12px; height: 12px; }
.particle:nth-child(33) { left: 46%; animation: floatContinuous 9.5s linear infinite;  animation-delay: 5.2s; width: 5px;  height: 5px; }
.particle:nth-child(34) { left: 16%; animation: floatContinuous 18s linear infinite;  animation-delay: 2.7s; width: 17px; height: 17px; }
.particle:nth-child(35) { left: 74%; animation: floatContinuous 7s linear infinite;   animation-delay: 4.4s; width: 3px;  height: 3px; }

/* --- LOGO ET CADRES DU HERO --- */
.logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    height: 160px;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.rect {
    position: absolute;
    display: flex;
    align-items: center;
    color: var(--text);
    font-weight: 700;
    font-size: 52px;
    font-family: var(--title-font);
    letter-spacing: 0.2em;
}

.rect span { user-select: none; }

.rect.eco {
    width: 180px;
    height: 140px;
    padding-left: 50px;
    border: 2px solid var(--cyan);
    justify-content: flex-end;
    box-shadow: 0 0 8px rgba(70,217,255,.15);
    animation: entryEcoFluidDirect 3.4s linear forwards;
}
.rect.eco span { transform: translateX(6px); }

.rect.code {
    width: 230px;
    height: 80px;
    padding-right: 50px;
    padding-left: 5px;
    border: 2px solid white;
    justify-content: flex-start;
    box-shadow: 0 0 8px rgba(255,255,255,.08);
    animation: entryCodeFluidDirect 3.4s linear forwards;
}

@keyframes entryEcoFluidDirect {
    0% { transform: translate(-50vw, -40vh) rotate(-12deg); opacity: 0; }
    8% { opacity: 1; }
    100% { transform: translate(41px, -40px) rotate(0deg); opacity: 1; }
}

@keyframes entryCodeFluidDirect {
    0% { transform: translate(50vw, 40vh) rotate(12deg); opacity: 0; }
    8% { opacity: 1; }
    100% { transform: translate(132px, -10px) rotate(0deg); opacity: 1; }
}

.content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.subtitle {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    transform: translateY(120px);
    opacity: 0;
    animation: fadeInContent 1.5s cubic-bezier(0.25, 0.1, 0.25, 1) 4.2s forwards;
}
/* #endregion HERO ANIME */

/* #region MENU */

.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    height: 90px; 
    display: flex;
    align-items: center;
    padding: 0 60px; 
    list-style: none;
    gap: 40px;
    background-color: transparent; 
    z-index: 100;
    opacity: 0;
    animation: fadeInContent 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 5.4s forwards;
    transition: background-color 0.3s ease, height 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.menu li {
    font-size: 16px;
    font-weight: 400;
    color: var(--muted);
    cursor: pointer;
    transition: color .2s ease;
}
.menu li:first-child {
    margin-right: auto; /* Repousse tous les li suivants vers la droite */
}
.menu li:nth-last-child(2) { margin-right: -28px; }
.menu li:last-child { font-size: 10px; }

.menu li:hover, 
.menu li:focus-visible { 
    color: var(--text); 
}
/* logo */
/* 1. État par défaut (Menu transparent, tout en haut) */
.menu .menu-logo {
    text-decoration: none;
    display: inline-block; /* On le garde dans le flux Flexbox */
    opacity: 0;            /* Invisible */
    visibility: hidden;    /* Non cliquable quand il est masqué */
    max-width: 0;          /* Prend 0 pixel de large pour ne pas décaler le menu */
    transform: translateX(-10px); /* Petit effet de glissement vers la gauche */
    transition: opacity 0.3s ease, visibility 0.3s ease, max-width 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

/* 2. État activé (Menu .scrolled) */
.menu.scrolled .menu-logo {
    opacity: 1;            /* Devient visible */
    visibility: visible;   /* Devient cliquable */
    max-width: 140px;      /* Reprend sa largeur pour repousser le reste proprement */
    transform: translateX(0); /* Revient à sa position initiale */
}
/* On isole les rectangles pour qu'ils restent parfaitement figés */
.menu .logo .rect {
    box-sizing: border-box;
    transition: border-color 0.3s ease !important; 
    will-change: transform; /* Aide le navigateur à fluidifier le déplacement */
}
.menu:not(.scrolled) .logo .rect {
    transition: none !important;
}
/* Conteneur de taille fixe basé sur l'échelle 0.3 */
.menu.scrolled .logo {
    position: relative;
    width: 112px;  /* 340px * 0.3 */
    height: 48px;  /* 160px * 0.3 */
}

/* Reset et calibrage des rectangles du logo du menu */
.menu.scrolled .rect {
    position: absolute;
    top: 40px;
    display: flex;
    align-items: center;
    color: var(--text);
    font-weight: 700;
    font-size: 15.6px; /* 52px * 0.3 */
    font-family: var(--title-font);
    letter-spacing: 0.2em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.menu.scrolled .rect span { 
    user-select: none; 
}

/* Bloc ECO au format menu */
.menu.scrolled .rect.eco {
    width: 54px;   /* 180px * 0.3 */
    height: 42px;  /* 140px * 0.3 */
    padding-left: 15px; /* 50px * 0.3 */
    border: 1px solid var(--cyan);
    justify-content: flex-end;
    box-shadow: 0 0 5px rgba(70,217,255,.15);
    /* Coordonnées finales du Hero réduites à 30% (41px * 0.3 et -40px * 0.3) */
    transform: translate(12.3px, -12px) !important; 
    animation: none !important; /* Neutralise l'animation du Hero */
    opacity: 1 !important;
}

.menu.scrolled .rect.eco span { 
    transform: translateX(1.8px); /* 6px * 0.3 */
}

/* Bloc CODE au format menu */
.menu.scrolled .rect.code {
    width: 69px;   /* 230px * 0.3 */
    height: 24px;  /* 80px * 0.3 */
    padding-right: 15px; /* 50px * 0.3 */
    padding-left: 1.5px; /* 5px * 0.3 */
    border: 1px solid white;
    justify-content: flex-start;
    box-shadow: 0 0 5px rgba(255,255,255,.08);
    /* Coordonnées finales du Hero réduites à 30% (132px * 0.3 et -10px * 0.3) */
    transform: translate(39.6px, -3px) !important; 
    animation: none !important;
    opacity: 1 !important;
}

@media (min-width: 1600px) {
    .menu {
        padding: 0 calc((100vw - 1200px) / 2 + 40px);
    }
}
/* --- ÉTAT STICKY DU BANDEAU (Au déclenchement du JS) --- */
.menu.scrolled {
    height: 70px; 
    background-color: var(--bg2);
}
.menu.scrolled li {
    color: white;
}

.menu.scrolled li:hover,
.menu.scrolled li:focus-visible {
    color: var(--cyan) !important;
}

/* --- SÉCURITÉ ULTRA-WIDE (Écrans géants) --- */
@media (min-width: 1600px) {
    .menu {
        padding-right: calc((100vw - 1200px) / 2 + 40px);
    }
}

/* --- SÉCURITÉ NO-ANIM --- */
.no-anim .menu {
    animation: none !important;
    opacity: 1 !important;
}
 /* #endregion MENU */

/* #region footer*/
.site-footer {
    background-color: #071827;
    color: #9db6ca;
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(70, 217, 255, 0.1);
}

/* Grille adaptative : 1 col mobile, 2 col tablette, 4 col desktop */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.3fr 0.9fr 1fr 0.8fr; /* Équilibe parfait selon la longueur de tes textes */
        gap: 20px;
    }
}

/* --- COLONNE LOGO & IMPACT --- */
.brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px; /* Espace régulier entre le logo, le texte et le badge */
}

/* On s'assure que le bloc logo hérite bien du comportement de lien */
.footer-logo {
    text-decoration: none;
    display: inline-block;
}
.site-footer .logo {
    position: relative;
    width: 136px;
    height: 64px;
    margin-bottom: 10px; /* Espace avant le texte Infomaniak */
}

/* Styles communs aux blocs rect */
.site-footer .rect {
    position: absolute;
    display: flex;
    align-items: center;
    color: var(--text);
    font-weight: 700;
    font-size: 21px; /* Réduit (52px * 0.4) */
    font-family: var(--title-font);
    letter-spacing: 0.2em;
    box-sizing: border-box; /* Sécurité pour les paddings */
}

.site-footer .rect span { 
    user-select: none; 
}

/* Bloc ECO ajusté */
.site-footer .rect.eco {
    width: 72px;  /* 180px * 0.4 */
    height: 56px; /* 140px * 0.4 */
    padding-left: 20px; /* 50px * 0.4 */
    border: 2px solid var(--cyan);
    justify-content: flex-end;
    box-shadow: 0 0 6px rgba(70,217,255,.15);
    /* Position finale du keyframe réduite à 40% (41px * 0.4 et -40px * 0.4) */
    transform: translate(16.4px, -16px); 
}

.site-footer .rect.eco span { 
    transform: translateX(2.4px); /* 6px * 0.4 */
}

/* Bloc CODE ajusté */
.site-footer .rect.code {
    width: 92px;  /* 230px * 0.4 */
    height: 32px; /* 80px * 0.4 */
    padding-right: 20px; /* 50px * 0.4 */
    padding-left: 2px;   /* 5px * 0.4 */
    border: 2px solid white;
    justify-content: flex-start;
    box-shadow: 0 0 6px rgba(255,255,255,.08);
    /* Position finale du keyframe réduite à 40% (132px * 0.4 et -10px * 0.4) */
    transform: translate(52.8px, -4px); 
}

.footer-tech-note {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(157, 182, 202, 0.7);
    margin: 0;
    max-width: 260px;
}

.footer-badge {
    margin: 0;
}

/* --- TITRES ET LIENS DE NAVIGATION --- */
.footer-title {
    display: block;
    font-family: var(--title-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    display: inline-block;
    color: #9db6ca;
    text-decoration: none;
    font-size: 15px;
    transform: translateX(0);
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #46d9ff;
    transform: translateX(4px);
}

/* Lien Contact mis en valeur */
.footer-links a.footer-cta {
    color: #ffffff;
    font-weight: 600;
}

.footer-links a.footer-cta:hover {
    color: #46d9ff;
}

/* --- SECTION DU BAS (COPYRIGHT) --- */
.footer-bottom {
    border-top: 1px solid rgba(157, 182, 202, 0.15);
    padding-top: 30px;
    text-align: center;
}

@media (min-width: 600px) {
    .footer-bottom {
        text-align: left;
    }
}

.footer-copyright {
    font-size: 13px;
    margin: 0;
}
/* #endregion footer*/

/* #region coin de page*/
/* ==========================================================================
   COIN DE PAGE RETOURNÉ (VERSION INFAILLIBLE CLIP-PATH)
   ========================================================================== */

:root {
    --peel-size: 50px;
    --peel-open-size: 180px;
}

/* Le conteneur fixe en bas à droite */
.peel-container {
    position: fixed;
    bottom: 0;
    right: 0;
    width: var(--peel-size);
    height: var(--peel-size);
    z-index: 9999;
    background-color: #071827; /* Fond sombre de ton site */
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* On découpe le conteneur global en triangle quand il est fermé */
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

/* Le bouton qui simule le pli (le verso de la feuille) */
.peel-corner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    cursor: pointer;
    background-color: #11314a; /* Couleur bleue du pli */
    
    /* On découpe le bouton pour faire le triangle inversé du pli */
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 2;
    transition: background-color 0.3s;
}

/* --- ÉTAT SURVOL (Fermé uniquement) --- */
.peel-container:not(.is-open):hover {
    width: calc(var(--peel-size) + 15px);
    height: calc(var(--peel-size) + 15px);
}
.peel-container:not(.is-open):hover .peel-corner {
    background-color: #163d5c; /* Éclaircissement au survol */
}

/* --- ÉTAT OUVERT (Au Clic) --- */
.peel-container.is-open {
    width: var(--peel-open-size);
    height: var(--peel-open-size);
    /* On redécoupe le conteneur en carré pour afficher tout le texte */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: -5px -5px 20px rgba(0, 0, 0, 0.5);
}

.peel-container.is-open .peel-corner {
    /* Le petit coin se range sagement dans le coin supérieur gauche du bloc ouvert */
    width: 30px;
    height: 30px;
    right: auto;
    bottom: auto;
    top: 0;
    left: 0;
    background-color: #1b4566;
}

/* --- LE TEXTE CYAN --- */
.peel-content {
    position: absolute;
    inset: 0;
    padding: 40px 15px 15px 15px; /* Grand padding top pour ne pas chevaucher le petit coin résiduel */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
    z-index: 1;
    pointer-events: none; /* Évite de bloquer le clic sur le bouton dessous */
}

.peel-container.is-open .peel-content {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
    pointer-events: auto;
}

.peel-content p {
    font-family: var(--title-font);
    font-size: 11px;
    line-height: 1.4;
    color: #46d9ff;
    margin: 0;
    font-weight: 600;
    text-align: left;
}
/* #endregion coin de page*/

/* #region chapo */
.section-chapo {
    padding-top: 80px;
    padding-bottom: 20px;
}
.chapo {
    font-size: 20px;
    font-weight: 600;
    color: #071827;
    line-height: 1.7;
    margin-bottom: 0;
}
/* #endregion chapo */

/* #region bulles */
.section-bulles {
    overflow: hidden;
    padding: 40px 0;
    height: 500px;
}

.section-bulles {
    position: relative;
}

.section-bulles::after {
    content: "";
    position: absolute;
    inset: 0;
    /*background-color: rgba(7, 24, 39,0.4);*/
    background: linear-gradient(65deg, rgba(70,217,255,0.1) 0%, rgba(70,217,255,0.03) 3%, rgba(70,217,255,0.08) 8%, rgba(70,217,255,.05) 18%, rgba(70,217,255,0.02) 20%, rgba(70,217,255,.05) 25%, rgba(70,217,255,0) 28%, rgba(70,217,255,.03) 40%, rgba(70,217,255,0) 50%, rgba(70,217,255,.03) 55%, rgba(70,217,255,0) 60%, rgba(70,217,255,.07) 72%, rgba(70,217,255,.03) 82%, rgba(70,217,255,0) 92%); 
    z-index: 2;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.bulles-container {
    position: relative;
    display: block;
    margin-top: 20px;
    height: 480px;
    width: 100%;
    z-index: 3;
}

.bulle {
    position: absolute;
    border: 1px solid rgba(70,217,255,.15);
    background: rgba(51, 155, 181, 0.3);
    backdrop-filter: blur(2px);
    border-radius: 10px;
    padding: 24px;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: default;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

section div.titre-bulle {
    font-family: var(--title-font);
    font-size: 16px;
    font-weight: 700;
    color: white !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity 0.25s ease-in;
}

section div.hover-bulle {
    font-size: 1rem;
    line-height: 1.2rem;
    color: var(--bg) !important;
    opacity: 0;
    position: absolute;
    padding: 20px;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease-in, transform 0.4s;
    margin-bottom: 0;
}

.bulle:hover, .bulle:focus-within {
    background: rgba(138, 229, 252, 0.849);
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(70,217,255, 0.2);
}

.bulle:hover .titre-bulle, .bulle:focus-within .titre-bulle { opacity: 0; }
.bulle:hover .hover-bulle, .bulle:focus-within .hover-bulle { opacity: 1; }

/* --- SELECTION DES ROTATIONS SUR LES CADRES --- */
.bulle:nth-child(1) { width: 160px; left: 0; top: 0; transform: rotate(16deg); }
.bulle:nth-child(2) { width: 200px; left: 35%; top: 60px; transform: rotate(30deg); }
.bulle:nth-child(3) { width: 170px; right: 2%; top: 10px; transform: rotate(-25deg); }
.bulle:nth-child(4) { width: 180px; left: 8%; top: 200px; transform: rotate(-5deg); }
.bulle:nth-child(5) { width: 160px; right: 20%; top: 200px; transform: rotate(23deg); }

/* --- SELECTION DES COMPENSATIONS DE TEXTE DROIT --- */
.bulle:nth-child(1) .titre-bulle { transform: rotate(-16deg); }
.bulle:nth-child(2) .titre-bulle { transform: rotate(-30deg); }
.bulle:nth-child(3) .titre-bulle { transform: rotate(25deg); }
.bulle:nth-child(4) .titre-bulle { transform: rotate(5deg); }
.bulle:nth-child(5) .titre-bulle { transform: rotate(-23deg); }

/* Rotation permanente du texte hover (identique au titre) : ne varie jamais entre les deux états, donc pas de flash de dé-rotation à la sortie du hover */
.bulle:nth-child(1) .hover-bulle { transform: rotate(-16deg) scale(0.95); }
.bulle:nth-child(2) .hover-bulle { transform: rotate(-30deg) scale(0.95); }
.bulle:nth-child(3) .hover-bulle { transform: rotate(25deg) scale(0.95); }
.bulle:nth-child(4) .hover-bulle { transform: rotate(5deg) scale(0.95); }
.bulle:nth-child(5) .hover-bulle { transform: rotate(-23deg) scale(0.95); }

.bulle:hover .hover-bulle, .bulle:focus-within .hover-bulle { opacity: 1; }
.bulle:nth-child(1):hover .hover-bulle, .bulle:nth-child(1):focus-within .hover-bulle { transform: rotate(-16deg) scale(1); }
.bulle:nth-child(2):hover .hover-bulle, .bulle:nth-child(2):focus-within .hover-bulle { transform: rotate(-30deg) scale(1); }
.bulle:nth-child(3):hover .hover-bulle, .bulle:nth-child(3):focus-within .hover-bulle { transform: rotate(25deg) scale(1); }
.bulle:nth-child(4):hover .hover-bulle, .bulle:nth-child(4):focus-within .hover-bulle { transform: rotate(5deg) scale(1); }
.bulle:nth-child(5):hover .hover-bulle, .bulle:nth-child(5):focus-within .hover-bulle { transform: rotate(-23deg) scale(1); }

/* bulles déco  */
.bulles-deco-container {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg, var(--bg2), var(--bg));
    width: 100%;
    height: 100%;
}
.bulle-deco {
    position: absolute;
    border: 1px solid rgba(70,217,255,.15);
    background: rgba(70,217,255,.2);
    border-radius: 2px;
    pointer-events: none;
    opacity: .6;
}
.bulle-deco:nth-of-type(1)  { width: 4px;  height: 4px;  left: 4%;  top: 6%;   transform: rotate(12deg); }
.bulle-deco:nth-of-type(2)  { width: 8px;  height: 8px;  left: 14%; top: 10%;  transform: rotate(-8deg); }
.bulle-deco:nth-of-type(3)  { width: 16px; height: 16px; left: 26%; top: 4%;   transform: rotate(22deg); }
.bulle-deco:nth-of-type(4)  { width: 6px;  height: 6px;  left: 32%; top: 48%;  transform: rotate(-15deg); }
.bulle-deco:nth-of-type(5)  { width: 28px; height: 28px; left: 8%;  top: 38%;  transform: rotate(18deg); }
.bulle-deco:nth-of-type(6)  { width: 5px;  height: 5px;  left: 40%; top: 35%;  transform: rotate(8deg); }
.bulle-deco:nth-of-type(7)  { width: 12px; height: 12px; left: 55%; top: 14%;  transform: rotate(-20deg); }
.bulle-deco:nth-of-type(8)  { width: 7px;  height: 7px;  left: 67%; top: 8%;   transform: rotate(14deg); }
.bulle-deco:nth-of-type(9)  { width: 30px; height: 30px; left: 76%; top: 18%;  transform: rotate(-10deg); }
.bulle-deco:nth-of-type(10) { width: 4px;  height: 4px;  left: 90%; top: 10%;  transform: rotate(25deg); }
.bulle-deco:nth-of-type(11) { width: 10px; height: 10px; left: 93%; top: 34%;  transform: rotate(-18deg); }
.bulle-deco:nth-of-type(12) { width: 22px; height: 22px; left: 80%; top: 50%;  transform: rotate(10deg); }
.bulle-deco:nth-of-type(13) { width: 5px;  height: 5px;  left: 62%; top: 60%;  transform: rotate(-5deg); }
.bulle-deco:nth-of-type(14) { width: 9px;  height: 9px;  left: 44%; top: 58%;  transform: rotate(18deg); }
.bulle-deco:nth-of-type(15) { width: 22px; height: 22px; left: 28%; top: 78%;  transform: rotate(-22deg); }
.bulle-deco:nth-of-type(16) { width: 6px;  height: 6px;  left: 12%; top: 72%;  transform: rotate(6deg); }
.bulle-deco:nth-of-type(17) { width: 14px; height: 14px; left: 3%;  top: 54%;  transform: rotate(-14deg); }
.bulle-deco:nth-of-type(18) { width: 24px; height: 24px; left: 90%; top: 72%;  transform: rotate(20deg); }
.bulle-deco:nth-of-type(19) { width: 7px;  height: 7px;  left: 72%; top: 88%;  transform: rotate(-8deg); }
.bulle-deco:nth-of-type(20) { width: 26px; height: 26px; left: 52%; top: 86%;  transform: rotate(-15deg); }
/* #endregion bulles */

/* #region mon approche */
section.section-approche-texte{
    padding-top: 0;
}
/* #endregion mon approche */

/* #region realisations */
.section-realisations {
    background: linear-gradient(180deg, var(--bg2), var(--bg));
    overflow: hidden;
    padding: 30px 0;
    height: min(calc(100vh - 70px) , 600px);
    min-height: 550px;
}
.section-realisations::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(65deg, rgba(70,217,255,0.1) 0%, rgba(70,217,255,0.03) 3%, rgba(70,217,255,0.08) 8%, rgba(70,217,255,.05) 18%, rgba(70,217,255,0.02) 20%, rgba(70,217,255,.05) 25%, rgba(70,217,255,0) 28%, rgba(70,217,255,.03) 40%, rgba(70,217,255,0) 50%, rgba(70,217,255,.03) 55%, rgba(70,217,255,0) 60%, rgba(70,217,255,.07) 72%, rgba(70,217,255,.03) 82%, rgba(70,217,255,0) 92%);
    opacity: 0.9;
}
.realisation-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
    margin-bottom: 32px;
}
.section-realisations h2{
    color: white;
}
.realisation {
    background-color: #f2f8ff;
    border: 1px solid #9db6ca;
    aspect-ratio: 16 / 10;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.realisation:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
}
/* #endregion realisations */

/* #region interventions*/
/* ==========================================================================
   SECTION INTERVENTIONS (VERSION FOND BLANC)
   ========================================================================== */

.section-interventions {
    padding: 100px 0;
    background-color: #ffffff; /* Passage au fond blanc */
    color: #11314a; /* Texte de base sombre */
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--title-font);
    font-size: 36px;
    font-weight: 800;
    color: #071827; /* Titre principal dans ton bleu très sombre */
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 18px;
    color: #5c768d; /* Gris-bleu intermédiaire pour le contraste sur blanc */
    max-width: 600px;
}

/* --- GRILLE DES FORMATS --- */
.interventions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .interventions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.intervention-card {
    background-color: #f4f8fa; /* Fond de carte gris-bleu très clair et doux */
    border: 1px solid rgba(11, 49, 74, 0.05); /* Bordure presque invisible au repos */
    padding: 40px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.intervention-card:hover {
    border-color: var(--cyan); /* Allumage de la bordure en cyan au survol */
    background-color: #ffffff; /* La carte passe sur fond blanc pur au survol pour créer un relief */
    transform: translateY(-2px);
}

.card-icon span {
    font-family: var(--title-font);
    font-size: 14px;
    font-weight: 700;
    color: #009bb3; /* Un cyan légèrement plus soutenu pour garantir le contraste sur fond clair */
    letter-spacing: 0.1em;
}

.intervention-card h3 {
    font-family: var(--title-font);
    font-size: 22px;
    font-weight: 700;
    color: #071827;
    margin: 0;
}

.card-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #425668; /* Gris sombre pour une excellente lisibilité de lecture */
    margin: 0;
    flex-grow: 1;
}

.card-target {
    font-size: 13px;
    font-weight: 600;
    color: #071827;
    border-top: 1px dashed rgba(11, 49, 74, 0.15);
    padding-top: 16px;
    margin-top: 8px;
}

/* --- BADGES PUBLICS --- */
.publics-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(11, 49, 74, 0.1);
    padding-top: 40px;
}

@media (min-width: 768px) {
    .publics-container {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
}

.publics-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #071827;
    margin: 0;
    white-space: nowrap;
}

.publics-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    font-size: 13px;
    font-weight: 500;
    background-color: #f4f8fa;
    color: #425668;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(11, 49, 74, 0.08);
    user-select: none;
}
/* #endregion interventions*/

/* #region contact */
.section-contact {
    padding: 120px 0; /* Plus d'espace pour laisser respirer le CTA */
    background-color: var(--bg);
    background-image: linear-gradient(65deg, rgba(70,217,255,0.1) 0%, rgba(70,217,255,0.03) 3%, rgba(70,217,255,0.08) 8%, rgba(70,217,255,.05) 18%, rgba(70,217,255,0.02) 20%, rgba(70,217,255,.05) 25%, rgba(70,217,255,0) 28%, rgba(70,217,255,.03) 40%, rgba(70,217,255,0) 50%, rgba(70,217,255,.03) 55%, rgba(70,217,255,0) 60%, rgba(70,217,255,.07) 72%, rgba(70,217,255,.03) 82%, rgba(70,217,255,0) 92%); 
}
.section-contact h2{
    color: white;
}
/* Grille asymétrique : 40% texte, 60% actions */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 4fr 6fr;
        align-items: center;
        gap: 80px;
    }
}

/*texte*/
/* Phrase d'accroche (L'intuition) : Plus grande pour capter l'œil */
.contact-lead {
    font-size: 24px;
    font-family: var(--title-font);
    font-weight: 600;
    color: white;
    line-height: 1.4;
    margin-top: 24px;
    margin-bottom: 20px;
}

/* Le reste du texte : Calme, lisible et bien espacé */
.contact-body {
    font-size: 16px;
    color: white;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* On s'assure que le dernier paragraphe ne colle pas au bloc suivant sur mobile */
.contact-body:last-child {
    margin-bottom: 0;
}

/* --- STRUCTURE DES LIENS CTA --- */
.contact-actions {
    display: flex;
    flex-direction: column;
}

.cta-link {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 30px 20px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #9db6ca; /* Ligne fine de séparation style éditeur de code */
    transition: color 0.3s ease;
}

.cta-link:last-child {
    border-bottom: 1px solid #9db6ca; /* Ferme la grille en bas */
}

/* Les textes du CTA */
.cta-label {
    grid-column: 1;
    grid-row: 1;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.cta-value {
    grid-column: 1;
    grid-row: 2;
    font-size: 24px;
    font-family: var(--title-font);
    font-weight: 700;
    color: white;
    transition: color 0.3s ease;
}

.cta-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 28px;
    color: white;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

/* --- L'ANIMATION EFFET RIDEAU (CSS PUR) --- */

/* Le rideau de fond bleu sombre qui va monter au survol */
.cta-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--cyan);
    transform: translateY(101%); /* Caché en bas par défaut */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

/* On force tous les textes à passer au-dessus du rideau */
.cta-label, .cta-value, .cta-arrow {
    position: relative;
    z-index: 2;
}

/* --- ÉTATS HOVER & FOCUS --- */

/* Le rideau monte */
.cta-link:hover::before,
.cta-link:focus-visible::before {
    transform: translateY(0);
}

/* Changement de couleur des textes */
.cta-link:hover .cta-label,
.cta-link:focus-visible .cta-label {
    color: var(--bg); /* Le label passe en cyan */
}

.cta-link:hover .cta-value,
.cta-link:focus-visible .cta-value {
    color: var(--bg); /* La valeur passe en blanc */
}

/* La flèche s'allume en cyan et glisse vers la droite */
.cta-link:hover .cta-arrow,
.cta-link:focus-visible .cta-arrow {
    color: var(--bg);
    transform: translateX(10px);
}
/* #endregion contact */

/* #region signature */
.section-signature .wrapper-large {
    display: flex;
    justify-content: space-between;
    text-align: center;
    padding: 40px 20px 0 20px;
}

.section-signature div {
    font-family: var(--title-font);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase; /* Donne un aspect très structuré */
}
/* #endregion signature */

/* ==========================================================================
   RESPONSIVE DESIGN ET SÉCURITÉ ÉCRANS GÉANTS
   ========================================================================== */
@media (min-width: 1600px) {
    .menu {
        right: calc((100vw - 1400px) / 2);
    }
    .menu.scrolled {
        right: calc((100vw - 1400px) / 2);
    }
}

@media (max-width: 900px) {
    section { padding: 60px 0; }
    .wrapper-standard, .wrapper-large { padding: 0 24px; }
    .chapo { font-size: 18px; }
    h2 { font-size: 26px; }
    
    .bulles-container { display: flex; flex-direction: column; gap: 20px; min-height: auto; }
    .bulle { position: relative !important; left: auto !important; right: auto !important; top: auto !important; width: 100% !important; aspect-ratio: auto; min-height: 120px; padding: 24px; }
    .titre-bulle { margin-bottom: 12px; opacity: 1 !important; }
    .hover-bulle { position: relative; opacity: 1; padding: 0; transform: none !important; color: var(--muted); }
    .bulle:hover { background: rgba(70,217,255,.1); border-color: rgba(70,217,255,.25); box-shadow: none; }
}

/* ==========================================================================
   ACCESSIBILITÉ & CORRECTIF NO-ANIM
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .hero::before, .rect.eco, .rect.code, .subtitle, .menu, .particle, .particles-final-fade { 
        animation: none !important; 
        opacity: 1 !important; 
    }
    .rect.eco { transform: translate(41px, -40px) rotate(0deg) !important; }
    .rect.code { transform: translate(132px, -10px) rotate(0deg) !important; }
    .particles-container { display: none; }
}

.no-anim .rect.eco, 
.no-anim .rect.code, 
.no-anim .subtitle, 
.no-anim .menu { 
    animation: none !important; 
    opacity: 1 !important; 
}

.no-anim #hero::before { 
    animation: none !important; 
    opacity: 0 !important; 
}

.no-anim .rect.eco { transform: translate(41px, -40px) rotate(0deg) !important; }
.no-anim .rect.code { transform: translate(132px, -10px) rotate(0deg) !important; }
.no-anim .particles-final-fade, 
.no-anim .particles-container, 
.no-anim .particle { 
    animation: none !important; 
    display: none !important; 
}



/* #region mon approche*/
/* Rend le défilement fluide lors du clic sur une ancre */
html {
    scroll-behavior: smooth;
    /* Compense la hauteur de ton menu principal + sous-menu pour ne pas cacher les titres */
    scroll-padding-top: 130px; 
}

.sub-nav-approach {
    position: sticky;
    top: 70px; /* Se cale pile sous ton menu principal .scrolled */
    background-color: #ffffff; /* Fond blanc (puisque l'approche est sur fond blanc) */
    border-bottom: 1px solid rgba(7, 24, 39, 0.08);
    z-index: 90;
    padding: 15px 0;
}

.sub-nav-approach ul {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sub-nav-approach a {
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #5c768d;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

.sub-nav-approach a:hover {
    color: #009bb3; /* Ton cyan lisible sur blanc */
}
/* #endregion mon approche*/