/* responsive.css — filet de sécurité « tous écrans » (téléphone étroit, tablette, portable, grand écran).
   À charger EN DERNIER (après flat.css). Ne change ni les données ni la logique ; l'ordinateur reste identique. */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-width: 320px; overflow-wrap: break-word; }
img, svg, video, iframe, canvas { max-width: 100%; }
.wrap, .topbar-inner, .site-header-inner { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }

/* Une colonne de grille / flex ne force jamais la page à s'élargir */
.itinerary-card > *, .service-grid > *, .tile-row > *, .news-grid > *, .form-row-grid > *, .book-hero > *,
.inc-exc-grid > *, .price-info > *, .qf-steps > *, .notices-grid > *, .book-fields > * { min-width: 0; }

/* ---------- Tablette « portable étroit » : livre au-dessus, encadré des prix dessous ---------- */
@media (min-width: 900px) and (max-width: 1099px) {
    #destinations .wrap { grid-template-columns: minmax(0, 1fr); }
    #destinations .sec-head { order: -2; }
    #destinations .itinerary-list-container { grid-column: 1; grid-row: auto; order: -1; }
    #destinations .price-info { grid-column: 1; grid-row: auto; margin-top: 18px; }
    #destinations .ebook3d { margin: 0 auto; }
}

/* ---------- Téléphone et tablette ---------- */
@media (max-width: 860px) {
    /* iOS zoomerait sur les champs < 16 px */
    input, select, textarea, .form-input, .site-search input { font-size: 16px; }
    .topbar a { padding: 10px 14px 8px; }
    .site-search input, .site-search button { height: 42px; }
    .st-btn, .bk-btn { width: 36px; height: 36px; }
    .radio-chip, .suggest-chip { min-height: 40px; }
    .hero-slide { min-height: 300px; }
    .sec-head { gap: 6px 10px; }
    .contact-inner h2 { font-size: clamp(18px, 5vw, 24px); }
    .social-btn { min-width: 0; }
    .itinerary-header-info h1 { overflow-wrap: anywhere; }
}

/* ---------- Téléphone ---------- */
@media (max-width: 560px) {
    .site-header-inner { gap: 6px; padding-top: 6px; padding-bottom: 6px; }
    .slide-title { font-size: clamp(17px, 5.2vw, 21px); }
    .slide-big .num { font-size: clamp(56px, 18vw, 76px); }
    .slide-big .unit { font-size: clamp(24px, 8vw, 30px); }
    .slide-big .txt { font-size: clamp(17px, 5.6vw, 22px); }
    .slide-actions .btn-primary, .slide-actions .btn-secondary { padding: 10px 16px; }
    .tile { min-height: 150px; }
    .tile .tile-label { font-size: 13px; }
    .form-group { padding: 12px 12px; }
    .pg-row { grid-template-columns: .9fr 1.1fr 1.1fr; gap: 2px; padding: 8px 4px; }
    .stepper { gap: 3px; }
    .st-btn { width: 32px; height: 32px; }
    .st-val { min-width: 18px; }
    .madagascar-map-wrap { --pin: 36px; }
    .eb-nav { flex-wrap: wrap; gap: 8px; }
    .eb-btn { padding: 8px 10px; font-size: 12px; }
    .ebook3d { max-width: 100%; }
    .detail-page-container { padding-left: 8px; padding-right: 8px; }
    .book-panel { padding: 14px 12px; }
    .ab-links .ab-btn, .btn-block { width: 100%; }
}

/* ---------- Petits téléphones (≤ 380 px) ---------- */
@media (max-width: 380px) {
    .st-btn { width: 28px; height: 28px; font-size: 15px; }
    .st-val { min-width: 16px; font-size: 14px; }
    .pg-band { font-size: 11px; }
    .madagascar-map-wrap { --pin: 32px; }
    .map-pin-name { font-size: 9px; }
    .day-card { grid-template-columns: 48px 1fr; }
    .day-badge-box b { font-size: 22px; }
    .itinerary-header-info h1 { font-size: 19px !important; }
    .itinerary-title { font-size: 17px; }
    .price-val { font-size: 24px; }
    .pi-title { font-size: 17px; }
    .sec-head h2 { font-size: 16px; }
}

/* ---------- Très grands écrans ---------- */
@media (min-width: 1800px) {
    body { font-size: 15px; }
}

/* ---------- Téléphone en mode paysage (écran bas) ---------- */
@media (max-height: 480px) and (orientation: landscape) {
    .hero-slide { min-height: 0; height: auto; padding: 14px 0 18px; }
    .site-header { position: static; }
}

/* ---------- Logo Aki Travel : grand et bien visible (l'image a de l'air autour du texte, d'où la hauteur) ---------- */
.site-logo-img { height: 68px; width: auto; margin: -8px 0; }
.site-header-inner { gap: 22px; }
@media (max-width: 1100px) { .site-logo-img { height: 58px; } }
@media (max-width: 860px)  { .site-logo-img { height: 54px; margin: -6px 0; } }
@media (max-width: 560px)  { .site-logo-img { height: 50px; margin: -6px 0; } }
@media (max-width: 380px)  { .site-logo-img { height: 44px; } }
