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

:root {
    /* Palette inspiree de Hotels.com */
    --navy: #001B4D;
    --navy-dark: #001233;
    --navy-light: #F4F6FB;
    --red: #E4002B;
    --red-dark: #B80023;
    --gold: #FFB800;

    /* Neutres */
    --text: #1A1A1A;
    --text-muted: #666666;
    --text-light: #999999;
    --bg: #FFFFFF;
    --bg-cream: #F5F0EB;
    --bg-alt: #FAFAFA;
    --border: #E5E5E5;
    --border-light: #F0F0F0;

    /* Feedback */
    --success: #0B8043;
    --danger: #E4002B;

    /* Design */
    --radius: 8px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* =================== TYPOGRAPHIE =================== */
h1, h2, h3, h4 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 700; }

/* =================== BOUTONS =================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn--primary {
    background: var(--navy);
    color: #fff;
}

.btn--primary:hover {
    background: var(--navy-dark);
}

.btn--link {
    background: transparent;
    color: var(--text);
    padding: 10px 14px;
    font-weight: 500;
}

.btn--link:hover {
    background: var(--navy-light);
    border-radius: var(--radius);
}

.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--sm { padding: 8px 14px; font-size: 0.82rem; }
.btn--full { width: 100%; }

.btn__icon { font-size: 1rem; }

/* =================== HEADER =================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}

.header--scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    text-decoration: none;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #E4002B;
    padding: 6px 12px;
    border-radius: 8px 0 0 8px;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
    min-width: 40px;
}

.logo__text {
    display: inline-flex;
    align-items: center;
    color: #001B4D;
    background: #F4F6FB;
    padding: 6px 12px;
    border-radius: 0 8px 8px 0;
    font-weight: 400;
    letter-spacing: -0.02em;
    height: 100%;
}

.logo--footer .logo__mark {
    background: #E4002B;
}

.logo--footer .logo__text {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.nav {
    display: flex;
    gap: 4px;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.nav__link:hover {
    background: var(--navy-light);
    color: var(--navy);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* =================== SECTIONS =================== */
.section {
    padding: 72px 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.section__header--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section__title {
    margin-bottom: 6px;
}

.section__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.link-arrow {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform var(--transition), color var(--transition);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.link-arrow:hover {
    transform: translateX(4px);
    color: var(--red);
}

/* =================== BADGES / RATINGS =================== */
.rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 42px;
    font-family: 'Inter', sans-serif;
}

/* =================== FOOTER =================== */
.footer {
    background: var(--navy);
    color: #B8C1D1;
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__col h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.footer__col a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer__col a:hover {
    color: #fff;
}

.footer__col p {
    font-size: 0.9rem;
    margin-top: 8px;
    line-height: 1.6;
}

.logo--footer .logo__text {
    color: #fff;
}

.logo--footer {
    color: #fff;
    margin-bottom: 12px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 0.82rem;
    color: #8892A6;
}

/* =================== ANIMATIONS =================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 968px) {
    .nav { display: none; }
    .burger { display: flex; }
    .header__actions .btn--link:not(:last-of-type) { display: none; }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .header__inner { height: 60px; }
    .logo { font-size: 1.35rem; }
    .logo__mark { font-size: 1.15rem; padding: 2px 6px 3px; }
    .section { padding: 48px 0; }
    .footer__inner { grid-template-columns: 1fr; }
}
/* =================== MODAL (generique) =================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 2;
    font-family: 'Inter', sans-serif;
}

.modal__icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.modal__content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: #1A1A1A;
}

.modal__content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
/* =================== USER MENU (header connecte) =================== */
.user-menu {
    position: relative;
}

.user-menu__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #E5E5E5;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A1A1A;
    transition: all 0.2s ease;
}

.user-menu__trigger:hover {
    border-color: #001B4D;
    background: #F4F6FB;
}

.user-menu__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #001B4D, #00A86B);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-menu__name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__caret {
    font-size: 0.7rem;
    color: #666;
    transition: transform 0.2s ease;
}

.user-menu.is-open .user-menu__caret {
    transform: rotate(180deg);
}

.user-menu__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #E5E5E5;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 2000;
}

.user-menu.is-open .user-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu__header {
    padding: 12px 14px;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
}

.user-menu__header strong {
    display: block;
    font-size: 0.92rem;
    color: #1A1A1A;
    margin-bottom: 2px;
}

.user-menu__header small {
    font-size: 0.78rem;
    color: #666;
}

.user-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: background 0.15s ease;
}

.user-menu__item:hover {
    background: #F4F6FB;
    color: #001B4D;
}

.user-menu__item--danger {
    color: #E4002B;
}

.user-menu__item--danger:hover {
    background: #FEE8EC;
    color: #E4002B;
}

.user-menu__divider {
    height: 1px;
    background: #F0F0F0;
    margin: 6px 0;
}

/* Responsive */
@media (max-width: 640px) {
    .user-menu__name {
        display: none;
    }

    .user-menu__trigger {
        padding: 4px;
    }
}

    .header--minimal .header__inner {
        height: 48px;
    }
}
/* =================== LOGO DANS LE FOOTER (fond sombre) =================== */
.footer .logo__mark {
    background: #E4002B;
    color: #fff;
    border-radius: 6px 0 0 6px;
    padding: 4px 10px 6px;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 700;
}

.footer .logo__text {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 4px 12px 6px 8px;
    border-radius: 0 6px 6px 0;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 400;
    font-family: 'DM Serif Display', serif;
}

[dir="rtl"] .footer .logo__mark {
    border-radius: 0 6px 6px 0;
}

[dir="rtl"] .footer .logo__text {
    border-radius: 6px 0 0 6px;
}
