/* ============================================================
   NH-INGÉNIERIE — Feuille de style principale
   Palette exclusive du logo :
     --orange  : #E8420A
     --bleu    : #1A3A6B
     --blanc   : #FFFFFF
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange:      #E8420A;
    --orange-dark: #C23608;
    --orange-light:#FF6633;
    --bleu:        #1A3A6B;
    --bleu-dark:   #0F2347;
    --bleu-mid:    #1E4D8C;
    --blanc:       #FFFFFF;
    --blanc-off:   #F5F7FA;
    --texte:       #0D1E3A;
    --texte-gris:  #4A6080;
    --bordure:     #C5D5E8;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--texte);
    background: var(--blanc);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(26, 58, 107, 0.97);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 58, 107, 0.3);
}

.navbar.scrolled {
    background: rgba(15, 35, 71, 0.99);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.9rem;
    color: var(--orange);
    letter-spacing: 3px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
    animation: slideInLeft 0.8s ease;
}

.logo span {
    color: var(--blanc);
    font-size: 0.6rem;
    letter-spacing: 2px;
    margin-top: 2px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

/* Desktop nav links */
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    animation: slideInRight 0.8s ease;
}

.nav-links a {
    color: var(--blanc);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s ease;
}

.nav-links a:hover          { color: var(--orange); }
.nav-links a:hover::after   { width: 100%; }

/* Hamburger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 4px;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--blanc);
    border-radius: 2px;
    transition: all 0.35s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO CAROUSEL ──────────────────────────────────────── */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

/* ── Carousel wrapper ── */
.carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── Slides ── */
.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease;
    will-change: opacity;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide.prev {
    opacity: 0;
    z-index: 0;
}

/* ── Overlay sombre sur chaque slide ── */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 35, 71, 0.72) 0%,
        rgba(26, 58, 107, 0.55) 50%,
        rgba(232, 66, 10, 0.10) 100%
    );
}

/* ── Contenu texte hero (dans chaque slide) ── */
.hero-content {
    text-align: center;
    color: var(--blanc);
    z-index: 2;
    position: relative;
    max-width: 1000px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

/* ── Flèches de navigation ── */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: var(--blanc);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 25px rgba(232, 66, 10, 0.45);
}

.carousel-prev { left: 2rem; }
.carousel-next { right: 2rem; }

/* ── Dots indicateurs ── */
.carousel-dots {
    position: absolute;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: scale(1.3);
}

/* ── Barre de progression ── */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
}

.carousel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    width: 0%;
    transition: width linear;
}

.hero-content {
    text-align: center;
    color: var(--blanc);
    z-index: 2;
    position: relative;
    max-width: 1000px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(232,66,10,0.15);
    border: 1px solid rgba(232,66,10,0.5);
    color: var(--orange-light);
    padding: 0.4rem 1.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    animation: slideInUp 1s ease;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 5px;
    line-height: 1.0;
    animation: slideInUp 1s ease;
}

.hero h1 .accent {
    color: var(--orange);
    display: block;
    font-size: 3.2rem;
    margin-top: 0.5rem;
}

.hero-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
    margin: 1.5rem auto;
    animation: slideInUp 1s ease 0.1s backwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: slideInUp 1s ease 0.2s backwards;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.85);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: slideInUp 1s ease 0.4s backwards;
    flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
    padding: 1rem 2.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--orange-dark);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before { left: 0; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,66,10,0.4); }

