/* =========================================================
   GENERALLS Transports & Logistisch
   Feuille de style principale - design moderne, professionnel
   ========================================================= */

:root {
    --bleu-primaire: #0a2540;
    --bleu-fonce:    #051a30;
    --bleu-clair:    #1d5fa8;
    --orange:        #ff7a00;
    --orange-hover:  #e56b00;
    --vert:          #1e8e6e;

    --bg:            #ffffff;
    --bg-alt:        #f5f7fb;
    --bg-card:       #ffffff;
    --texte:         #1f2937;
    --texte-clair:   #5a6478;
    --bordure:       #e6ebf2;

    --topbar-bg:     #051a30;
    --topbar-color:  #cfd5e0;

    --ombre:         0 6px 20px rgba(10, 37, 64, 0.08);
    --ombre-forte:   0 12px 32px rgba(10, 37, 64, 0.15);
    --radius:        10px;
    --transition:    .25s ease;
}

html.theme-dark {
    --bleu-primaire: #1d5fa8;
    --bleu-fonce:    #0f2a4d;
    --bleu-clair:    #4a7bd1;
    --bg:            #0d1424;
    --bg-alt:        #131c30;
    --bg-card:       #1a2540;
    --texte:         #e6ebf2;
    --texte-clair:   #a8b2c8;
    --bordure:       #2a3552;
    --topbar-bg:     #050d1f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--texte);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a   { color: var(--bleu-clair); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 { color: var(--texte); line-height: 1.25; }
h1 { font-size: 2.6rem; font-weight: 800; }
h2 { font-size: 2rem;   font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
p  { color: var(--texte-clair); }

/* ===== Boutons ===== */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
}
.btn-primary:hover { background: var(--orange-hover); color: #fff; transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-outline:hover { background: #fff; color: var(--bleu-primaire); }
.btn-ghost {
    background: var(--bg-alt);
    color: var(--bleu-primaire);
    border: 1px solid var(--bordure);
}
.btn-ghost:hover { background: var(--bleu-primaire); color: #fff; }

/* ===== Topbar ===== */
.topbar {
    background: var(--topbar-bg);
    color: var(--topbar-color);
    font-size: .85rem;
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.topbar a { color: var(--topbar-color); margin-right: 18px; }
.topbar a:hover { color: var(--orange); }
.topbar-right { display: flex; gap: 12px; align-items: center; }
.wa-link {
    background: #25d366;
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
}
.wa-link:hover { background: #1ebe5d; }
.theme-toggle {
    background: none;
    border: 1px solid var(--topbar-color);
    color: var(--topbar-color);
    cursor: pointer;
    width: 32px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.theme-toggle:hover { background: rgba(255,255,255,0.1); }
.theme-icon-dark { display: none; }
html.theme-dark .theme-icon-light { display: none; }
html.theme-dark .theme-icon-dark  { display: inline; }

/* ===== Header ===== */
.site-header {
    background: var(--bg);
    box-shadow: var(--ombre);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--bordure);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 20px;
}
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    line-height: 0;
}
.logo-img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    transition: transform .2s;
}
.logo:hover .logo-img { transform: scale(1.03); }
.main-nav {
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: nowrap;
}
.main-nav a {
    color: var(--texte);
    font-weight: 500;
    font-size: .95rem;
    white-space: nowrap;
    position: relative;
    padding: 6px 0;
}
.main-nav a.active,
.main-nav a:hover { color: var(--bleu-primaire); }
html.theme-dark .main-nav a.active,
html.theme-dark .main-nav a:hover { color: var(--orange); }
.main-nav a.active::after,
.main-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--orange);
}
.btn-header {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 20px;
    font-size: .9rem;
}
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--bleu-primaire);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
}
.slider { position: absolute; inset: 0; }
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.slide.active { opacity: 1; }
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5,26,48,0.92), rgba(10,37,64,0.65));
}
.slide-1 { background-image: linear-gradient(135deg, #0a2540, #1d5fa8); }
.slide-2 { background-image: linear-gradient(135deg, #051a30, #ff7a00); }
.slide-3 { background-image: linear-gradient(135deg, #0a2540, #1e8e6e); }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 60px 20px;
}
.hero-content small.eyebrow {
    display: inline-block;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.hero-content h1 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 3rem;
}
.hero-content p {
    color: rgba(255,255,255,0.92);
    font-size: 1.2rem;
    margin-bottom: 1.8rem;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.slider-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}
.slider-dots button.active { background: var(--orange); border-color: var(--orange); }

.hero-strip {
    background: var(--bleu-primaire);
    color: #fff;
    padding: 18px 0;
}
.hero-strip .container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: .95rem;
}
.hero-strip span::before {
    content: '\2713  ';
    color: var(--orange);
    font-weight: 700;
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section-titre { text-align: center; margin-bottom: 50px; }
.section-titre small {
    display: inline-block;
    color: var(--orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .85rem;
    margin-bottom: 10px;
}
.section-titre h2 { margin-bottom: 12px; }
.section-titre p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--texte-clair);
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 26px;
}
.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 26px;
    box-shadow: var(--ombre);
    border: 1px solid var(--bordure);
    border-top: 4px solid var(--bleu-primaire);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombre-forte);
    border-top-color: var(--orange);
}
.service-card .resume {
    font-style: italic;
    color: var(--texte-clair);
    margin-bottom: 10px;
    font-size: .9rem;
}
.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bleu-primaire), var(--bleu-clair));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 18px;
}

