/* ==========================================================================
   Mauritanie Voyages — feuille de style principale
   Palette : ocre désert (#c9822f / #e0a860), bleu Atlantique (#1c3f4d),
   sable clair (#f7f0e3), texte anthracite (#2b241c)
   ========================================================================== */

:root {
    --color-sand: #f7f0e3;
    --color-sand-dark: #ecdfc4;
    --color-ochre: #c9822f;
    --color-ochre-light: #e0a860;
    --color-ochre-dark: #8f5a1f;
    --color-atlantic: #1c3f4d;
    --color-atlantic-light: #2c5c6f;
    --color-ink: #2b241c;
    --color-muted: #7a6f5c;
    --color-white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(43, 36, 28, 0.12);
    --shadow-card: 0 6px 18px rgba(43, 36, 28, 0.10);
    --radius: 14px;
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: 'Segoe UI', Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-sand);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0 0 .5em; line-height: 1.2; }

section { padding: 80px 0; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    color: var(--color-ochre-dark);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2.2rem; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .25s ease;
}
.btn-primary { background: var(--color-ochre); color: #fff; }
.btn-primary:hover { background: var(--color-ochre-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--color-white); color: var(--color-white); }
.btn-outline:hover { background: var(--color-white); color: var(--color-atlantic); }
.btn-nav { background: var(--color-ochre); color: #fff; padding: 10px 22px; }
.btn-nav:hover { background: var(--color-ochre-dark); }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 240, 227, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(43,36,28,.08);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.brand-name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--color-atlantic); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a:not(.btn) { font-weight: 600; font-size: .95rem; color: var(--color-ink); position: relative; }
.main-nav > a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
    background: var(--color-ochre); transition: width .25s ease;
}
.main-nav > a:not(.btn):hover::after { width: 100%; }

.lang-switch { display: flex; gap: 6px; border-left: 1px solid rgba(43,36,28,.15); padding-left: 20px; }
.rtl .lang-switch { border-left: none; border-right: 1px solid rgba(43,36,28,.15); padding-left: 0; padding-right: 20px; }
.lang-link { font-size: .8rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; color: var(--color-muted); }
.lang-link.active, .lang-link:hover { background: var(--color-atlantic); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-ink); display: block; }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--color-atlantic) 0%, #12262e 100%);
    color: #fff;
    padding: 90px 0 60px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(224,168,96,.25), transparent 55%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: 2.9rem; margin-bottom: .4em; }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 2em; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Map ---------------- */
.map-section { background: var(--color-white); }
.map-wrap {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--color-sand-dark);
}
.map-wrap img { width: 100%; display: block; }
.map-pin {
    position: absolute;
    width: 16px; height: 16px;
    background: var(--color-ochre);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.map-pin:hover, .map-pin:focus { transform: translate(-50%, -50%) scale(1.4); background: var(--color-atlantic); z-index: 5; }
.map-pin::after {
    content: attr(data-name);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-atlantic);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.map-pin:hover::after, .map-pin:focus::after { opacity: 1; }

/* ---------------- Destinations grid ---------------- */
.dest-section { background: var(--color-sand); }
.dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 28px;
}
.dest-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease;
}
.dest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.dest-card-img { height: 190px; overflow: hidden; position: relative; }
.dest-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dest-card:hover .dest-card-img img { transform: scale(1.08); }
.dest-card-body { padding: 20px 22px 24px; }
.dest-card-body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.dest-card-body p { color: var(--color-muted); font-size: .92rem; margin-bottom: 14px; min-height: 42px; }
.dest-card-foot { display: flex; align-items: center; justify-content: space-between; }
.dest-price { font-weight: 700; color: var(--color-ochre-dark); font-size: .9rem; }
.dest-link { font-weight: 700; font-size: .88rem; color: var(--color-atlantic); }
.dest-link:hover { color: var(--color-ochre); }