.btn-secondary {
    background: transparent;
    color: var(--blanc);
    border-color: rgba(255,255,255,0.6);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before { left: 0; }
.btn-secondary:hover { border-color: var(--blanc); transform: translateY(-2px); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes slideInLeft  { from { opacity:0; transform:translateX(-30px); } to { opacity:1; transform:translateX(0); } }
@keyframes slideInRight { from { opacity:0; transform:translateX(30px);  } to { opacity:1; transform:translateX(0); } }
@keyframes slideInUp    { from { opacity:0; transform:translateY(30px);  } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp     { from { opacity:0; transform:translateY(20px);  } to { opacity:1; transform:translateY(0); } }
@keyframes gridPulse    { 0%,100% { opacity:0.4; } 50% { opacity:1; } }
@keyframes floatGlow    { 0%,100% { transform:translate(0,0) scale(1); } 50% { transform:translate(-30px,30px) scale(1.1); } }

/* ── LAYOUT HELPERS ──────────────────────────────────────── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section { padding: 6rem 0; position: relative; }

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    color: var(--bleu);
}

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

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--orange);
    margin: 0.8rem auto 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--texte-gris);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── STATS BANNER ────────────────────────────────────────── */
.stats-banner { background: var(--bleu); padding: 3rem 0; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    color: var(--blanc);
    border-right: 1px solid rgba(255,255,255,0.15);
    padding: 1rem;
}
.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--orange);
    letter-spacing: 2px;
    display: block;
    line-height: 1;
}

.stats-grid2 {
    display: flex;          /* Change "grid" en "flex" */
    justify-content: center; /* Centre l'élément horizontalement */
    gap: 2rem;
    text-align: center;
}

.stat-item2 {
    color: var(--blanc);
    /* On peut commenter ou supprimer la bordure */
    border-right: none; 
    padding: 1rem;
}

.stat-label2 {
    /* Augmentation de la taille (auparavant 0.82rem) */
    font-size: 1.5rem; 
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9); /* Un peu plus opaque pour la lisibilité */
    margin-top: 0.5rem;
}




.stat-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    margin-top: 0.5rem;
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about { background: var(--blanc-off); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h3 {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
    color: var(--bleu);
    font-weight: 700;
}

.about-text h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--orange);
    margin-top: 0.5rem;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--texte-gris);
    line-height: 1.85;
}

.about-image {
    background: linear-gradient(135deg, var(--bleu), var(--bleu-dark));
    height: 420px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(232,66,10,0.15);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-light));
}

/* ── SERVICES ────────────────────────────────────────────── */
.services { background: var(--blanc); }

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

.service-card {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-top: 4px solid var(--bleu);
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 0;
    background: var(--orange);
    transition: height 0.4s ease;
}

.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(26,58,107,0.12); border-top-color: var(--orange); }
.service-card:hover::after { height: 100%; }

.service-icon { font-size: 2.5rem; margin-bottom: 1.2rem; display: block; }

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--bleu);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-card p { color: var(--texte-gris); font-size: 0.95rem; line-height: 1.7; }

/* ── DOMAINES ────────────────────────────────────────────── */
.domaines { background: var(--bleu-dark); }
.domaines .section-title   { color: var(--blanc); }
.domaines .section-subtitle { color: rgba(255,255,255,0.65); }

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

.domaine-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--orange);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.domaine-item:hover {
    background: rgba(232,66,10,0.08);
    border-color: rgba(255,255,255,0.2);
    border-left-color: var(--orange-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.domaine-item h3 { font-size: 1.1rem; color: var(--blanc); margin-bottom: 1rem; font-weight: 700; }
.domaine-item p  { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }

.domaine-item ul { list-style: none; padding: 0; }

.domaine-item li {
    color: rgba(255,255,255,0.75);
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.domaine-item li::before { content: '→'; position: absolute; left: 0; color: var(--orange); font-weight: bold; }

/* ── PROJECTS ────────────────────────────────────────────── */
.projects { background: var(--blanc-off); }

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

.project-card {
    background: var(--blanc);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26,58,107,0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 300px;
}

.project-card:hover { box-shadow: 0 12px 40px rgba(26,58,107,0.2); }

.project-image {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--bleu), var(--bleu-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: all 0.3s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,35,71,0.95);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--orange);
}

.project-card:hover .project-overlay { transform: translateY(0); }

.project-overlay h3 { color: var(--orange); font-size: 1.4rem; margin-bottom: 1rem; font-weight: 700; }
.project-overlay p  { color: rgba(255,255,255,0.85); font-size: 0.95rem; line-height: 1.65; }

/* ── VALUES ──────────────────────────────────────────────── */
.values { background: var(--blanc); }

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

.value-item {
    background: var(--blanc);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(26,58,107,0.07);
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--bordure);
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--orange);
    transition: width 0.4s ease;
}

.value-item:hover::before { width: 100%; }
.value-item:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(26,58,107,0.13); }

.value-icon { font-size: 3rem; margin-bottom: 1.2rem; display: block; }
.value-item h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--bleu); font-weight: 700; letter-spacing: 0.5px; }
.value-item p  { color: var(--texte-gris); font-size: 0.92rem; line-height: 1.65; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact { background: var(--blanc-off); }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 3rem;
}

