/* ============================================
   CIMAWEB — multiColumnTemplate.css
   Charte graphique : Tech / Moderne — Bleu lac
   Police : Nunito (arrondie, douce, lisible)
   ============================================ */

/* --- Variables --- */
:root {
    --blue-deep:    #0a1628;
    --blue-mid:     #0d2d5e;
    --blue-lac:     #1a6b9a;
    --blue-bright:  #2a9fd6;
    --blue-light:   #5bc4f0;
    --accent:       #38c9f0;
    --white:        #f4f9fc;
    --text-muted:   rgba(244, 249, 252, 0.65);
    --border:       rgba(56, 201, 240, 0.12);
    --font-display: 'Nunito', sans-serif;
    --font-body:    'Nunito', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--white);
    background: var(--blue-deep);
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ============================================
   NAVIGATION
   ============================================ */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10,22,40,0.97), rgba(10,22,40,0.85));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    color: var(--white);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-inner {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.logo-peak {
    display: block;
    color: var(--white);
    position: relative;
    z-index: 2;
    margin-bottom: -8px;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.3rem;
    letter-spacing: 4px;
    color: var(--white);
    position: relative;
    z-index: 1;
    line-height: 1;
}
.logo-text span {
    font-weight: 800;
    color: var(--accent);
}

.footer-inner .logo-peak { color: rgba(244,249,252,0.6); }
.footer-inner .logo-text { font-size: 1.1rem; color: rgba(244,249,252,0.6); }

nav ul { display: flex; list-style: none; gap: 20px; }
nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}
nav ul li a:hover { color: var(--accent); }

.nav-cta {
    background: var(--accent);
    color: var(--blue-deep);
    padding: 9px 22px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--blue-light); transform: translateY(-1px); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 48px 80px;
    overflow: hidden;
    /* Photo + overlay dégradé bleu foncé */
    background:
        linear-gradient(
            to bottom,
            rgba(10,22,40,0.20) 0%,
            rgba(10,22,40,0.10) 25%,
            rgba(10,22,40,0.50) 65%,
            rgba(10,22,40,0.94) 100%
        ),
        url('../images/PageDeGarde.JPEG') no-repeat center center / cover;
}

/* Grille tech subtile */
.hero-grid {
    position: absolute; inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(var(--blue-bright) 1px, transparent 1px),
        linear-gradient(90deg, var(--blue-bright) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Cercles décoratifs */
.hero-circle {
    position: absolute;
    top: 12%; right: 7%;
    width: 340px; height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(56,201,240,0.10);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}
.hero-circle::before {
    content: ''; position: absolute; inset: 24px;
    border-radius: 50%; border: 1px solid rgba(56,201,240,0.07);
}
.hero-circle::after {
    content: ''; position: absolute; inset: 64px;
    border-radius: 50%; border: 1px solid rgba(56,201,240,0.05);
}
@keyframes pulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.04); opacity: 0.7; }
}

