/* =====================================================================
   OMRA DZ — SITE PUBLIC VOYAGEUR
   Réutilise les tokens du design system agence (palette identique)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --color-bg:            #F6F7F5;
    --color-surface:       #FFFFFF;
    --color-emerald:       #0F6B4C;
    --color-emerald-dark:  #0A4F38;
    --color-emerald-tint:  #E7F2EC;
    --color-gold:          #AD8A3D;
    --color-gold-tint:     #F6EFDD;
    --color-text:          #1B2420;
    --color-text-muted:    #667167;
    --color-border:        #E3E7E2;
    --color-danger:        #B3453B;
    --color-danger-tint:   #FBEBE9;
    --color-warning:       #B4822A;
    --color-warning-tint:  #FBF1DD;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(15,30,22,0.06);
    --shadow-md: 0 10px 30px rgba(15,30,22,0.10);
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size:15px; line-height:1.6; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight:600; color: var(--color-emerald-dark); margin:0 0 8px; }
a { color: var(--color-emerald); text-decoration:none; }
a:hover { text-decoration:underline; }
img { max-width:100%; display:block; }
.container { max-width:1180px; margin:0 auto; padding:0 24px; }

/* Composants réutilisés (identiques à agency.css pour cohérence visuelle) */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:11px 20px; border-radius:var(--radius-sm); font-size:14px; font-weight:600; border:1px solid transparent; cursor:pointer; text-decoration:none; }
.btn:hover { text-decoration:none; }
.btn-primary { background: var(--color-emerald); color:#fff; }
.btn-primary:hover { background: var(--color-emerald-dark); }
.btn-gold { background: var(--color-gold); color:#2A2110; }
.btn-outline { background:transparent; border-color:var(--color-border); color:var(--color-text); }
.btn-outline:hover { border-color:var(--color-emerald); color:var(--color-emerald); }
.btn-sm { padding:8px 14px; font-size:13px; }
.btn-block { width:100%; }
.btn:disabled { opacity:.5; cursor:not-allowed; }

.badge { display:inline-flex; align-items:center; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600; }
.badge--pending { background: var(--color-warning-tint); color: var(--color-warning); }
.badge--confirmed, .badge--active, .badge--paid { background: var(--color-emerald-tint); color: var(--color-emerald-dark); }
.badge--completed { background:#E6EEF7; color:#2E5A8A; }
.badge--cancelled { background: var(--color-danger-tint); color: var(--color-danger); }

.card { background: var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-md); padding:22px; }
.card + .card { margin-top:20px; }

.table-wrapper { overflow-x:auto; }
table.data-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.data-table th { text-align:left; padding:10px 14px; font-size:11.5px; text-transform:uppercase; letter-spacing:0.03em; color:var(--color-text-muted); border-bottom:1px solid var(--color-border); }
.data-table td { padding:12px 14px; border-bottom:1px solid var(--color-border); }
.cell-muted { color:var(--color-text-muted); font-size:12.5px; }

label { font-size:13px; font-weight:600; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], select, textarea {
    padding:11px 13px; border-radius:var(--radius-sm); border:1px solid var(--color-border); font-size:14px; font-family:inherit; width:100%; background:#fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--color-emerald); outline:none; box-shadow:0 0 0 3px var(--color-emerald-tint); }
.form-group { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.form-group.span-2 { grid-column:span 2; }
.form-section-title { font-size:15px; font-weight:600; color:var(--color-emerald-dark); margin:26px 0 4px; padding-top:20px; border-top:1px solid var(--color-border); }
.form-section-title:first-child { border-top:none; padding-top:0; margin-top:0; }
.form-actions { display:flex; gap:10px; justify-content:flex-end; padding-top:20px; border-top:1px solid var(--color-border); margin-top:14px; }
label .optional { font-weight:400; color:var(--color-text-muted); }
.chip-checkbox { display:flex; align-items:center; gap:8px; padding:10px 12px; border:1px solid var(--color-border); border-radius:var(--radius-sm); font-size:13.5px; }
.chip-checkbox input { width:auto; }
.program-day { padding:14px; background:var(--color-bg); border-radius:var(--radius-sm); margin-bottom:12px; }

.toast { padding:12px 16px; border-radius:var(--radius-sm); margin-bottom:18px; font-size:14px; }
.toast--success { background: var(--color-emerald-tint); color: var(--color-emerald-dark); }
.toast--error { background: var(--color-danger-tint); color: var(--color-danger); }
#js-toast-container { position:fixed; top:20px; right:20px; z-index:200; display:flex; flex-direction:column; gap:10px; }
#js-toast-container .toast { box-shadow: var(--shadow-md); min-width:260px; }

/* ---------------------------------------------------------------------
   HEADER / NAV
   --------------------------------------------------------------------- */
.site-header { background:#fff; border-bottom:1px solid var(--color-border); position:sticky; top:0; z-index:50; }
.site-header__inner { max-width:1180px; margin:0 auto; padding:16px 24px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-logo { font-family:var(--font-display); font-size:22px; font-weight:700; color:var(--color-emerald-dark); }
.site-nav { display:flex; gap:26px; }
.site-nav a { color:var(--color-text); font-size:14px; font-weight:500; }
.site-nav a:hover { color:var(--color-emerald); text-decoration:none; }
.site-header__actions { display:flex; gap:10px; align-items:center; }

/* ---------------------------------------------------------------------
   HERO + MOTEUR DE RECHERCHE
   --------------------------------------------------------------------- */
.hero {
    position:relative;
    background: linear-gradient(160deg, var(--color-emerald-dark) 0%, var(--color-emerald) 100%);
    padding:64px 24px 110px;
    overflow:hidden;
    color:#fff;
}
.hero::before {
    content:"";
    position:absolute; top:-60px; right:-60px; width:340px; height:340px;
    border:1px solid rgba(173,138,61,0.35);
    border-radius:50% 50% 0 0 / 60% 60% 0 0;
    transform:rotate(10deg);
}
.hero__inner { max-width:1180px; margin:0 auto; position:relative; z-index:1; text-align:center; }
.hero h1 { color:#fff; font-size:38px; max-width:720px; margin:0 auto 12px; }
.hero p { color:rgba(255,255,255,0.85); font-size:16px; max-width:560px; margin:0 auto 34px; }

.search-engine {
    max-width:980px; margin:0 auto; background:#fff; border-radius:var(--radius-lg);
    padding:22px; box-shadow:var(--shadow-md); text-align:left; color:var(--color-text);
    position:relative; margin-top:-40px;
}
.search-engine__row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.search-engine__row .form-group { margin-bottom:0; }
.search-engine__advanced { margin-top:16px; padding-top:16px; border-top:1px solid var(--color-border); display:none; }
.search-engine__advanced.is-open { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.search-engine__footer { display:flex; justify-content:space-between; align-items:center; margin-top:16px; }
.search-engine__toggle { background:none; border:none; color:var(--color-emerald); font-weight:600; font-size:13px; cursor:pointer; }
.search-engine__checks { display:flex; flex-wrap:wrap; gap:14px; margin-top:4px; }
.check-inline { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:500; }
.check-inline input { width:auto; }

.hero-stats { display:flex; justify-content:center; gap:48px; margin-top:44px; position:relative; z-index:1; }
.hero-stat { text-align:center; }
.hero-stat__value { font-family:var(--font-display); font-size:26px; font-weight:700; }
.hero-stat__label { font-size:12.5px; color:rgba(255,255,255,0.75); }

/* ---------------------------------------------------------------------
   SECTIONS GÉNÉRIQUES
   --------------------------------------------------------------------- */
.section { padding:64px 0; }
.section--tint { background:var(--color-surface); }
.section__header { text-align:center; max-width:640px; margin:0 auto 40px; }
.section__header p { color:var(--color-text-muted); }
.section__header .eyebrow { color:var(--color-gold); font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; }

.why-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.why-card { text-align:center; padding:26px; }
.why-card__icon { width:52px; height:52px; border-radius:50%; background:var(--color-emerald-tint); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; color:var(--color-emerald); }
.why-card__icon svg { width:24px; height:24px; }

/* ---------------------------------------------------------------------
   CARTES D'OFFRES
   --------------------------------------------------------------------- */
.offers-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.offer-card { background:#fff; border:1px solid var(--color-border); border-radius:var(--radius-md); overflow:hidden; transition:box-shadow .15s ease, transform .15s ease; display:flex; flex-direction:column; }
.offer-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); text-decoration:none; }
.offer-card__image { position:relative; aspect-ratio:4/3; background:var(--color-emerald-tint); }
.offer-card__image img { width:100%; height:100%; object-fit:cover; }
.offer-card__badge { position:absolute; top:10px; left:10px; background:#fff; padding:3px 10px; border-radius:999px; font-size:11.5px; font-weight:700; color:var(--color-emerald-dark); }
.offer-card__fav { position:absolute; top:10px; right:10px; width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,0.9); border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.offer-card__body { padding:16px; flex:1; display:flex; flex-direction:column; }
.offer-card__agency { font-size:12px; color:var(--color-text-muted); display:flex; align-items:center; gap:5px; margin-bottom:4px; }
.offer-card__title { font-family:var(--font-display); font-size:16.5px; font-weight:600; color:var(--color-text); margin-bottom:8px; line-height:1.3; }
.offer-card__meta { display:flex; flex-wrap:wrap; gap:8px; font-size:12px; color:var(--color-text-muted); margin-bottom:12px; }
.offer-card__meta span { display:flex; align-items:center; gap:4px; }
.offer-card__footer { margin-top:auto; display:flex; align-items:center; justify-content:space-between; padding-top:12px; border-top:1px solid var(--color-border); }
.offer-card__price { font-family:var(--font-display); font-weight:700; color:var(--color-emerald-dark); font-size:17px; }
.offer-card__price small { font-family:var(--font-body); font-weight:400; color:var(--color-text-muted); font-size:11.5px; display:block; }
.offer-card__rating { font-size:12.5px; color:var(--color-gold); font-weight:600; }

/* ---------------------------------------------------------------------
   PAGE RECHERCHE (filtres + résultats)
   --------------------------------------------------------------------- */
.search-layout { display:grid; grid-template-columns:280px 1fr; gap:28px; align-items:start; padding:36px 0 70px; }
.filters-panel { background:#fff; border:1px solid var(--color-border); border-radius:var(--radius-md); padding:20px; position:sticky; top:88px; }
.filters-panel h3 { font-size:15px; margin-bottom:14px; }
.filter-group { margin-bottom:18px; padding-bottom:18px; border-bottom:1px solid var(--color-border); }
.filter-group:last-child { border-bottom:none; }
.filter-group__title { font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.03em; color:var(--color-text-muted); margin-bottom:10px; }
.filter-range { display:flex; gap:8px; }
.results-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.results-header select { width:auto; }
.results-count { font-size:14px; color:var(--color-text-muted); }
.pagination { display:flex; align-items:center; justify-content:center; gap:8px; padding-top:30px; }
.pagination button { width:34px; height:34px; border:1px solid var(--color-border); background:#fff; border-radius:var(--radius-sm); cursor:pointer; }
.pagination button.is-active { background:var(--color-emerald); border-color:var(--color-emerald); color:#fff; }
.empty-state { text-align:center; padding:60px 20px; color:var(--color-text-muted); }

/* ---------------------------------------------------------------------
   FICHE OFFRE
   --------------------------------------------------------------------- */
.offer-gallery { display:grid; grid-template-columns:2fr 1fr 1fr; grid-template-rows:1fr 1fr; gap:8px; border-radius:var(--radius-lg); overflow:hidden; height:420px; }
.offer-gallery img { width:100%; height:100%; object-fit:cover; }
.offer-gallery a:first-child { grid-row:1 / 3; }
.offer-detail-layout { display:grid; grid-template-columns:1fr 360px; gap:32px; padding:32px 0 70px; align-items:start; }
.offer-detail-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:18px; gap:20px; }
.offer-detail-header h1 { font-size:28px; }
.offer-detail-meta { display:flex; flex-wrap:wrap; gap:16px; color:var(--color-text-muted); font-size:13.5px; margin-top:6px; }
.offer-detail-meta span { display:flex; align-items:center; gap:5px; }

.detail-section { padding:26px 0; border-bottom:1px solid var(--color-border); }
.detail-section:first-child { padding-top:0; }
.detail-section h2 { font-size:20px; margin-bottom:16px; }

.prestations-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.prestation-item { display:flex; align-items:center; gap:8px; font-size:14px; }
.prestation-item svg { width:18px; height:18px; color:var(--color-emerald); flex-shrink:0; }

.hotel-card { display:flex; gap:14px; padding:16px; border:1px solid var(--color-border); border-radius:var(--radius-md); margin-bottom:12px; }
.hotel-card__icon { width:46px; height:46px; border-radius:50%; background:var(--color-emerald-tint); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--color-emerald); }
.hotel-card h4 { margin-bottom:2px; font-size:15px; }
.hotel-card .stars { color:var(--color-gold); font-size:13px; }

.program-item { display:flex; gap:16px; padding:16px 0; border-bottom:1px dashed var(--color-border); }
.program-item:last-child { border-bottom:none; }
.program-item__day { width:60px; flex-shrink:0; font-family:var(--font-display); font-weight:600; color:var(--color-emerald-dark); }
.program-item__body h4 { font-size:15px; margin-bottom:4px; }
.program-item__body p { color:var(--color-text-muted); font-size:13.5px; margin:0; }

.review-item { padding:16px 0; border-bottom:1px solid var(--color-border); }
.review-item__head { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.review-item__head img { width:32px; height:32px; border-radius:50%; object-fit:cover; }
.stars-display { color:var(--color-gold); font-size:14px; letter-spacing:1px; }

.faq-item { border-bottom:1px solid var(--color-border); }
.faq-item summary { padding:14px 0; font-weight:600; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item p { padding-bottom:14px; color:var(--color-text-muted); font-size:14px; margin:0; }

/* Widget de réservation (sticky) */
.booking-widget { position:sticky; top:88px; background:#fff; border:1px solid var(--color-border); border-radius:var(--radius-lg); padding:22px; box-shadow:var(--shadow-sm); }
.booking-widget__price { font-family:var(--font-display); font-size:26px; font-weight:700; color:var(--color-emerald-dark); }
.booking-widget__price small { font-family:var(--font-body); font-weight:400; font-size:12.5px; color:var(--color-text-muted); display:block; }
.booking-widget__row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--color-border); font-size:13.5px; }
.booking-widget__row:last-of-type { border-bottom:none; }
.booking-widget .btn { margin-top:14px; }
.contact-buttons { display:flex; gap:8px; margin-top:10px; }
.contact-buttons .btn { flex:1; margin-top:0; }

/* ---------------------------------------------------------------------
   AUTH (connexion / inscription)
   --------------------------------------------------------------------- */
.auth-wrapper { display:flex; align-items:center; justify-content:center; min-height:calc(100vh - 260px); padding:50px 20px; }
.auth-card { background:#fff; border-radius:var(--radius-lg); padding:40px; width:440px; max-width:100%; box-shadow:var(--shadow-md); }
.auth-card h1 { text-align:center; margin-bottom:4px; font-size:24px; }
.auth-card .subtitle { text-align:center; color:var(--color-text-muted); font-size:13.5px; margin-bottom:26px; }
.auth-card .form-row-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.auth-card__footer { text-align:center; margin-top:18px; font-size:13.5px; color:var(--color-text-muted); }

/* ---------------------------------------------------------------------
   MESSAGERIE / AVIS (compte)
   --------------------------------------------------------------------- */
.messenger { display:grid; grid-template-columns:320px 1fr; height:calc(100vh - 170px); border:1px solid var(--color-border); border-radius:var(--radius-md); overflow:hidden; background:#fff; }
.conv-list { border-right:1px solid var(--color-border); overflow-y:auto; }
.conv-item { display:flex; gap:10px; padding:14px 16px; border-bottom:1px solid var(--color-border); cursor:pointer; }
.conv-item:hover, .conv-item.is-active { background:var(--color-emerald-tint); }
.conv-item img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.conv-item__name { font-weight:600; font-size:13.5px; }
.conv-item__preview { font-size:12.5px; color:var(--color-text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conv-item__unread { background:var(--color-gold); color:#2A2110; font-size:11px; font-weight:700; border-radius:999px; padding:1px 7px; margin-left:auto; }
.thread { display:flex; flex-direction:column; height:100%; }
.thread__header { padding:14px 20px; border-bottom:1px solid var(--color-border); font-weight:600; }
.thread__messages { flex:1; overflow-y:auto; padding:20px; display:flex; flex-direction:column; gap:12px; }
.msg-bubble { max-width:65%; padding:10px 14px; border-radius:14px; font-size:13.5px; }
.msg-bubble.from-agency { align-self:flex-start; background:var(--color-bg); border-bottom-left-radius:4px; }
.msg-bubble.from-traveler { align-self:flex-end; background:var(--color-emerald); color:#fff; border-bottom-right-radius:4px; }
.msg-bubble time { display:block; font-size:10.5px; opacity:.7; margin-top:4px; }
.thread__composer { display:flex; gap:10px; padding:14px 20px; border-top:1px solid var(--color-border); }
.thread__composer textarea { flex:1; min-height:42px; }
.thread-empty { display:flex; align-items:center; justify-content:center; height:100%; color:var(--color-text-muted); }

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.site-footer { background: var(--color-emerald-dark); color:rgba(255,255,255,0.75); padding:50px 0 0; margin-top:60px; }
.site-footer__inner { max-width:1180px; margin:0 auto; padding:0 24px; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:30px; }
.site-footer__brand p { font-size:13.5px; margin-top:10px; max-width:280px; }
.site-footer__col h4 { color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:0.04em; margin-bottom:12px; }
.site-footer__col a { display:block; color:rgba(255,255,255,0.7); font-size:13.5px; margin-bottom:8px; }
.site-footer__col a:hover { color:#fff; }
.site-footer__bottom { text-align:center; padding:24px; margin-top:30px; border-top:1px solid rgba(255,255,255,0.1); font-size:12.5px; }

/* ---------------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .search-engine__row, .search-engine__advanced.is-open { grid-template-columns:repeat(2,1fr); }
    .offers-grid { grid-template-columns:repeat(2,1fr); }
    .search-layout { grid-template-columns:1fr; }
    .filters-panel { position:relative; top:0; }
    .offer-detail-layout { grid-template-columns:1fr; }
    .booking-widget { position:relative; top:0; }
    .why-grid { grid-template-columns:1fr; }
    .site-footer__inner { grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px) {
    .site-nav { display:none; }
    .hero h1 { font-size:28px; }
    .search-engine__row { grid-template-columns:1fr; }
    .offers-grid { grid-template-columns:1fr; }
    .offer-gallery { grid-template-columns:1fr; grid-template-rows:none; height:240px; }
    .offer-gallery a:nth-child(n+2) { display:none; }
    .messenger { grid-template-columns:1fr; height:auto; }
    .hero-stats { flex-wrap:wrap; gap:24px; }
}