.contact-info { display: grid; gap: 2rem; }

.contact-item { display: flex; gap: 1.5rem; align-items: flex-start; }

.contact-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    background: var(--bleu);
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.contact-details h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--bleu);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details p  { color: var(--texte-gris); font-size: 0.95rem; line-height: 1.6; }
.contact-details a  { color: var(--orange); text-decoration: none; transition: color 0.3s ease; }
.contact-details a:hover { color: var(--orange-dark); text-decoration: underline; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--blanc);
    padding: 2.5rem;
    border-top: 4px solid var(--orange);
    box-shadow: 0 4px 25px rgba(26,58,107,0.08);
}

.contact-form h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--bleu);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--texte);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 2px solid var(--bordure);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    background: var(--blanc-off);
    border-radius: 0;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--bleu); background: var(--blanc); }

.form-group textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--bleu-dark); color: var(--blanc); padding: 4rem 0 0; }

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--blanc);
    letter-spacing: 3px;
}

.footer-brand span { color: var(--orange); }

.footer-section h3 {
    margin-bottom: 1.2rem;
    color: var(--orange);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.footer-section p  { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.7; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.6rem; }
.footer-section a  { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s ease; font-size: 0.9rem; }
.footer-section a:hover { color: var(--orange); }

.social-links { display: flex; gap: 1rem; margin-top: 1rem; }

.social-links a {
    font-size: 1.3rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.07);
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    color: var(--blanc);
}

.social-links a:hover { transform: translateY(-3px); background: var(--orange); }

.footer-newsletter input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.07);
    color: var(--blanc);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.75rem;
    outline: none;
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter input:focus { border-color: var(--orange); }

.footer-newsletter .btn { width: 100%; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 2rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
}

.footer-bottom span { color: var(--orange); }

/* ── SCROLL TO TOP ───────────────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--orange);
    color: var(--blanc);
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(232,66,10,0.4);
}

.scroll-top.visible { opacity: 1; }
.scroll-top:hover   { background: var(--orange-dark); transform: translateY(-3px); }

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

/* Tablet : ≤ 1024px */
@media (max-width: 1024px) {
    .nav-links { gap: 1.5rem; }
    .hero h1   { font-size: 4rem; }
    .hero h1 .accent { font-size: 2.5rem; }
    .about-content { gap: 3rem; }
}

/* Mobile : ≤ 768px */
@media (max-width: 768px) {

    /* -- Hamburger visible, liens cachés par défaut */
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(75vw, 300px);
        height: 100vh;
        background: var(--bleu-dark);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 0;
        padding: 6rem 2.5rem 3rem;
        transition: right 0.4s cubic-bezier(0.77,0,0.175,1);
        box-shadow: -8px 0 30px rgba(0,0,0,0.3);
        overflow-y: auto;
    }

    .nav-links.open { right: 0; }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        letter-spacing: 2px;
    }

    .nav-links a::after { display: none; }

    /* Overlay sombre derrière le menu */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .nav-overlay.open { display: block; }

    /* Hero / Carousel */
    .hero h1          { font-size: 2.8rem; }
    .hero h1 .accent  { font-size: 2rem; }
    .hero p           { font-size: 1rem; }

    .carousel-btn     { width: 44px; height: 44px; }
    .carousel-prev    { left: 0.75rem; }
    .carousel-next    { right: 0.75rem; }

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

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .stat-item:nth-child(even)  { }
    .stat-item:last-child        { border-bottom: none; }
    .stat-item:nth-last-child(2) { border-bottom: none; }

    /* Layout grilles */
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image { height: 260px; font-size: 60px; }

    /* CTA buttons */
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn         { width: 100%; max-width: 300px; text-align: center; }

    /* Form */
    .contact-form { padding: 1.5rem; }

    /* Sections */
    section { padding: 4rem 0; }
    .section-title { font-size: 2.2rem; }
}

/* Très petit : ≤ 400px */
@media (max-width: 400px) {
    .nav-container { padding: 1rem 1.2rem; }
    .hero h1       { font-size: 2.2rem; }
    .hero h1 .accent { font-size: 1.6rem; }
    .hero-badge    { font-size: 0.68rem; letter-spacing: 1.5px; padding: 0.35rem 1rem; }
    .stat-number   { font-size: 2.5rem; }
}