/* Point lumineux */
.hero-dot {
    position: absolute; top: 44%; right: 22%;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(56,201,240,0.18), 0 0 22px rgba(56,201,240,0.4);
    animation: blink 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes blink {
    0%,100% { box-shadow: 0 0 0 5px rgba(56,201,240,0.18), 0 0 22px rgba(56,201,240,0.4); }
    50%      { box-shadow: 0 0 0 10px rgba(56,201,240,0.08), 0 0 45px rgba(56,201,240,0.6); }
}

/* Contenu hero */
.hero-content {
    position: relative; z-index: 2;
    max-width: 700px;
    animation: fadeUp 0.7s ease both;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(56,201,240,0.08);
    border: 1px solid rgba(56,201,240,0.25);
    padding: 6px 16px; border-radius: 20px;
    font-size: 11px; font-weight: 400;
    color: var(--accent); letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 28px;
}
.hero-tag::before {
    content: ''; width: 6px; height: 6px;
    border-radius: 50%; background: var(--accent);
    animation: blink 2s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 24px;
    animation: fadeUp 0.7s 0.1s ease both;
}

.accent { color: var(--accent); font-style: normal; font-weight: 700; }

.hero-sub {
    font-size: 16px; font-weight: 300; line-height: 1.8;
    color: var(--text-muted); max-width: 460px;
    margin-bottom: 40px;
    animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions {
    display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
    animation: fadeUp 0.7s 0.3s ease both;
}

/* Boutons */
.btn-primary {
    display: inline-block;
    background: var(--accent); color: var(--blue-deep);
    padding: 13px 30px; border-radius: 20px;
    font-family: var(--font-body); font-weight: 700;
    font-size: 14px; text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(56,201,240,0.28);
}
.btn-primary.btn-large { padding: 15px 44px; font-size: 15px; }

.btn-secondary {
    color: var(--white); font-size: 14px; font-weight: 400;
    text-decoration: none; display: inline-flex;
    align-items: center; gap: 8px;
    transition: color 0.2s, gap 0.2s;
}
.btn-secondary::after { content: '→'; }
.btn-secondary:hover { color: var(--accent); gap: 14px; }

/* Stats hero */
.hero-stats {
    position: absolute; bottom: 80px; right: 48px;
    display: flex; gap: 36px; z-index: 2;
    animation: fadeUp 0.7s 0.4s ease both;
}
.stat { text-align: right; }
.stat-num {
    font-family: var(--font-display); font-weight: 800;
    font-size: 28px; color: var(--accent); line-height: 1;
}
.stat-label {
    font-size: 11px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; margin-top: 5px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TITRES DE SECTION
   ============================================ */
.section-tag {
    font-size: 11px; text-transform: uppercase;
    letter-spacing: 2px; color: var(--accent);
    font-weight: 400; margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
}
.section-tag::before {
    content: ''; display: block;
    width: 28px; height: 1px; background: var(--accent);
}

.section-title {
    font-family: var(--font-display); font-weight: 300;
    font-style: italic;
    font-size: clamp(26px, 3.5vw, 42px);
    line-height: 1.2; letter-spacing: 0;
    margin-bottom: 56px; max-width: 480px;
}

/* ============================================
   SERVICES
   ============================================ */
.services-section { padding: 100px 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.service-card {
    background: rgba(13,45,94,0.28);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px 28px;
    position: relative; overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}
.service-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(56,201,240,0.04), transparent);
    opacity: 0; transition: opacity 0.3s;
    border-radius: 12px;
}
.service-card:hover { border-color: rgba(56,201,240,0.35); transform: translateY(-5px); }
.service-card:hover::before { opacity: 1; }

.service-num {
    font-size: 11px; font-weight: 400;
    color: var(--accent); letter-spacing: 2px;
    opacity: 0.5; margin-bottom: 18px;
}
.service-icon { font-size: 24px; display: block; margin-bottom: 14px; }

.service-card h3 {
    font-family: var(--font-display);
    font-weight: 400; font-style: italic;
    font-size: 19px; margin-bottom: 10px;
    color: var(--white);
}
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.75; }

.services-note {
    margin-top: 36px;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(56,201,240,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 22px;
    line-height: 1.7;
}

/* ============================================
   POURQUOI CIMAWEB
   ============================================ */
.why-section {
    padding: 100px 0;
    background: rgba(13,45,94,0.18);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}

.why-visual {
    position: relative; height: 380px;
    background: linear-gradient(135deg, rgba(26,107,154,0.22), rgba(13,45,94,0.5));
    border: 1px solid rgba(56,201,240,0.12);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.why-visual::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(56,201,240,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.why-visual-inner { text-align: center; position: relative; z-index: 1; }
.why-map-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--accent); margin: 0 auto 14px;
    box-shadow: 0 0 0 6px rgba(56,201,240,0.15), 0 0 30px rgba(56,201,240,0.3);
    animation: blink 2s ease-in-out infinite;
}
.why-map-label {
    font-family: var(--font-display); font-weight: 400;
    font-style: italic; font-size: 16px; color: var(--white);
}
.why-map-sub { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.why-content .section-title { margin-bottom: 36px; }

.why-items { display: flex; flex-direction: column; gap: 28px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }

.why-bullet {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(56,201,240,0.08);
    border: 1px solid rgba(56,201,240,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}

.why-text h4 {
    font-family: var(--font-display); font-weight: 700;
    font-size: 15px; margin-bottom: 5px; color: var(--white);
}
.why-text p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ============================================
   CTA CONTACT
   ============================================ */
.cta-section {
    padding: 120px 0; text-align: center;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(56,201,240,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-display); font-weight: 300;
    font-style: italic;
    font-size: clamp(28px, 4.5vw, 54px);
    line-height: 1.2; letter-spacing: 0;
    margin-bottom: 18px; position: relative;
}
.cta-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 44px; position: relative; }

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 40px 48px;
    border-top: 1px solid var(--border);
    background: rgba(10,22,40,0.6);
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; flex-direction: column;
    align-items: center; gap: 10px; text-align: center;
}
.footer-note { font-size: 13px; color: var(--text-muted); }
.footer-copy { font-size: 12px; color: rgba(244,249,252,0.3); }

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */
@media (max-width: 900px) {
    .container { padding: 0 24px; }
    .header-inner { padding: 0 24px; gap: 20px; }
    nav { display: none; }
    .hero { padding: 0 24px 60px; }
    .hero-title { font-size: clamp(32px, 9vw, 52px); }
    .hero-circle { display: none; }
    .hero-stats { right: 24px; gap: 20px; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .why-grid { grid-template-columns: 1fr; gap: 40px; }
    .why-visual { height: 220px; }
    .section-title { font-size: clamp(24px, 6vw, 34px); }
}

@media (max-width: 600px) {
    .hero-stats { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .hero-title { letter-spacing: 0; }
    .cta-title { font-size: clamp(24px, 7vw, 36px); }
    footer { padding: 32px 24px; }
    .hero { padding: 0 20px 48px; }
}