/* ============================================
   NG SOLUTION — Shared Styles
   ============================================ */

/* -- Variables -- */
:root {
    --primary: #1d56c9;
    --bg-dark: #111621;
    --bg-light: #f6f6f8;
}

/* -- Base -- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding: 0;
}

/* -- Fixed Background (remplacement de background-attachment: fixed, cassé sur iOS) -- */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.85) 100%);
    z-index: -1;
    pointer-events: none;
}

/* -- Glassmorphism -- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-container {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* -- Galerie -- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.image-hover-zoom:hover img {
    transform: scale(1.05);
}

/* -- Sections au-dessus de l'overlay -- */
section, header, main, footer {
    position: relative;
    z-index: 10;
}

/* -- Header scroll effect -- */
.header-scrolled {
    background: rgba(17, 22, 33, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* ===== BOUTONS ===== */

/* Base commune */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.2s ease,
                background-color 0.2s ease;
    text-decoration: none;
}

/* Levée au survol */
.btn:hover { transform: translateY(-4px); }

/* Enfoncement au clic */
.btn:active {
    transform: translateY(2px) scale(0.96) !important;
    transition: transform 0.08s ease !important;
}

/* Balayage lumineux au survol */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.55s ease;
    pointer-events: none;
}
.btn:hover::before { left: 160%; }

/* Bouton primaire bleu */
.btn-primary {
    background: #1d56c9;
    color: #fff;
    box-shadow: 0 4px 18px rgba(29, 86, 201, 0.35);
}
.btn-primary:hover {
    box-shadow: 0 14px 38px rgba(29, 86, 201, 0.6);
    background: #1a4db5;
}
.btn-primary:active {
    box-shadow: 0 2px 8px rgba(29, 86, 201, 0.2) !important;
}

/* Bouton fantôme (bordure blanche) */
.btn-ghost {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.45);
    box-shadow: 0 8px 28px rgba(255,255,255,0.08);
}

/* Ripple (ajouté via JS) */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    transform: scale(0);
    animation: ripple-anim 0.55s linear;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(5); opacity: 0; }
}

/* ===== LIENS DE NAVIGATION ===== */
.nav-link {
    position: relative;
    padding-bottom: 3px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #60a5fa;
    border-radius: 2px;
    transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* ===== CARTES GALERIE ===== */
.gallery-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
}
.gallery-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 0 2px #1d56c9, 0 24px 50px rgba(29, 86, 201, 0.3);
}

/* ===== GLASS CARDS (sections) ===== */
.glass-card {
    transition: box-shadow 0.3s ease;
}

/* -- Logo : nom de l'entreprise avec dégradé et animation hover -- */
.logo-brand {
    background: linear-gradient(120deg, #60a5fa 0%, #93c5fd 40%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    display: inline-block;
    transition: letter-spacing 0.35s ease, transform 0.35s ease, background-position 0.5s ease;
}

.logo-brand:hover {
    background-position: right center;
    letter-spacing: 0.1em;
    transform: scale(1.06) translateY(-2px);
}

/* -- Icône casque à côté du logo -- */
.logo-icon {
    font-size: 1.6rem;
    background: linear-gradient(120deg, #60a5fa, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.35s ease;
}

.logo-wrapper:hover .logo-icon {
    transform: rotate(-12deg) scale(1.15);
}