/* ===== Chiffres ===== */
.stats {
    background: var(--bleu-primaire);
    color: #fff;
    padding: 60px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-item .nombre {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--orange);
    display: block;
}
.stat-item .label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .85rem;
    opacity: .9;
}

/* ===== A propos ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image {
    height: 420px;
    background: linear-gradient(135deg, var(--bleu-primaire), var(--bleu-clair));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 5rem;
    box-shadow: var(--ombre-forte);
    position: relative;
    overflow: hidden;
}
.values-list { margin-top: 20px; }
.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
}
.values-list li::before {
    content: '\2713';
    color: #fff;
    background: var(--orange);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: .9rem;
}

/* ===== Equipe ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px;
}
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--bordure);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--ombre);
    transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-6px); }
.team-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--bleu-primaire), var(--orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
}
.team-card .poste {
    color: var(--orange);
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 12px;
    display: block;
}

/* ===== References ===== */
.refs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.ref-item {
    background: var(--bg-card);
    border: 1px solid var(--bordure);
    border-radius: var(--radius);
    padding: 28px 12px;
    text-align: center;
    transition: var(--transition);
}
.ref-item:hover {
    transform: scale(1.04);
    box-shadow: var(--ombre);
    border-color: var(--orange);
}
.ref-item strong {
    display: block;
    font-size: 1.5rem;
    color: var(--bleu-primaire);
}
.ref-item span {
    font-size: .85rem;
    color: var(--texte-clair);
}

/* ===== Flotte ===== */
.fleet-card {
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--bordure);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--ombre);
    margin-bottom: 18px;
}
.fleet-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--bleu-primaire), var(--bleu-clair));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}
.fleet-info { flex: 1; }
.fleet-meta {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    margin-left: 8px;
}

/* ===== Zones ===== */
.zones-list { display: grid; gap: 18px; }
.zone-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--bordure);
    border-left: 5px solid var(--orange);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--ombre);
}
.zone-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bleu-primaire);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.zone-badge {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--bleu-primaire);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* ===== Formulaires ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: var(--bg-card);
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
    border: 1px solid var(--bordure);
}
.contact-info ul { margin-top: 20px; }
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.contact-info .ico {
    width: 42px;
    height: 42px;
    background: var(--bleu-primaire);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--texte);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--bordure);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg);
    color: var(--texte);
    transition: border var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--bleu-primaire);
    box-shadow: 0 0 0 3px rgba(29, 95, 168, 0.12);
}
.form-group textarea { min-height: 130px; resize: vertical; }

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: .95rem;
}
.alert-success { background: #e6f7ec; color: #1d6b3a; border: 1px solid #b6e3c6; }
.alert-error   { background: #fdecec; color: #a01d1d; border: 1px solid #f3b6b6; }

/* ===== FAQ ===== */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--bordure);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--texte);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-q .toggle {
    font-size: 1.4rem;
    color: var(--orange);
    transition: var(--transition);
}
.faq-item.open .faq-q .toggle { transform: rotate(45deg); }
.faq-a {
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    color: var(--texte-clair);
}
.faq-item.open .faq-a {
    padding: 0 22px 22px;
    max-height: 600px;
}

