/*
Theme Name: Le Trapèze des Mascareignes
Theme URI: https://letrapezedesmascareignes.com
Description: Annuaire SEO local — Activités, Hébergements & Bien-être dans les îles de l'Océan Indien
Version: 1.0
Author: Seobooster Ltd
*/

/* ================================================================
   VARIABLES CSS — PALETTE ÎLES MASCAREIGNES
================================================================ */
:root {
  --color-primary: #0B7A8A;
  --color-primary-dark: #085F6D;
  --color-primary-light: #E8F5F7;
  --color-secondary: #E8621A;
  --color-secondary-dark: #C4500F;
  --color-accent: #F4C430;
  --color-accent-dark: #D4A820;
  --color-bg: #F9F8F5;
  --color-bg-alt: #EEF7F9;
  --color-bg-dark: #1C2B35;
  --color-text: #2D3748;
  --color-text-light: #718096;
  --color-text-muted: #A0AEC0;
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;
  --color-success: #38A169;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  --spacing: 8px;
  --container-max: 1200px;
  --header-h: 70px;
}

/* ================================================================
   RESET & BASE
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dark); }
button { cursor: pointer; font-family: var(--font-body); }
ul { list-style: none; }

/* ================================================================
   TYPOGRAPHIE
================================================================ */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--color-bg-dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; max-width: 72ch; }
.wide p { max-width: 100%; }

/* ================================================================
   LAYOUT
================================================================ */
.ltm-container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .ltm-container { padding: 0 24px; } }
@media (min-width: 1024px) { .ltm-container { padding: 0 32px; } }

.ltm-section { padding: 48px 0; }
@media (min-width: 768px) { .ltm-section { padding: 72px 0; } }

.ltm-section--alt { background: var(--color-bg-alt); }
.ltm-section--dark { background: var(--color-bg-dark); color: var(--color-white); }
.ltm-section--dark h1,.ltm-section--dark h2,.ltm-section--dark h3 { color: var(--color-white); }

/* GRID */
.ltm-grid-2 { display: grid; gap: 24px; }
.ltm-grid-3 { display: grid; gap: 20px; }
.ltm-grid-4 { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .ltm-grid-2 { grid-template-columns: repeat(2,1fr); }
  .ltm-grid-3 { grid-template-columns: repeat(2,1fr); }
  .ltm-grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1024px) {
  .ltm-grid-3 { grid-template-columns: repeat(3,1fr); }
  .ltm-grid-4 { grid-template-columns: repeat(4,1fr); }
}

/* ================================================================
   HEADER
================================================================ */
#ltm-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bg-dark);
  height: var(--header-h);
  box-shadow: var(--shadow-md);
}
.ltm-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.ltm-logo { display: flex; align-items: center; gap: 10px; }
.ltm-logo img { height: 40px; width: auto; }
.ltm-logo-text { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--color-white); line-height: 1.2; }
.ltm-logo-text span { color: var(--color-accent); display: block; font-size: 0.7rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }

/* NAV */
.ltm-nav { display: none; }
@media (min-width: 768px) {
  .ltm-nav { display: flex; align-items: center; gap: 4px; }
  .ltm-nav a { color: rgba(255,255,255,0.85); padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; transition: all .2s; }
  .ltm-nav a:hover { background: rgba(255,255,255,0.1); color: var(--color-white); }
  .ltm-nav .ltm-btn-nav { background: var(--color-secondary); color: var(--color-white) !important; padding: 8px 16px; border-radius: var(--radius-full); }
  .ltm-nav .ltm-btn-nav:hover { background: var(--color-secondary-dark); }
}
.ltm-menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.ltm-menu-toggle span { width: 24px; height: 2px; background: var(--color-white); border-radius: 2px; transition: .3s; }
@media (min-width: 768px) { .ltm-menu-toggle { display: none; } }

/* MOBILE MENU */
#ltm-mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--color-bg-dark); z-index: 99; padding: 24px 16px;
  transform: translateX(-100%); transition: transform .3s;
  overflow-y: auto;
}
#ltm-mobile-menu.open { transform: translateX(0); }
#ltm-mobile-menu a { display: block; color: var(--color-white); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 1rem; }

