﻿/* =====================================================================
   style-mobile.css — Mobile (max-width: 768px)
   ===================================================================== */

:root {
    --primary:    #006FA0;
    --secondary:  #f39c12;
    --text:       #333;
    --light-bg:   #f9f9f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Empêche tout débordement horizontal qui étirerait le header */
html, body { overflow-x: hidden; max-width: 100%; }

/* Toutes les images restent dans leur conteneur */
img { max-width: 100%; height: auto; }

body { font-family: 'Poppins', system-ui, sans-serif; color: var(--text); line-height: 1.6; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }

/* Hero et tour-header collés à 100% de la largeur viewport */
.hero, .tour-header { width: 100%; max-width: 100%; }

.alert { padding: 12px; margin-bottom: 16px; border-radius: 5px; color: white; font-weight: 500; }
.alert-success { background: #2ecc71; }
.alert-error   { background: #e74c3c; }

footer { background: #222; color: #aaa; text-align: center; padding: 16px; font-size: 0.85rem; }

/* ── Navigation ── */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.45);
    padding: 13px 90px 13px 15px;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: none;
}
.nav-logo { display: none; }
.nav-back { text-decoration: none; color: rgba(255,255,255,0.92); font-size: 0.85rem; font-weight: 500; white-space: nowrap; }

/* ── Language dropdown ── */
.lang-dropdown { position: fixed; top: 10px; right: 12px; z-index: 9999; font-family: 'Poppins', sans-serif; }
.lang-btn { background: rgba(255,255,255,0.95); color: #0a4a6e; font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.18); display: flex; align-items: center; gap: 5px; cursor: pointer; }
.lang-content { visibility: hidden; pointer-events: none; position: absolute; right: 0; top: calc(100% + 6px); background: white; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); min-width: 130px; overflow: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s; }
.lang-dropdown.open .lang-content { visibility: visible; pointer-events: auto; opacity: 1; transition: opacity .2s, visibility 0s 0s; }
.lang-content a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: #333; text-decoration: none; font-size: 0.82rem; }
.lang-content a.active { background: #e8f4fb; color: var(--primary); font-weight: 600; }

/* ── Homepage hero ── */
.hero {
    position: relative;
    overflow: hidden;
    height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 15px;
}
.hero-logo { max-width: 220px; width: 65%; height: auto; margin-bottom: 16px; filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.9)); }
.hero h1   { font-size: 1.8rem; margin-bottom: 14px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p    { font-size: 0.95rem; max-width: 100%; margin-bottom: 20px; }

.btn { display: inline-block; background: var(--secondary); color: #1a1a1a; padding: 11px 24px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; }

/* ── Homepage services ── */
.services { padding: 30px 12px; background: white; text-align: center; }
.services h2 { color: var(--primary); margin-bottom: 8px; font-size: 1.6rem; }
.services > p { color: #666; font-size: 0.9rem; margin-bottom: 24px; padding: 0 8px; }

.services-grid { display: flex; flex-direction: column; gap: 14px; padding: 0 4px; }

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    border: 1px solid #e8e8e8;
    width: 100%;
}
.service-card a   { text-decoration: none; color: inherit; display: block; }
.service-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.service-info     { padding: 14px 16px 16px; }
.service-info h3  { font-size: 0.95rem; color: var(--primary); margin-bottom: 6px; }
.service-info p   { font-size: 0.85rem; color: #555; line-height: 1.5; }
.service-info span { font-size: 0.82rem; font-weight: 700; }

/* ── Homepage contact ── */
.contact { padding: 35px 15px; background: var(--primary); color: white; text-align: center; }
.contact-container { max-width: 100%; background: rgba(255,255,255,0.1); padding: 20px 15px; border-radius: 12px; }
.contact input, .contact textarea { width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.25); border-radius: 5px; font-family: 'Poppins', sans-serif; font-size: 0.9rem; }
.contact button { width: 100%; background: var(--secondary); color: #1a1a1a; padding: 13px; border: none; border-radius: 5px; font-size: 0.95rem; cursor: pointer; font-weight: bold; }

/* ── Tour pages hero ── */
/* height: 56vw = ratio 387×216 (16:9 environ) → image affichée sans cropping */
.tour-header {
    height: 56vw;
    background-size: cover;
    background-position: center center;
}

/* hero-mobile.webp = version sans bandes floues, optimisée mobile */
.tour-angthong  { background-image: linear-gradient(rgba(0,0,0,0.15),rgba(0,0,0,0.15)), url('../images/angthong/hero-mobile.webp') !important; }
.tour-pig       { background-image: linear-gradient(rgba(0,0,0,0.15),rgba(0,0,0,0.15)), url('../images/pigisland/hero-mobile.webp') !important; }
.tour-kohtao    { background-image: linear-gradient(rgba(0,0,0,0.15),rgba(0,0,0,0.15)), url('../images/kohtao/hero-mobile.webp') !important; }
.tour-city      { background-image: linear-gradient(rgba(0,0,0,0.15),rgba(0,0,0,0.15)), url('../images/samui/hero-mobile.webp') !important; }
.tour-jungle    { background-image: linear-gradient(rgba(0,0,0,0.15),rgba(0,0,0,0.15)), url('../images/jungle-safari/hero-mobile.webp') !important; }
.tour-boats     { background-image: linear-gradient(rgba(0,0,0,0.15),rgba(0,0,0,0.15)), url('../images/privateboats/hero-mobile.webp') !important; }
.tour-elephants { background-image: linear-gradient(rgba(0,0,0,0.15),rgba(0,0,0,0.15)), url('../images/elephants/hero-mobile.webp') !important; }
.tour-hopping   { background-image: linear-gradient(rgba(0,0,0,0.15),rgba(0,0,0,0.15)), url('../images/island-hopping/hero-mobile.webp') !important; }
.tour-fullmoon  { background-image: linear-gradient(rgba(0,0,0,0.15),rgba(0,0,0,0.15)), url('../images/fullmoon/hero-mobile.webp') !important; }

.container { max-width: 100%; padding: 20px 15px; }
.tour-section { margin-bottom: 30px; text-align: center; }
.tour-intro   { margin: 0 auto 25px; }

/* Styles communs tours (mobile) */
.tour-header-intro { padding: 24px 15px 8px; }
.tour-h1 { font-size: 1.6rem; margin-bottom: 8px; }
.tour-subtitle { font-size: 0.95rem; }
.tour-section-intro { max-width: 100%; margin: 24px auto; padding: 0 4px; }
.tour-section-h2 { color: var(--primary); text-align: center; margin-bottom: 20px; }
.tour-section-h3 { color: var(--primary); margin-top: 16px; }

h1 { font-size: 1.55rem !important; }
h2 { font-size: 1.3rem; }

.pricing-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.price-card   { background: white; border: 1px solid #eee; border-radius: 10px; padding: 20px; box-shadow: 0 3px 12px rgba(0,0,0,0.06); position: relative; }
.highlight-card { border: 2px solid var(--secondary); }
.badge        { position: absolute; top: -10px; right: 15px; background: var(--secondary); color: #1a1a1a; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; }
.price-card h3 { color: var(--primary); margin-bottom: 5px; font-size: 1rem; }
.destinations  { font-weight: 600; color: #555; margin-bottom: 12px; font-size: 0.9rem; }
.price         { font-size: 1.6rem; color: var(--text); font-weight: bold; }
.price span    { font-size: 0.9rem; color: #767676; font-weight: normal; }
.child-price   { color: #666; font-size: 0.85rem; margin-top: 5px; }
.tour-specs         { list-style: none; margin-top: 16px; }
.tour-specs li      { margin-bottom: 8px; color: #555; font-size: 0.9rem; }
.tour-specs i       { color: var(--secondary); width: 22px; }

.details-grid { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.detail-box h4      { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; color: var(--primary); font-size: 0.95rem; }
.detail-box ul      { list-style: none; padding-left: 8px; }
.detail-box li      { margin-bottom: 7px; font-size: 0.88rem; }
.detail-box li:before { content: "•"; color: #ddd; margin-right: 8px; }

.warning-box  { background: #fff3cd; border-left: 4px solid #ffc107; padding: 14px; border-radius: 5px; margin-bottom: 30px; font-size: 0.88rem; }
.warning-box h4 { color: #856404; margin-bottom: 8px; font-size: 0.9rem; }

.tour-booking { background: var(--light-bg); padding: 20px 15px; border-radius: 12px; text-align: center; }
.booking-form { margin: 20px auto 0; text-align: left; }
.form-group   { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.form-group input, .form-group select { width: 100%; padding: 11px; border: 1px solid #ddd; border-radius: 5px; font-size: 0.9rem; }
.booking-form textarea { width: 100%; padding: 11px; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 12px; font-size: 0.9rem; }
.btn-book     { width: 100%; background: var(--primary); color: white; padding: 14px; border: none; border-radius: 5px; font-size: 1rem; font-weight: bold; cursor: pointer; }

.gallery-section { text-align: center; margin-bottom: 30px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 20px; }
.gallery-item { display: block; overflow: hidden; border-radius: 8px; cursor: pointer; height: 130px; }
.gallery-item img { width: 100% !important; height: 100%; object-fit: cover; }

.btn-add-cart { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: white; border: none; border-radius: 10px; padding: 13px 20px; font-size: 0.95rem; font-weight: 700; cursor: pointer; width: 100%; margin-top: 12px; }

/* ── Homepage index.php — styles extraits des attributs inline (mobile) ── */
section.intro{max-width:100%;margin:30px auto;padding:0 15px;text-align:center;color:#444;line-height:1.8;}
section.intro h1{font-size:1.55rem;color:#222;margin-bottom:16px;}
section.intro p+p{margin-top:12px;}
.btn-intro{display:inline-block;margin-top:18px;background-color:var(--primary);color:white;padding:11px 22px;border-radius:4px;text-decoration:none;font-weight:600;font-size:0.9rem;}
.view-details{color:var(--primary);font-weight:700;font-size:0.82rem;}
.service-info--jungle{background:linear-gradient(135deg,#1b5e20,#2e7d32);color:white;}
.service-info--jungle h3{color:white;}
.service-info--jungle p{color:#c8e6c9;}
.service-info--jungle .view-details{color:#a5d6a7;}
.service-info--fullmoon{background:linear-gradient(135deg,#1a1a2e,#0a4a6e);color:white;}
.service-info--fullmoon h3{color:white;}
.service-info--fullmoon p{color:#b0d4e8;}
.service-info--fullmoon .view-details{color:#f0c040;}
.why-section{background-color:var(--light-bg);padding:40px 15px;text-align:center;}
.why-section>div{max-width:100%;margin:0 auto;}
.why-section h2{font-size:1.3rem;color:#222;margin-bottom:20px;}
.why-grid{display:flex;flex-direction:column;gap:16px;text-align:left;}
.why-item{flex:1;}
.contact select{width:100%;padding:12px;margin-bottom:12px;border:none;border-radius:5px;font-family:'Poppins',sans-serif;font-size:0.9rem;color:#444;}
.contact-social{margin-top:16px;}
.contact-social-icons{font-size:1.4rem;margin-top:10px;}
.contact-social-icons a{margin:0 8px;text-decoration:none;}
.social-wa{color:#25D366;}
.social-fb{color:#1877F2;}
.social-ig{color:#C13584;}

/* content-visibility — saute le calcul de style des sections hors-écran (optimise TBT) */
.services{content-visibility:auto;contain-intrinsic-size:0 800px;}
.why-section{content-visibility:auto;contain-intrinsic-size:0 600px;}
.contact{content-visibility:auto;contain-intrinsic-size:0 400px;}
footer{content-visibility:auto;contain-intrinsic-size:0 120px;}

/* == Polices self-hosted (fusionne� depuis fonts.css) -- */
/* Self-hosted fonts — served from same origin for faster loading */

/* Playfair Display 700 — latin-ext */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url('../fonts/playfair-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display 700 — latin */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: optional;
    src: url('../fonts/playfair-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins 300 — latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: optional;
    src: url('../fonts/poppins-300-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins 300 — latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: optional;
    src: url('../fonts/poppins-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins 400 — latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url('../fonts/poppins-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins 400 — latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: optional;
    src: url('../fonts/poppins-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins 600 — latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: optional;
    src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins 600 — latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: optional;
    src: url('../fonts/poppins-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* == Font Awesome subset (fusionne� depuis fa-icons.css) -- */
/*!
 * Font Awesome 6 Free — subset auto-généré pour ME Travel Samui
 * Seules les ~45 icônes utilisées sur le site. Font-display: swap.
 */

/* ── Polices ── */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/fa-solid-900.woff2') format('woff2');
}
@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fa-brands-400.woff2') format('woff2');
}

/* ── Classes de base ── */
.fas, .fa-solid {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  width: 1.25em;
  text-align: center;
}
.fab, .fa-brands {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  width: 1.25em;
  text-align: center;
}

/* ── Icônes solid utilisées ── */
.fa-arrow-left:before        { content: "\f060"; }
.fa-bolt:before,.fa-zap:before { content: "\f0e7"; }
.fa-car:before               { content: "\f1b9"; }
.fa-check:before             { content: "\f00c"; }
.fa-check-circle:before,.fa-circle-check:before { content: "\f058"; }
.fa-clock:before             { content: "\f017"; }
.fa-exclamation-triangle:before,.fa-triangle-exclamation:before,.fa-warning:before { content: "\f071"; }
.fa-fish:before              { content: "\f578"; }
.fa-globe:before             { content: "\f0ac"; }
.fa-hands:before             { content: "\f2a7"; }
.fa-heart:before             { content: "\f004"; }
.fa-hippo:before             { content: "\f6ed"; }
.fa-info-circle:before       { content: "\f05a"; }
.fa-map-marked-alt:before    { content: "\f5a0"; }
.fa-map-pin:before           { content: "\f276"; }
.fa-mask:before              { content: "\f6fa"; }
.fa-money-bill-wave:before   { content: "\f53a"; }
.fa-moon:before              { content: "\f186"; }
.fa-mountain:before          { content: "\f6fc"; }
.fa-route:before             { content: "\f4d7"; }
.fa-sailboat:before          { content: "\e445"; }
.fa-shield-alt:before,.fa-shield-blank:before { content: "\f3ed"; }
.fa-ship:before              { content: "\f21a"; }
.fa-shopping-cart:before     { content: "\f07a"; }
.fa-shower:before            { content: "\f2cc"; }
.fa-star:before              { content: "\f005"; }
.fa-suitcase:before          { content: "\f0f2"; }
.fa-sun:before               { content: "\f185"; }
.fa-shuttle-van:before,.fa-van-shuttle:before { content: "\f5b6"; }
.fa-sync-alt:before,.fa-arrows-rotate:before { content: "\f2f1"; }
.fa-ticket-alt:before,.fa-ticket-simple:before { content: "\f3ff"; }
.fa-times:before,.fa-xmark:before { content: "\f00d"; }
.fa-times-circle:before,.fa-circle-xmark:before { content: "\f057"; }
.fa-tint:before,.fa-droplet:before { content: "\f043"; }
.fa-truck-monster:before     { content: "\f63b"; }
.fa-tshirt:before,.fa-shirt:before { content: "\f553"; }
.fa-user-tie:before          { content: "\f508"; }
.fa-users:before             { content: "\f0c0"; }
.fa-utensils:before          { content: "\f2e7"; }
.fa-water:before             { content: "\f773"; }

/* ── Icônes brands utilisées ── */
.fa-facebook:before,.fa-facebook-f:before { content: "\f09a"; }
.fa-instagram:before         { content: "\f16d"; }
.fa-whatsapp:before          { content: "\f232"; }