/* ===== WhatsApp flottant ===== */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    z-index: 90;
    transition: var(--transition);
    text-decoration: none;
}
.wa-float:hover { background: #1ebe5d; transform: scale(1.05); }
.wa-float .wa-icon { font-size: 1.4rem; }

/* ===== Cookie banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bleu-fonce);
    color: #fff;
    padding: 16px 22px;
    border-radius: 12px;
    max-width: 480px;
    z-index: 95;
    box-shadow: var(--ombre-forte);
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    font-size: .9rem;
}
.cookie-banner a { color: var(--orange); }
.btn-cookie { padding: 8px 16px; font-size: .85rem; }

/* ===== Footer ===== */
.site-footer {
    background: #051a30;
    color: #cfd5e0;
    padding-top: 60px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
    padding-bottom: 40px;
}
.footer-col h3, .footer-col h4 {
    color: #fff;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #cfd5e0; }
.footer-col a:hover { color: var(--orange); }
.footer-baseline {
    color: var(--orange);
    font-weight: 600;
    font-size: 1.05rem;
}
.footer-legal {
    font-size: .8rem;
    opacity: .7;
    margin-top: 12px;
}
.social-links {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-weight: 700;
    font-size: .85rem;
    transition: var(--transition);
    text-decoration: none;
}
.social-links a:hover { background: var(--orange); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    font-size: .9rem;
    color: #98a1b3;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom a { color: #cfd5e0; }
.footer-bottom a:hover { color: var(--orange); }

/* ===== Page header (sub-pages) ===== */
.page-header {
    background: linear-gradient(135deg, var(--bleu-primaire), var(--bleu-fonce));
    color: #fff;
    padding: 80px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header h1 { color: #fff; }
.page-header p {
    color: rgba(255,255,255,0.9);
    max-width: 720px;
    margin: 16px auto 0;
    font-size: 1.15rem;
}
.breadcrumb {
    color: rgba(255,255,255,0.8);
    font-size: .9rem;
    margin-bottom: 14px;
}
.breadcrumb a { color: var(--orange); }

/* ===== Admin ===== */
.admin-body { background: var(--bg-alt); min-height: 100vh; }
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--bleu-primaire), var(--bleu-fonce));
}
.login-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--ombre-forte);
    width: 100%;
    max-width: 420px;
}
.login-card h1 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 8px;
}
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px;
    background: var(--bleu-fonce);
    color: #fff;
    padding: 24px 0;
    flex-shrink: 0;
}
.admin-sidebar .brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    display: block;
}
.admin-sidebar nav { padding-top: 20px; }
.admin-sidebar a {
    display: block;
    padding: 12px 24px;
    color: #cfd5e0;
    border-left: 3px solid transparent;
    transition: var(--transition);
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: var(--orange);
}
.admin-main { flex: 1; padding: 30px 40px; }
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}
.admin-header h1 { font-size: 1.6rem; }
.admin-header .logout {
    background: var(--orange);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: .9rem;
}
.admin-header .logout:hover { background: var(--orange-hover); color: #fff; }
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.admin-stat-card {
    background: #fff;
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--ombre);
}
.admin-stat-card .nb {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bleu-primaire);
}
.admin-stat-card .lib {
    color: var(--texte-clair);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.admin-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--ombre);
    margin-bottom: 24px;
}
.admin-card h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bordure);
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--bordure);
}
.table th {
    background: var(--bg-alt);
    color: var(--texte);
    font-weight: 600;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.table tr:hover td { background: #fafbfd; }
.actions a, .actions button {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: .85rem;
    margin-right: 4px;
    border: none;
    cursor: pointer;
}
.btn-edit { background: var(--bleu-clair); color: #fff; }
.btn-edit:hover { background: var(--bleu-primaire); color: #fff; }
.btn-delete { background: #e74c3c; color: #fff; }
.btn-delete:hover { background: #c0392b; }
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-new   { background: var(--orange);     color: #fff; }
.badge-prog  { background: var(--bleu-clair); color: #fff; }
.badge-done  { background: var(--vert);       color: #fff; }
.badge-ko    { background: #888;              color: #fff; }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }
.mb-0  { margin-bottom: 0 !important; }
.hide-mobile { display: inline; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .logo-img { height: 50px; max-width: 180px; }
    .main-nav { gap: 16px; }
    .main-nav a { font-size: .9rem; }
    .btn-header { padding: 9px 16px; font-size: .85rem; }
}
@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .logo-img { height: 46px; max-width: 160px; }
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        width: 260px;
        padding: 20px;
        gap: 14px;
        box-shadow: var(--ombre-forte);
        transform: translateX(110%);
        transition: transform var(--transition);
        border-left: 1px solid var(--bordure);
    }
    .main-nav.open { transform: translateX(0); }
    .burger { display: flex; }
    .btn-header { display: none; }
    h1 { font-size: 2rem; }
    .hero { min-height: 500px; }
    .hero-content h1 { font-size: 2.2rem; }
    .about-grid,
    .contact-wrapper,
    .form-grid { grid-template-columns: 1fr; }
    .contact-wrapper { padding: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
    .admin-sidebar { width: 70px; }
    .admin-sidebar .brand,
    .admin-sidebar a { font-size: 0; padding: 14px; text-align: center; }
    .admin-main { padding: 20px; }
    .hide-mobile { display: none; }
    .fleet-card { flex-direction: column; text-align: center; }
}

/* ===== Slider hero - amelioration pour images de fond ===== */
.slide {
    background-size: cover;
    background-position: center;
}
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5,26,48,0.85), rgba(10,37,64,0.55));
    z-index: 1;
}
.slide .hero-content { position: relative; z-index: 2; }

/* ===== Image photo dans about-grid ===== */
.about-image-photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--ombre-forte);
    aspect-ratio: 4 / 3;
}
.about-image-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Galerie photos flotte ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    position: relative;
    box-shadow: var(--ombre);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombre-forte);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
    content: '\2922';
    position: absolute;
    bottom: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lightbox img {
    max-width: 92vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .9rem;
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.5rem; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ===== Fix : l'attribut hidden doit toujours cacher l element ===== */
[hidden] { display: none !important; }

/* ===== Fix slider : empêche overlap pendant transition ===== */
.slide {
    z-index: 1;
    visibility: hidden;
}
.slide.active {
    z-index: 2;
    visibility: visible;
}
/* La slide qui sort reste visible le temps du fade-out */
.slide {
    transition: opacity 1s ease-in-out, visibility 0s linear 1s;
}
.slide.active {
    transition: opacity 1s ease-in-out, visibility 0s linear 0s;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

/* ===== Ken Burns : zoom lent sur le slide actif (sans deformation) ===== */
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
    transform-origin: center;
}
.slide.active .slide-bg {
    animation: kenburns 16s ease-in-out infinite alternate;
}
@keyframes kenburns {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.12) translate(2%, -1%); }
}

/* ===== Photo about : zoom au survol ===== */
.about-image-photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--ombre-forte);
    position: relative;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}