/* ================================================================
   BOUTONS
================================================================ */
.ltm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 1rem; border: none;
  transition: all .2s; min-height: 48px; cursor: pointer;
  text-decoration: none;
}
.ltm-btn-primary { background: var(--color-secondary); color: var(--color-white); }
.ltm-btn-primary:hover { background: var(--color-secondary-dark); color: var(--color-white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ltm-btn-teal { background: var(--color-primary); color: var(--color-white); }
.ltm-btn-teal:hover { background: var(--color-primary-dark); color: var(--color-white); transform: translateY(-1px); }
.ltm-btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.ltm-btn-outline:hover { background: var(--color-primary); color: var(--color-white); }
.ltm-btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.ltm-btn-sm { padding: 10px 20px; font-size: 0.875rem; min-height: 40px; }

/* ================================================================
   HERO
================================================================ */
#ltm-hero {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #0E4A5F 50%, var(--color-primary) 100%);
  position: relative; overflow: hidden; padding: 64px 0 80px;
}
#ltm-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='rgba(255,255,255,0.03)' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,144C672,139,768,181,864,186.7C960,192,1056,160,1152,138.7C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}
.ltm-hero-inner { display: grid; gap: 40px; position: relative; z-index: 1; }
@media (min-width: 1024px) { .ltm-hero-inner { grid-template-columns: 1fr 480px; align-items: center; } }

.ltm-hero-content h1 { color: var(--color-white); margin-bottom: 16px; }
.ltm-hero-content h1 em { color: var(--color-accent); font-style: normal; }
.ltm-hero-subtitle { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: 24px; max-width: 540px; }
.ltm-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.ltm-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  color: var(--color-white); padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.15);
}

/* FORMULAIRE HERO */
.ltm-form-card {
  background: var(--color-white); border-radius: var(--radius-xl);
  padding: 32px 24px; box-shadow: var(--shadow-xl);
}
.ltm-form-card h3 { color: var(--color-bg-dark); margin-bottom: 4px; font-size: 1.3rem; }
.ltm-form-card p { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 20px; }

/* ================================================================
   FORMULAIRES
================================================================ */
.ltm-form { display: flex; flex-direction: column; gap: 12px; }
.ltm-form input,
.ltm-form select,
.ltm-form textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md); font-family: var(--font-body); font-size: 0.95rem;
  background: var(--color-white); color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
  min-height: 48px;
}
.ltm-form input:focus,
.ltm-form select:focus,
.ltm-form textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11,122,138,0.12);
}
.ltm-form input.valid { border-color: var(--color-success); }
.ltm-form input.invalid { border-color: #E53E3E; }
.ltm-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23718096' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.ltm-form .ltm-btn { width: 100%; justify-content: center; }
.ltm-form-reassurance { text-align: center; font-size: 0.78rem; color: var(--color-text-light); margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.ltm-form-reassurance span::before { content: '✓ '; color: var(--color-success); }
.ltm-honeypot { display: none !important; }

/* ================================================================
   CARDS
================================================================ */
.ltm-card {
  background: var(--color-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--color-border);
  transition: box-shadow .2s, transform .2s; overflow: hidden;
}
.ltm-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ltm-card-body { padding: 20px; }
.ltm-card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--color-bg-dark); }
.ltm-card-text { color: var(--color-text-light); font-size: 0.9rem; line-height: 1.5; margin-bottom: 0; }
.ltm-card-link { display: inline-flex; align-items: center; gap: 4px; color: var(--color-primary); font-weight: 600; font-size: 0.875rem; margin-top: 12px; }

