/* @GLOBAL */

@font-face {
    font-family: 'SF Pro Display';
    src: url('/assets/styles/fonts/SFProDisplay/SFProDisplay-Bold.woff2') format('woff2'),
        url('/assets/styles/fonts/SFProDisplay/SFProDisplay-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('/assets/styles/fonts/SFProDisplay/SFProDisplay-Light.woff2') format('woff2'),
        url('/assets/styles/fonts/SFProDisplay/SFProDisplay-Light.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('/assets/styles/fonts/SFProDisplay/SFProDisplay-Regular.woff2') format('woff2'),
        url('/assets/styles/fonts/SFProDisplay/SFProDisplay-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('/assets/styles/fonts/SFProDisplay/SFProDisplay-RegularItalic.woff2') format('woff2'),
        url('/assets/styles/fonts/SFProDisplay/SFProDisplay-RegularItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Monument Extended';
    src: url('/assets/styles/fonts/MonumentExtended-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    text-decoration: none;
}

html,
body {
    overflow: hidden;
}

body {
    background: url(/assets/storage/page/X11.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.celipte {
    color: #ff4d4d;
}

img, a {
    user-drag: none; /* Pour les anciens navigateurs WebKit */
    -webkit-user-drag: none; /* Spécifique à WebKit (Chrome, Safari) */
}

.content h3 {
    font-size: 1.3rem;
}

/* @PAGES */

:root {
    --waveColor: #FBC02D
}

#home {
    backdrop-filter: blur(10px);
}

.home-text {
    max-width:750px;
}

hr {
    background: #919191;
    margin-top: 0;
    margin-bottom: 10px;
}

.navbar {
    background-color: transparent !important;
}

.navbar-item a {
    color: #000 !important;
}

a.navbar-burger {
    color: black;
}

.navbar-menu {
    box-shadow: none !important;
    background: none !important;
}

/* Forcer l'affichage du hamburger sur desktop */
@media screen and (min-width: 1024px) {
    .navbar-burger {
        display: inline-flex !important;
    }
}

#home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#home .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#bars rect {
    transition: transform .25s
}

#bars rect:hover {
    transform: translateY(-8px)
}

#bars rect:focus {
    outline: none;
}

#bridge-logo {
    outline: none;
}

#bridge-logo:focus {
    outline: none;
}

.logo-text {
    font-family: 'Monument Extended', 'Montserrat', sans-serif;
    font-weight: normal;
    font-size: 4rem; /* Taille par défaut, sera ajustée par JavaScript */
    letter-spacing: .17em;
    color: #2B2B2B !important;
    transform: translateX(0.10em); /* Léger décalage à gauche pour compenser la marge de la police */
    display: inline-block; /* Nécessaire pour que transform fonctionne */
}

.title {
    color: #2e333d !important;
}

.service-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    color: #2B2B2B;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    overflow: hidden
}

.service-overlay.is-active {
    opacity: 1;
    pointer-events: auto
}

.wave-background {
    position: absolute;
    inset: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    z-index: 1;
    overflow: hidden;
    /* Optimisations pour le rendu GPU */
    will-change: transform;
    backface-visibility: hidden;
    /* Amélioration du rendu sur les écrans haute résolution */
    -webkit-transform: translateZ(0);
    transform: translateZ(0) scaleY(0);
}

.service-overlay.is-active .wave-background {
    transform: translateZ(0) scaleY(1);
}

.wave-background svg {
    width: 100%;
    height: 100%
}

