:root {
    --primary: #173fa8;
    --primary-dark: #0c2b7a;
    --primary-soft: #eaf0ff;
    --secondary: #ffffff;
    --text: #182033;
    --text-soft: #5f6b85;
    --light: #f6f8fc;
    --light-2: #eef3fb;
    --border: rgba(23, 63, 168, 0.12);
    --border-strong: rgba(23, 63, 168, 0.2);
    --shadow-sm: 0 8px 24px rgba(18, 34, 90, 0.08);
    --shadow-md: 0 18px 45px rgba(20, 40, 120, 0.12);
    --shadow-lg: 0 24px 60px rgba(10, 30, 100, 0.18);
    --success-bg: #e8f7ee;
    --success-text: #167a45;
    --error-bg: #fdecec;
    --error-text: #b42318;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --container: 1180px;
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.section-dark {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #ffffff;
}

.intro-strip {
    background: linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 14px;
    line-height: 1.15;
    color: var(--text);
}

p {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--text-soft);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.7rem);
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}

h3 {
    font-size: 1.25rem;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark p {
    color: #ffffff;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
}

.section-kicker.light {
    color: rgba(255, 255, 255, 0.86);
}

/* HEADER CORRIGÉ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(20, 30, 60, 0.06);
    box-shadow: 0 6px 18px rgba(18, 34, 90, 0.05);
}

.nav-wrap {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0;
}

.brand {
    text-decoration: none;
    flex-shrink: 0;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.brand-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-soft);
    font-weight: 600;
    margin: 0;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.main-nav a {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--primary);
}

.nav-cta {
    margin-left: 6px;
}

@media (max-width: 991px) {
    .nav-wrap {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: auto;
        padding: 12px 0;
    }

    .main-nav {
        justify-content: center;
        gap: 14px;
    }

    .site-logo {
        width: 52px;
        height: 52px;
    }

    .brand-title {
        font-size: 0.95rem;
    }

    .brand-subtitle {
        font-size: 0.76rem;
    }
}

@media (max-width: 640px) {
    .logo-brand {
        gap: 10px;
    }

    .site-logo {
        width: 46px;
        height: 46px;
    }

    .brand-title {
        font-size: 0.9rem;
    }

    .brand-subtitle {
        font-size: 0.72rem;
    }

    .main-nav {
        gap: 10px;
    }

    .main-nav a {
        font-size: 0.92rem;
    }
}

/* BOUTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn-light {
    background: #ffffff;
    color: var(--primary) !important;
    box-shadow: var(--shadow-sm);
}

.btn-full {
    width: 100%;
}

/* HERO SLIDER */
.hero-slider {
    position: relative;
    height: 84vh;
    min-height: 620px;
    overflow: hidden;
    background: var(--primary);
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 90px;
    padding-bottom: 90px;
    color: #ffffff;
}

.slide-content h1 {
    color: #ffffff;
    max-width: 920px;
    margin-bottom: 18px;
}

.slide-content p {
    max-width: 700px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 30px;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 10px 16px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.35rem;
    backdrop-filter: blur(6px);
}

.slider-arrow.prev {
    left: 24px;
}

.slider-arrow.next {
    right: 24px;
}

.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.36);
}

.dot.active {
    background: #ffffff;
    transform: scale(1.15);
}

/* LAYOUT */
.intro-grid,
.two-cols,
.delivery-banner,
.footer-grid,
.form-row,
.section-head {
    display: grid;
    gap: 24px;
}

.intro-grid,
.two-cols,
.delivery-banner {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* CARTES */
.service-card,
.booking-form,
.pricing-card,
.tracking-card,
.gallery-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.service-card,
.pricing-card,
.tracking-card {
    padding: 28px;
}

.booking-form {
    padding: 28px;
}

.gallery-card {
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.gallery-card-body {
    padding: 18px;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 16px;
    background: rgba(23, 63, 168, 0.08);
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
}

/* TARIFS */
.pricing-list {
    display: grid;
    gap: 14px;
}

.pricing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(27, 36, 64, 0.08);
}

.pricing-item:last-child {
    border-bottom: none;
}

/* FORMULAIRES */
.form-row {
    grid-template-columns: repeat(2, 1fr);
}

input,
select,
textarea {
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(27, 36, 64, 0.12);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23, 63, 168, 0.08);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    margin-bottom: 16px;
}

.checkbox-line input {
    width: auto;
    margin: 0;
}

/* ALERTES */
.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 700;
}

.alert.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.alert.error {
    background: var(--error-bg);
    color: var(--error-text);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(23, 63, 168, 0.1);
    color: var(--primary);
    font-weight: 700;
}

.feature-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-soft);
}

/* FRONT FOOTER */
.site-footer {
    background: #0f1730;
    color: rgba(255, 255, 255, 0.92);
    padding-top: 60px;
}

.site-footer h3,
.site-footer h4 {
    color: #ffffff;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-socials {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 30px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ADMIN */
.admin-body {
    background: linear-gradient(180deg, #f7f9fe 0%, #eef3fb 100%);
    min-height: 100vh;
}

.admin-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.admin-login-card {
    width: 100%;
    max-width: 460px;
}

.admin-section {
    padding-top: 60px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.admin-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.admin-table-card {
    padding: 28px;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(27, 36, 64, 0.08);
    vertical-align: top;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 260px;
}

.inline-form select {
    margin: 0;
}

.admin-two-cols-top {
    align-items: flex-start;
    margin-bottom: 28px;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-thumb {
    width: 120px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(27, 36, 64, 0.08);
}

.admin-action-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-settings-form {
    max-width: 100%;
}

.upload-block {
    padding: 16px;
    border: 1px dashed rgba(23, 63, 168, 0.25);
    border-radius: 16px;
    margin-bottom: 18px;
    background: rgba(23, 63, 168, 0.03);
}

.upload-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.upload-help {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.current-image-box {
    margin-bottom: 18px;
}

.admin-preview-large {
    width: 100%;
    max-width: 420px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(27, 36, 64, 0.08);
}

.admin-footer {
    margin-top: 40px;
    padding: 18px 0;
    background: #0f1730;
    color: rgba(255, 255, 255, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* RESPONSIVE */
@media (min-width: 992px) {
    .admin-settings-form {
        max-width: 920px;
    }
}

@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tarifs-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .nav-wrap {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
    }

    .main-nav {
        justify-content: center;
        gap: 14px;
    }

    .intro-grid,
    .two-cols,
    .delivery-banner,
    .footer-grid,
    .tarifs-grid,
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .slide-content {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .site-logo {
        width: 62px;
        height: 62px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 20px));
    }

    .section {
        padding: 70px 0;
    }

    .hero-slider {
        height: 78vh;
        min-height: 520px;
    }

    .slide-content h1 {
        font-size: 2.1rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-arrow {
        display: none;
    }

    .cards-grid,
    .form-row,
    .tarifs-grid,
    .gallery-grid,
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .site-logo {
        width: 54px;
        height: 54px;
    }

    .brand-title {
        font-size: 0.95rem;
    }

    .brand-subtitle {
        font-size: 0.78rem;
    }

    .admin-thumb {
        width: 100px;
        height: 60px;
    }

    .admin-topbar,
    .admin-footer-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .footer-logo {
        width: 54px;
        height: 54px;
    }
}