.about-image-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.about-image-photo:hover img {
    transform: scale(1.08);
}
.about-image-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(255,122,0,0.18));
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}
.about-image-photo:hover::after { opacity: 1; }

/* ===== Apparition au scroll (reveal) ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease-out, transform .8s ease-out;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Variantes */
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-left.is-visible,
.reveal-right.is-visible { transform: translateX(0); }

/* Delais cascades pour grille */
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ===== Pulse sur le bouton WhatsApp ===== */
.wa-float {
    animation: wa-pulse 2.5s ease-in-out infinite;
}
@keyframes wa-pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 0 14px rgba(37, 211, 102, 0);
    }
}
.wa-float:hover {
    animation: none;
}

/* ===== Cartes services : effet hover ameliore ===== */
.service-card {
    transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow .4s,
                border-top-color .4s;
}
.service-card:hover .service-icon {
    transform: rotate(-6deg) scale(1.1);
}
.service-icon {
    transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== Gallery : effet zoom plus prononce ===== */
.gallery-item img {
    transition: transform .8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:hover img {
    transform: scale(1.15);
}

/* ===== Stat-card hover ===== */
.stat-item .nombre {
    transition: transform .3s;
}
.stats:hover .stat-item .nombre {
    transform: scale(1.05);
}

/* ===== Logo : pulse leger au hover du header ===== */
.logo-img {
    transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo:hover .logo-img {
    transform: scale(1.06) rotate(-2deg);
}

/* ===== Boutons : effet shine au hover ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left .6s;
}
.btn-primary:hover::before {
    left: 100%;
}

/* ===== Slider dots : effet rebond ===== */
.slider-dots button {
    transition: all .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.slider-dots button.active {
    transform: scale(1.3);
}

/* ===== Respect des preferences utilisateur ===== */
@media (prefers-reduced-motion: reduce) {
    .slide.active,
    .wa-float,
    .reveal {
        animation: none !important;
        transition: none !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* Slide structure mise a jour : image dans .slide-bg, overlay dans ::before, contenu au-dessus */
.slide {
    background: transparent !important;
}
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(5,26,48,0.85), rgba(10,37,64,0.55));
    z-index: 1;
}
.slide .hero-content {
    position: relative;
    z-index: 2;
}

/* ===== Bouton retour en haut ===== */
.scroll-top {
    position: fixed;
    bottom: 90px;     /* Juste au-dessus du bouton WhatsApp */
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--bleu-primaire);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    z-index: 89;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .2s ease;
}
.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: var(--orange);
    transform: translateY(-4px) scale(1.05);
}
.scroll-top .scroll-arrow {
    display: inline-block;
    transition: transform .3s;
}
.scroll-top:hover .scroll-arrow {
    transform: translateY(-3px);
}
@media (max-width: 600px) {
    .scroll-top {
        bottom: 80px;
        right: 18px;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}