.wave-scroll {
    position: absolute;
    inset: 0;
    background-color: var(--waveColor);
    -webkit-mask-repeat: repeat-x;
    mask-repeat: repeat-x;
    -webkit-mask-size: 2880px 100%;
    mask-size: 2880px 100%;
    /* Optimisations pour le rendu GPU */
    will-change: mask-position;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Lissage anti-aliasing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* Vague avant (plus grande, mouvement lent) - plus claire en haut */
.wave1 {
    opacity: 0.3;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2880 1000' preserveAspectRatio='none'%3E%3Cpath fill='currentColor' d='M0 150 C 160 225 320 75 480 150 C 640 225 800 75 960 150 C 1120 225 1280 75 1440 150 C 1600 225 1760 75 1920 150 C 2080 225 2240 75 2400 150 C 2560 225 2720 75 2880 150 V1000 H0 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2880 1000' preserveAspectRatio='none'%3E%3Cpath fill='currentColor' d='M0 150 C 160 225 320 75 480 150 C 640 225 800 75 960 150 C 1120 225 1280 75 1440 150 C 1600 225 1760 75 1920 150 C 2080 225 2240 75 2400 150 C 2560 225 2720 75 2880 150 V1000 H0 Z'/%3E%3C/svg%3E");
    animation: waveSlide1Fast 15s linear infinite;
    /* Optimisations spécifiques pour cette vague */
    transform: translate3d(0, 0, 0);
    /* Amélioration du rendu sur écrans haute résolution */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Vague arrière (plus petite, plus rapide, inverse) - plus foncée en bas */
.wave2 {
    opacity: 1;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2880 1000' preserveAspectRatio='none'%3E%3Cpath fill='currentColor' d='M0 150 C 160 225 320 75 480 150 C 640 225 800 75 960 150 C 1120 225 1280 75 1440 150 C 1600 225 1760 75 1920 150 C 2080 225 2240 75 2400 150 C 2560 225 2720 75 2880 150 V1000 H0 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2880 1000' preserveAspectRatio='none'%3E%3Cpath fill='currentColor' d='M0 150 C 160 225 320 75 480 150 C 640 225 800 75 960 150 C 1120 225 1280 75 1440 150 C 1600 225 1760 75 1920 150 C 2080 225 2240 75 2400 150 C 2560 225 2720 75 2880 150 V1000 H0 Z'/%3E%3C/svg%3E");
    animation: waveSlide2 45s linear infinite;
    /* Optimisations spécifiques pour cette vague */
    transform: translate3d(0, 0, 0);
    /* Amélioration du rendu sur écrans haute résolution */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@keyframes waveSlide1Fast {
    0% {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
    
    50% {
        -webkit-mask-position: 720px 0;
        mask-position: 720px 0;
    }
    
    100% {
        -webkit-mask-position: 1440px 0;
        mask-position: 1440px 0;
    }
}

@keyframes waveSlide2 {
    0% {
        -webkit-mask-position: 0 0;
        mask-position: 0 0;
    }
    
    50% {
        -webkit-mask-position: 720px 0;
        mask-position: 720px 0;
    }
    
    100% {
        -webkit-mask-position: 1440px 0;
        mask-position: 1440px 0;
    }
}

.panel-body {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem
}

.service-card {
    opacity: 0;
    transform: translateY(30px)
}

.service-card {
    background: rgba(255, 255, 255, .5);
    backdrop-filter: blur(10px);
    padding: 2rem 2rem;
    max-width: 680px;
    width: 100%;
    max-height: 80vh;
    margin-top: 15vh;
    overflow: hidden;
    border-radius: 16px;
}

.service-card-content {
    height: 100%;
    max-height: calc(80vh - 4rem);
    overflow-y: auto;
    overflow-x: hidden;
    margin: -2rem -2rem -2rem -2rem;
    padding: 2rem 2rem 1rem 2rem;
}

/* Styles pour la scrollbar */
.service-card-content::-webkit-scrollbar {
    width: 8px;
}

.service-card-content::-webkit-scrollbar-track {
    background: transparent;
}

.service-card-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.service-card-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    background-clip: content-box;
}

/* Pour Firefox */
.service-card-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.6) transparent;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

#service-icon {
    color: #2B2B2B;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#service-icon i {
    color: #2B2B2B;
}


@media(max-width:768px) {
    .service-overlay {
        align-items: flex-end
    }

    .panel-body {
        padding-right: 20px;
        padding-left: 20px;
    }

    .service-card {
        padding: 20px;
        max-height: 85vh;
        margin-top: 5vh;
    }

    .service-card-content {
        max-height: calc(85vh - 2.5rem);
    }

    svg#bridge-logo {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    /* Pour très petits écrans, assurer 100% de largeur */
    @media (max-width: 480px) {
        svg#bridge-logo {
            width: 100% !important;
            max-width: none !important;
            margin: 0 auto;
        }
        
        .container {
            padding-left: 1rem !important;
            padding-right: 1rem !important;
        }
    }

    /* Labels responsives sur mobile */
    #service-labels text {
        font-size: 12px !important;
    }
}

@media(max-width:480px) {
    #service-labels text {
        font-size: 10px !important;
    }
}

/* Empêcher la sélection du texte dans les labels */
#service-labels {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.service-overlay.is-active .wave-background {
    transform: translateZ(0) scaleY(1);
}

/* Logo global pour tous les services */
#global-service-logo {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    pointer-events: none;
    display: none;
}

#global-service-logo.is-active {
    opacity: 1;
    pointer-events: auto;
}

#global-service-logo:hover {
    transform: translateX(-50%) scale(1.1);
}