/* ---------------- About ---------------- */
.about-section { background: var(--color-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-stats { display: flex; gap: 32px; margin-top: 30px; flex-wrap: wrap; }
.stat h3 { font-size: 2.1rem; color: var(--color-ochre-dark); margin-bottom: 0; }
.stat span { color: var(--color-muted); font-size: .85rem; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--color-atlantic); color: rgba(255,255,255,.85); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { width: 48px; height: 48px; border-radius: 10px; margin-bottom: 14px; }
.footer-col h3 { color: #fff; font-size: 1.05rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; font-size: .92rem; }
.footer-col ul a:hover { color: var(--color-ochre-light); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700;
}
.footer-social a:hover { background: var(--color-ochre); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 20px 0;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.6);
}

/* ---------------- City page ---------------- */
.city-hero {
    position: relative;
    height: 46vh;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    color: #fff;
}
.city-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(28,63,77,.92), rgba(28,63,77,.15));
}
.city-hero-inner { position: relative; z-index: 1; padding: 40px 0; width: 100%; }
.city-hero .back-link { display: inline-block; margin-bottom: 14px; font-size: .88rem; opacity: .85; }
.city-hero h1 { font-size: 2.6rem; margin-bottom: 0; }

.city-body { padding: 60px 0; }
.city-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 50px; }
.city-desc p { color: var(--color-ink); font-size: 1.02rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }

.trip-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.trip-card {
    display: flex; gap: 16px; background: #fff; border-radius: 12px;
    padding: 14px; box-shadow: var(--shadow-card); align-items: center;
}
.trip-card img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.trip-card-body { flex: 1; }
.trip-card-body h4 { font-size: 1.02rem; margin-bottom: 4px; }
.trip-card-body .duree { font-size: .82rem; color: var(--color-muted); }
.trip-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.trip-price { font-weight: 700; color: var(--color-ochre-dark); }
.trip-book-btn {
    background: var(--color-ochre); color: #fff; font-size: .8rem; font-weight: 700;
    padding: 8px 16px; border-radius: 999px;
}
.trip-book-btn:hover { background: var(--color-ochre-dark); }

.sidebar-card { background: var(--color-sand); border-radius: var(--radius); padding: 24px; }
.sidebar-card h3 { font-size: 1.1rem; }

/* ---------------- Reservation form ---------------- */
.reserve-section { padding: 60px 0 100px; }
.reserve-box { max-width: 720px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 44px; }
.reserve-box h1 { font-size: 1.8rem; text-align: center; }
.reserve-note { text-align: center; color: var(--color-muted); font-size: .85rem; margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--color-ink); }
.form-group input, .form-group select, .form-group textarea {
    padding: 12px 14px; border: 1.5px solid #e2d8c3; border-radius: 10px;
    font-family: var(--font-body); font-size: .95rem; background: var(--color-sand);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--color-ochre); background: #fff;
}
.form-submit { width: 100%; padding: 15px; font-size: 1rem; border: none; }

.confirm-box { max-width: 620px; margin: 80px auto; text-align: center; background: #fff; padding: 50px 40px; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.confirm-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--color-ochre); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.confirm-ref { display: inline-block; margin-top: 14px; padding: 8px 18px; background: var(--color-sand); border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--color-ochre-dark); }

/* ---------------- RTL adjustments ---------------- */
.rtl { direction: rtl; text-align: right; }
.rtl .lang-switch { flex-direction: row-reverse; }
.rtl .main-nav > a:not(.btn)::after { left: auto; right: 0; }
.rtl .footer-social { flex-direction: row-reverse; }
.rtl .trip-card { flex-direction: row-reverse; }
.rtl .dest-card-foot { flex-direction: row-reverse; }
.rtl .trip-card-foot { flex-direction: row-reverse; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
    .about-grid, .city-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--color-sand); flex-direction: column;
        align-items: flex-start; padding: 20px 24px; gap: 16px;
        display: none; box-shadow: var(--shadow-card);
    }
    .main-nav.open { display: flex; }
    .lang-switch { border: none; padding: 0; }
    .hero h1 { font-size: 2.1rem; }
    .form-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    section { padding: 56px 0; }
}
