:root {
    --dark: #1A2332;
    --dark2: #111926;
    --orange: #E07B2A;
    --orange2: #F08C3A;
    --light: #E8EDF2;
    --muted: #8FA3B8;
    --muted2: #4A6070;
    --white: #FFFFFF;
    --section-bg: #F4F6F8;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
}

/* ─── NAVBAR ─── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(26, 35, 50, 0.97);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5vw;
    height: 64px;
    border-bottom: 2px solid var(--orange);
}

.nav-logo {
    display: flex; align-items: center; gap: 14px;
    text-decoration: none;
}
.nav-logo svg { width: 44px; height: 40px; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .initials {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px; font-weight: 800; letter-spacing: 4px;
    color: var(--white); line-height: 1;
}
.nav-logo-text .fullname {
    font-size: 9px; letter-spacing: 2px; color: var(--muted);
    text-transform: uppercase;
}

.nav-links {
    display: flex; gap: 36px; list-style: none;
}
.nav-links a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--muted);
    text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--orange); }

.nav-cta {
    background: var(--orange); color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; padding: 9px 22px;
    border: none; cursor: pointer; text-decoration: none;
    transition: background .2s;
}
.nav-cta:hover { background: var(--orange2); }

/* ─── HERO ─── */
#accueil {
    min-height: 100vh;
    background: var(--dark2);
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 100px 5vw 60px;
}

/* Motif grille industrielle en fond */
#accueil::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
    linear-gradient(rgba(224,123,42,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,123,42,.07) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
/* Dégradé diagonal */
#accueil::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(26,35,50,0) 40%, rgba(224,123,42,.12) 100%);
    pointer-events: none;
}

/* Grande roue décorative en arrière-plan */
.hero-gear-bg {
    position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
    width: 580px; height: 580px; opacity: .06;
    animation: spin 40s linear infinite;
}

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.hero-content {
    position: relative; z-index: 2;
    max-width: 680px;
}

.hero-tag {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px; font-weight: 600; letter-spacing: 4px;
    text-transform: uppercase; color: var(--orange);
    border: 1px solid var(--orange);
    padding: 5px 14px; margin-bottom: 28px;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(52px, 8vw, 88px);
    font-weight: 800; line-height: .95; letter-spacing: -1px;
    color: var(--white); margin-bottom: 10px;
}
.hero-title span { color: var(--orange); }

.hero-sub {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(18px, 3vw, 26px); font-weight: 300;
    color: var(--muted); letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-divider {
    width: 60px; height: 3px; background: var(--orange); margin-bottom: 28px;
}

.hero-desc {
    font-size: 16px; line-height: 1.8; color: var(--muted);
    max-width: 520px; margin-bottom: 44px;
}

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

.btn-primary {
    background: var(--orange); color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; padding: 14px 32px;
    text-decoration: none; transition: background .2s, transform .15s;
    display: inline-block;
}
.btn-primary:hover { background: var(--orange2); transform: translateY(-2px); }

.btn-secondary {
    background: transparent; color: var(--light);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; padding: 13px 32px;
    border: 1px solid var(--muted2); text-decoration: none;
    transition: border-color .2s, color .2s;
    display: inline-block;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

.hero-stats {
    position: absolute; bottom: 48px; right: 5vw; z-index: 2;
    display: flex; gap: 40px;
}
.stat { text-align: center; }
.stat-n {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px; font-weight: 800; color: var(--orange); line-height: 1;
}
.stat-l {
    font-size: 10px; letter-spacing: 2px; color: var(--muted);
    text-transform: uppercase; margin-top: 4px;
}

/* ─── SECTIONS COMMUNES ─── */
section { padding: 90px 5vw; }

.section-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px; font-weight: 600; letter-spacing: 4px;
    text-transform: uppercase; color: var(--orange);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(32px, 5vw, 52px); font-weight: 800;
    line-height: 1; letter-spacing: -1px;
    color: var(--dark); margin-bottom: 16px;
}
.section-title.light { color: var(--white); }

.section-divider {
    width: 48px; height: 3px; background: var(--orange); margin-bottom: 32px;
}

/* ─── SERVICES ─── */
#services { background: var(--section-bg); }

.services-intro {
    font-size: 16px; line-height: 1.8; color: var(--muted2);
    max-width: 600px; margin-bottom: 56px;
}

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

.service-card {
    background: var(--white);
    padding: 36px 32px;
    border-top: 3px solid transparent;
    transition: border-color .25s, transform .25s, box-shadow .25s;
    position: relative; overflow: hidden;
}
.service-card:hover {
    border-top-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26,35,50,.1);
    z-index: 1;
}

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

.service-num {
    position: absolute; top: 20px; right: 24px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 60px; font-weight: 800; color: var(--section-bg);
    line-height: 1; user-select: none;
    transition: color .25s;
}
.service-card:hover .service-num { color: rgba(224,123,42,.08); }

.service-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px; font-weight: 700; letter-spacing: 1px;
    color: var(--dark); margin-bottom: 12px; text-transform: uppercase;
}

.service-desc { font-size: 14px; line-height: 1.7; color: var(--muted2); }

/* ─── À PROPOS ─── */
#apropos {
    background: var(--dark);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}

.apropos-visual {
    position: relative;
    display: flex; justify-content: center; align-items: center;
}

.apropos-logo-wrap {
    background: var(--dark2);
    border: 1px solid rgba(255,255,255,.07);
    padding: 48px;
    position: relative;
}
.apropos-logo-wrap::before {
    content: '';
    position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--orange), transparent) 1;
}

.apropos-accent-bar {
    position: absolute; left: -20px; top: 40px;
    width: 4px; height: 80px; background: var(--orange);
}