/* SILOS CARDS */
.ltm-silo-card { background: var(--color-white); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; box-shadow: var(--shadow-sm); border: 2px solid transparent; transition: all .25s; }
.ltm-silo-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ltm-silo-icon { width: 64px; height: 64px; border-radius: var(--radius-full); background: var(--color-primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 1.8rem; }
.ltm-silo-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.ltm-silo-card p { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 0; }

/* ILE CARDS */
.ltm-ile-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 180px; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--color-primary), var(--color-bg-dark)); }
.ltm-ile-card-body { padding: 20px; z-index: 1; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%); }
.ltm-ile-card h3 { color: var(--color-white); font-size: 1.2rem; margin-bottom: 4px; }
.ltm-ile-card p { color: rgba(255,255,255,0.8); font-size: 0.8rem; margin-bottom: 0; }

/* ================================================================
   BREADCRUMB
================================================================ */
.ltm-breadcrumb { padding: 12px 0; font-size: 0.82rem; color: var(--color-text-muted); }
.ltm-breadcrumb a { color: var(--color-primary); }
.ltm-breadcrumb span { margin: 0 6px; }

/* ================================================================
   PAGE LOCALE — SECTIONS
================================================================ */
.ltm-page-header { background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-primary-dark) 100%); padding: 48px 0 56px; }
.ltm-page-header h1 { color: var(--color-white); margin-bottom: 12px; }
.ltm-page-header p { color: rgba(255,255,255,0.85); max-width: 600px; margin-bottom: 0; }

.ltm-content-block { margin-bottom: 40px; }
.ltm-content-block h2 { margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--color-primary-light); }
.ltm-content-block h3 { margin-bottom: 10px; color: var(--color-primary); }

/* INFO BOX */
.ltm-info-box { background: var(--color-bg-alt); border-left: 4px solid var(--color-primary); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 16px 20px; margin: 20px 0; }
.ltm-info-box strong { color: var(--color-primary); display: block; margin-bottom: 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .05em; }

/* SERVICES LIST */
.ltm-services-list { display: grid; gap: 16px; }
@media (min-width: 768px) { .ltm-services-list { grid-template-columns: repeat(2,1fr); } }
.ltm-service-item { background: var(--color-white); border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--color-border); }
.ltm-service-item h3 { font-size: 1rem; margin-bottom: 8px; color: var(--color-primary-dark); }
.ltm-service-item p { font-size: 0.9rem; margin-bottom: 0; }

/* VILLES PROCHES */
.ltm-nearby { background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: 24px; margin-top: 40px; }
.ltm-nearby h3 { margin-bottom: 16px; font-size: 1rem; color: var(--color-text); }
.ltm-nearby-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ltm-nearby-link { display: inline-block; padding: 8px 14px; background: var(--color-white); border: 1px solid var(--color-primary-light); border-radius: var(--radius-full); font-size: 0.85rem; color: var(--color-primary); font-weight: 500; transition: all .2s; }
.ltm-nearby-link:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }

/* ================================================================
   FAQ
================================================================ */
.ltm-faq { margin-top: 40px; }
.ltm-faq-item { border-bottom: 1px solid var(--color-border); }
.ltm-faq-question {
  width: 100%; text-align: left; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: none; font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: var(--color-bg-dark); cursor: pointer;
}
.ltm-faq-question::after { content: '+'; font-size: 1.4rem; color: var(--color-primary); flex-shrink: 0; transition: transform .25s; font-family: var(--font-body); font-weight: 300; }
.ltm-faq-item.open .ltm-faq-question::after { transform: rotate(45deg); }
.ltm-faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.ltm-faq-answer-inner { padding: 0 0 16px; color: var(--color-text); font-size: 0.95rem; line-height: 1.65; }
.ltm-faq-item.open .ltm-faq-answer { max-height: 400px; }

/* ================================================================
   GRILLE VILLES
================================================================ */
.ltm-villes-grid { display: grid; gap: 12px; grid-template-columns: repeat(2,1fr); }
@media (min-width: 768px) { .ltm-villes-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .ltm-villes-grid { grid-template-columns: repeat(4,1fr); } }
.ltm-ville-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-size: 0.9rem; color: var(--color-text); font-weight: 500;
  transition: all .2s;
}
.ltm-ville-link:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.ltm-ville-link:hover .ltm-ville-arrow { color: var(--color-white); }
.ltm-ville-arrow { color: var(--color-primary); font-size: 0.75rem; }