#global-service-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.service-logo {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999 !important;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-logo:hover {
    transform: translateX(-50%) scale(1.1);
}

.service-logo img {
    height: 60px;
    width: auto;
}

.service-overlay.is-active .service-logo {
    opacity: 1;
}

/* Styles pour l'équipe */
.team-title-container {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.team-title-container .title {
    margin: 0 !important;
}

/* Correction couleur texte service */
.service-card .content,
.service-card .content h3,
.service-card .content h4,
.service-card .content p,
.service-card .content ul,
.service-card .content li,
.service-card .content strong,
.service-card #service-title {
    color: #2B2B2B !important;
}

.service-card .content h3 {
    font-size: 1.3rem;
}

.service-card .content h4 {
    font-size: 1.1rem;
}

/* Styles pour le contact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info .content p,
.contact-item span:last-child {
    color: #2B2B2B !important;
}

.contact-item .icon {
    font-size: 1.2rem;
    width: 2rem;
    text-align: center;
}

.contact-item span:last-child {
    font-weight: 500;
}

/* Styles pour les boutons de fermeture de tous les panels */
.panel-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #2B2B2B !important;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panel-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Styles pour les icônes principales de tous les panels */
.service-overlay .service-header .icon.is-large {
    color: #2B2B2B;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-overlay .service-header .icon.is-large i {
    color: #2B2B2B;
    font-size: 2.5rem;
}

/* @RESPONSIVE */

/* S'assurer que le header reste au-dessus des services */
.navbar {
    z-index: 1000 !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    min-height: 3.25rem;
}

/* Alignement de la navbar */
.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-menu {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-end {
    display: flex;
    align-items: center;
}

.navbar-item {
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar-item a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0.5rem 0.75rem;
}

/* Forcer l'affichage du hamburger sur desktop */
@media screen and (min-width: 1024px) {
    .navbar-burger {
        display: inline-flex !important;
    }
}

/* S'assurer que le hamburger est aligné sur mobile */
@media screen and (max-width: 1023px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand,
    .navbar-menu {
        align-items: center;
        height: 3.25rem;
    }
    
    .navbar-item {
        height: 100%;
        align-items: center;
    }
    
    .navbar-burger {
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0.5rem;
    }

    /* Masquer .navbar-item sur mobile */
    .navbar-brand .navbar-item {
        display: none !important;
    }
}

/* @MENU SERVICES GRID */

/* Menu Services Grid - Design moderne et mobile-friendly */
.menu-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.service-card-compact {
    border-radius: 16px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #F1E3CF;
}

.service-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-icon-wrapper {
    width: 90%;
    height: 28px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.service-icon-wrapper i {
    font-size: 20px;
    color: white;
}

.service-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2B2B2B;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.service-desc {
    font-size: 0.75rem;
    color: #2B2B2B;
    margin: 0;
    line-height: 1.3;
}

/* Séparateur moderne */
.menu-separator {
    display: flex;
    align-items: center;
    margin: 1.5rem 0 1rem;
    position: relative;
}

.menu-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
}

.separator-text {
    padding: 0 1rem;
    font-size: 0.8rem;
    color: #95a5a6;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grille pour équipe et contact */
.menu-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .menu-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .menu-extra-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .service-card-compact {
        padding: 1rem 0.75rem;
    }
    
    .service-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .service-icon-wrapper i {
        font-size: 16px;
    }
    
    .service-title {
        font-size: 0.8rem;
    }
    
    .service-desc {
        font-size: 0.7rem;
    }
    
    .menu-separator {
        margin: 1rem 0 0.75rem;
    }
}

@media (min-width: 1024px) {
    .menu-extra-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Styles déplacés depuis index.php */
.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #F1E3CF;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contact-link .icon {
    transition: transform 0.3s ease;
}

.contact-item:not(.contact-link) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin: 0.5rem 0;
}

.contact-link,
.contact-item:not(.contact-link) {
    color: #2B2B2B !important;
}

.swiss-flag {
    opacity: 0;
    transform: scale(0.8);
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
}

/* Styles pour l'équipe */
.team-category {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2B2B2B;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #F1E3CF;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.team-member-card {
    background: #F1E3CF;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.team-member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.member-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.member-avatar.partners {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.member-avatar.counsel {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.member-avatar.operational {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2B2B2B;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.member-role {
    font-size: 0.9rem;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .team-member-card {
        padding: 1rem;
    }
}

.menu-services-grid .content,
.menu-services-grid .content p,
.menu-services-grid .content h2,
.menu-footer {
    color: #2B2B2B !important;
}

.menu-footer .celipte {
    color: #ff4d4d !important;
}