.apropos-text .section-title { color: var(--white); }

.apropos-lead {
    font-size: 17px; line-height: 1.8; color: var(--light);
    margin-bottom: 24px;
}
.apropos-body {
    font-size: 14px; line-height: 1.8; color: var(--muted);
    margin-bottom: 36px;
}

.apropos-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.apropos-list li {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; color: var(--light);
}
.apropos-list li::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--orange);
    flex-shrink: 0;
    transform: rotate(45deg);
}

/* ─── ZONE D'INTERVENTION ─── */
#zone { background: var(--white); }

.zone-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}

.zone-desc {
    font-size: 15px; line-height: 1.8; color: var(--muted2); margin-bottom: 32px;
}

.zone-list {
    list-style: none; display: flex; flex-direction: column; gap: 0;
}
.zone-list li {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #E8EDF2;
    font-size: 15px; font-weight: 500; color: var(--dark);
}
.zone-list li span {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px; letter-spacing: 2px; color: var(--muted);
    text-transform: uppercase; margin-left: auto;
}
.zone-dot {
    width: 8px; height: 8px; background: var(--orange);
    transform: rotate(45deg); flex-shrink: 0;
}

.zone-map-placeholder {
    background: var(--section-bg);
    border: 2px dashed #D0D8E0;
    aspect-ratio: 4/3;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--muted); gap: 12px;
    padding: 24px;
}
.zone-map-placeholder svg { opacity: .4; }
.zone-map-placeholder p {
    font-size: 12px; letter-spacing: 1px; text-align: center;
    color: var(--muted2);
}

/* ─── CONTACT ─── */
#contact { background: var(--dark2); position: relative; overflow: hidden; }
#contact::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
    linear-gradient(rgba(224,123,42,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,123,42,.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.contact-wrap {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}

.contact-info .section-title { color: var(--white); }
.contact-lead {
    font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 40px;
}

.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
    display: flex; align-items: flex-start; gap: 16px;
}
.contact-item-icon {
    width: 42px; height: 42px; background: rgba(224,123,42,.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--orange); flex-shrink: 0;
}
.contact-item-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 4px;
}
.contact-item-value {
    font-size: 15px; font-weight: 500; color: var(--light);
}

/* Formulaire */
.contact-form { display: flex; flex-direction: column; gap: 16px; }

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

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--light); font-family: 'Barlow', sans-serif;
    font-size: 14px; padding: 12px 16px;
    outline: none; transition: border-color .2s;
    width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--dark2); }

.form-submit {
    background: var(--orange); color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; padding: 15px 32px;
    border: none; cursor: pointer; align-self: flex-start;
    transition: background .2s, transform .15s;
}
.form-submit:hover { background: var(--orange2); transform: translateY(-2px); }

/* ─── RÉSEAUX SOCIAUX ─── */
.social-block {
    margin-top: 36px;
}
.social-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 14px;
}
.social-links {
    display: flex; gap: 12px;
}
.social-link {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 18px;
    border: 1px solid rgba(255,255,255,.1);
    color: var(--muted);
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: border-color .2s, color .2s, background .2s;
}
.social-link:hover {
    border-color: var(--orange);
    color: var(--white);
    background: rgba(224,123,42,.08);
}
.social-link svg { flex-shrink: 0; }

/* Icônes dans le footer */
.footer-social { display: flex; gap: 10px; }
.footer-social-icon {
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted2);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.footer-social-icon:hover { border-color: var(--orange); color: var(--orange); }

/* ─── FOOTER ─── */
footer {
    background: #0D1520;
    border-top: 2px solid var(--orange);
    padding: 32px 5vw;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}

.footer-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px; font-weight: 800; letter-spacing: 4px;
    color: var(--white);
}
.footer-logo span { color: var(--orange); }

.footer-copy {
    font-size: 12px; color: var(--muted2); letter-spacing: 1px;
}

.footer-links {
    display: flex; gap: 24px; list-style: none;
}
.footer-links a {
    font-size: 12px; letter-spacing: 1px; color: var(--muted2);
    text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: var(--orange); }

/* ─── ANIMATIONS ENTRÉE ─── */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    #apropos, .zone-grid, .contact-wrap { grid-template-columns: 1fr; }
    .hero-stats { position: static; margin-top: 40px; }
    .form-row { grid-template-columns: 1fr; }
    #accueil { padding-bottom: 40px; }
}

/* ---------------- */
/*  ALERT           */
/* ---------------- */


/* Style de base et animation d'apparition */
.alert {
  display: flex;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 6px;
  font-family: sans-serif;
  font-size: 14px;
  border: 1px solid transparent;
  
  /* Animation d'apparition par défaut */
  animation: fadeIn 0.3s ease-out forwards;
  transition: all 0.3s ease-out; /* Pour une disparition fluide */
  max-height: 100px; /* Nécessaire pour animer la hauteur à la fermeture */
  opacity: 1;
}

/* Classe ajoutée pour l'animation de fermeture */
.alert.fade-out {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  border-width: 0;
  overflow: hidden;
}

/* Structure interne */
.alert-icon { margin-right: 12px; font-size: 16px; font-weight: bold; }
.alert-content { flex-grow: 1; }
.alert-close {
  background: none; border: none; font-size: 20px; font-weight: bold;
  cursor: pointer; opacity: 0.6; padding: 0 4px; line-height: 1;
  transition: opacity 0.2s;
}
.alert-close:hover { opacity: 1; }

/* Couleurs */
.success { background-color: #e6f4ea; color: #137333; }
.error { background-color: #fce8e6; color: #c5221f; }

/* Keyframes pour l'apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