/* ================================================================
   SECTION COMMENT CA MARCHE
================================================================ */
.ltm-steps { display: grid; gap: 24px; counter-reset: steps; }
@media (min-width: 768px) { .ltm-steps { grid-template-columns: repeat(3,1fr); } }
.ltm-step { text-align: center; padding: 24px 16px; }
.ltm-step-num { width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-white); font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.ltm-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.ltm-step p { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 0; }

/* ================================================================
   TABLEAU COMPARATIF
================================================================ */
.ltm-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; }
.ltm-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ltm-table th { background: var(--color-primary); color: var(--color-white); padding: 12px 16px; text-align: left; font-weight: 600; white-space: nowrap; }
.ltm-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.ltm-table tr:nth-child(even) td { background: var(--color-bg-alt); }
.ltm-table tr:hover td { background: var(--color-primary-light); }

/* ================================================================
   CTA BANNIÈRE
================================================================ */
.ltm-cta-banner { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); border-radius: var(--radius-xl); padding: 40px 32px; text-align: center; margin: 48px 0; }
.ltm-cta-banner h2 { color: var(--color-white); margin-bottom: 12px; }
.ltm-cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 24px; max-width: 500px; margin-left: auto; margin-right: auto; }
.ltm-cta-banner .ltm-btn-primary { background: var(--color-accent); color: var(--color-bg-dark); }
.ltm-cta-banner .ltm-btn-primary:hover { background: var(--color-accent-dark); color: var(--color-bg-dark); }

/* ================================================================
   FOOTER
================================================================ */
#ltm-footer { background: var(--color-bg-dark); color: rgba(255,255,255,0.75); padding: 48px 0 24px; }
.ltm-footer-grid { display: grid; gap: 32px; margin-bottom: 40px; }
@media (min-width: 768px) { .ltm-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.ltm-footer-brand .ltm-logo-text { color: var(--color-white); font-size: 1.2rem; }
.ltm-footer-brand p { font-size: 0.85rem; margin-top: 12px; line-height: 1.6; }
.ltm-footer-col h4 { color: var(--color-white); font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ltm-footer-col ul { display: flex; flex-direction: column; gap: 6px; }
.ltm-footer-col a { color: rgba(255,255,255,0.65); font-size: 0.85rem; transition: color .2s; }
.ltm-footer-col a:hover { color: var(--color-accent); }
.ltm-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 768px) { .ltm-footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.ltm-footer-bottom p { font-size: 0.8rem; margin-bottom: 0; }

/* ================================================================
   STICKY MOBILE CTA
================================================================ */
#ltm-sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 98;
  background: var(--color-bg-dark); padding: 12px 16px;
  display: flex; gap: 8px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transform: translateY(100%); transition: transform .3s;
}
#ltm-sticky-cta.visible { transform: translateY(0); }
#ltm-sticky-cta .ltm-btn { flex: 1; font-size: 0.9rem; padding: 12px 16px; }
@media (min-width: 768px) { #ltm-sticky-cta { display: none; } }

/* ================================================================
   ANIMATIONS
================================================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.ltm-animate { opacity: 0; }
.ltm-animate.in-view { animation: fadeInUp .5s ease forwards; }

/* ================================================================
   UTILITAIRES
================================================================ */
.ltm-text-center { text-align: center; }
.ltm-section-title { text-align: center; margin-bottom: 40px; }
.ltm-section-title h2 { margin-bottom: 8px; }
.ltm-section-title p { color: var(--color-text-light); max-width: 540px; margin: 0 auto; }
.ltm-tag { display: inline-block; padding: 4px 10px; background: var(--color-primary-light); color: var(--color-primary); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.ltm-separator { height: 3px; width: 48px; background: var(--color-secondary); border-radius: var(--radius-full); margin: 12px 0 20px; }
.ltm-separator--center { margin-left: auto; margin-right: auto; }
