/* ============================================
   DATAOPTIME — CHARTE GRAPHIQUE OFFICIELLE
   ============================================ */

/* Google Fonts — Century Gothic approximation */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

/* ============================================
   VARIABLES CSS — Couleurs officielles
   ============================================ */
:root {
    --blue:        #4578b9;
    --blue-dark:   #1E3A5F;
    --blue-light:  #EEF3FA;
    --orange:      #f29304;
    --orange-light:#FFF4E6;
    --black:       #000000;
    --white:       #FFFFFF;
    --gray-light:  #F5F7FA;
    --gray:        #888888;
    --gray-dark:   #333333;
    --font:        'Nunito', 'Century Gothic', Arial, sans-serif;
    --shadow:      0 4px 20px rgba(0,0,0,0.08);
    --radius:      8px;
    --transition:  all 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--gray-dark);
    background-color: var(--white);
    line-height: 1.6;
}

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

a:hover {
    color: var(--orange);
}

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

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background-color: var(--white);
    border-bottom: 3px solid var(--orange);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

.navbar-logo img {
    height: 45px;
    width: auto;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.navbar-menu a {
    color: var(--black);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--blue);
    border-bottom-color: var(--orange);
}

.navbar-cta {
    background-color: var(--orange);
    color: var(--white) !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: var(--radius);
    border-bottom: none !important;
    font-weight: 700 !important;
}

.navbar-cta:hover {
    background-color: var(--blue) !important;
    color: var(--white) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--blue-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive navigation */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 73px;
        left: -2rem;
        right: -2rem;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 2rem 2rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        gap: 0;
        border-top: 2px solid var(--orange);
    }

    .navbar-menu.open {
        display: flex;
    }

    .navbar-menu li {
        width: 100%;
        border-bottom: 1px solid var(--gray-light);
    }

    .navbar-menu a {
        display: block;
        padding: 0.9rem 0;
        border-bottom: none !important;
    }

    .navbar-cta {
        margin-top: 1rem;
        display: block;
        text-align: center;
    }
}

/* ============================================
   BOUTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-family: var(--font);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn-secondary:hover {
    background-color: var(--blue);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--blue-dark);
    border-color: var(--white);
}

.btn-white:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 2rem;
}

.section-white  { background-color: var(--white); }
.section-gray   { background-color: var(--gray-light); }
.section-blue   { background-color: var(--blue-dark); }
.section-orange { background-color: var(--orange); }

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.section-title h2 span {
    color: var(--orange);
}

.section-title .underline {
    width: 60px;
    height: 4px;
    background-color: var(--orange);
    margin: 0.75rem auto 1rem;
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-top-color: var(--orange);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    line-height: 1;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    color: var(--white);
    padding: 100px 2rem;
    text-align: center;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--orange);
}

.hero-stat span {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--blue-dark);
    color: var(--white);
    padding: 60px 2rem 20px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: var(--orange);
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer p,
.footer a {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 2;
}

.footer a:hover {
    color: var(--orange);
}

.footer ul {
    list-style: none;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

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

    .navbar-menu { display: none; }

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

    .section { padding: 60px 1.5rem; }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}