/* ========================================
   IC Europe — Charte graphique Insight Connect
   Couleurs : #00496A (bleu principal), blanc, gris
   ======================================== */

:root {
    --blue: #00496A;
    --blue-light: #006994;
    --blue-dark: #003550;
    --blue-pale: #e8f4f8;
    --text: #2a2a2a;
    --text-light: #69727d;
    --bg: #ffffff;
    --bg-alt: #f7f9fb;
    --border: #e2e8f0;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0, 73, 106, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 73, 106, 0.12);
    --transition: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo-img {
    height: 44px;
    width: auto;
    transition: opacity var(--transition);
}

.logo-dark {
    display: none;
}

.navbar.scrolled .logo-light {
    display: none;
}

.navbar.scrolled .logo-dark {
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition);
}

.navbar.scrolled .nav-links a {
    color: var(--text);
}

.nav-links a:hover {
    color: #fff;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--blue);
}

.btn-nav {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 8px 20px !important;
    border-radius: var(--radius) !important;
    color: #fff !important;
}

.navbar.scrolled .btn-nav {
    background: var(--blue) !important;
    border-color: var(--blue) !important;
    color: #fff !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: background var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--text);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: #fff;
    color: var(--blue);
    border-color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* Section button overrides */
.section-cta .btn-primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.section-cta .btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--blue);
    color: #fff;
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.section-accent {
    background: var(--bg-alt);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 56px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== GRID ===== */
.grid {
    display: grid;
    gap: 32px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ===== CARDS (Services) ===== */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--blue);
    margin-bottom: 20px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== STEPS (Méthode) ===== */
.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.step-line {
    width: 2px;
    height: 0;
    border-left: 2px dashed rgba(255, 255, 255, 0.2);
    align-self: stretch;
    min-height: 40px;
    display: none;
}

/* ===== ATOUTS ===== */
.atout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    border-radius: var(--radius-lg);
    transition: background var(--transition);
}

.atout:hover {
    background: var(--bg-alt);
}

.atout-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--blue);
    margin-top: 2px;
}

.atout-icon svg {
    width: 100%;
    height: 100%;
}

.atout h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.atout p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== TAGS (Secteurs) ===== */
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tag {
    padding: 10px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}

.tag:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-pale);
}

/* ===== TEAM ===== */
.team-card {
    text-align: center;
    padding: 40px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow);
}

.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--blue);
}

.team-avatar svg {
    width: 100%;
    height: 100%;
}

.team-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== CONTACT / CTA ===== */
.section-cta {
    background: var(--bg-alt);
    text-align: center;
}

.section-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-cta > .container > p {
    color: var(--text-light);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

.contact-form {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 28px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 73, 106, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    display: block;
    width: 100%;
    text-align: center;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    color: #fff;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .step {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        color: var(--text) !important;
        font-size: 1rem;
    }

    .nav-links a:hover {
        color: var(--blue) !important;
    }

    .btn-nav {
        background: var(--blue) !important;
        color: #fff !important;
        text-align: center;
        border-color: var(--blue) !important;
    }

    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 64px 0;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .atout {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .container {
        padding: 0 16px;
    }
}
