/* ==========================================================================
   ODOMIA PAGES — CSS externe partagé (pages IRIS + communes)
   Cache Vercel : max-age=31536000, immutable (1 an)
   ========================================================================== */

:root {
  --primary: #357ea6;
  --secondary: #4ca896;
  --accent: #68c4a1;
  --sand: #FAF9F6;
  --text: #2d3436;
  --text-light: #636e72;
  --gray-light: #f5f5f5;
  --border: #e9ecef;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(53, 126, 166, 0.1);
  --shadow-lg: 0 8px 32px rgba(53, 126, 166, 0.14);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text); background: white; line-height: 1.6; }
h1, h2, h3 { font-family: 'Lora', serif; }
img { max-width: 100%; height: auto; }

/* ---------- ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ---------- NAVIGATION ---------- */
.od-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.od-nav-logo { display: flex; align-items: center; text-decoration: none; }
.od-nav-logo img { height: 44px; width: auto; }
.od-nav-right { display: flex; align-items: center; gap: 1rem; }
.od-nav-link {
  color: var(--text-light); text-decoration: none; font-size: 0.9rem;
  padding: 0.4rem 0.9rem; border-radius: 6px; border: 1px solid var(--border);
  transition: var(--transition);
}
.od-nav-link:hover { color: var(--primary); border-color: var(--primary); }
.od-nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; text-decoration: none; padding: 0.65rem 1.4rem;
  border-radius: 8px; font-weight: 700; font-size: 0.88rem;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 3px 12px rgba(53,126,166,0.3);
  transition: var(--transition); border: none; cursor: pointer;
}
.od-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(53,126,166,0.4); }

/* ---------- BREADCRUMB ---------- */
.od-breadcrumb {
  background: var(--gray-light); border-bottom: 1px solid var(--border);
  padding: 0.6rem 2rem; font-size: 0.82rem; color: var(--text-light);
}
.od-breadcrumb-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.od-breadcrumb a { color: var(--primary); text-decoration: none; }
.od-breadcrumb a:hover { text-decoration: underline; }
.od-breadcrumb-sep { color: var(--border); }
.od-breadcrumb-current { color: var(--text); font-weight: 600; }

/* ---------- HERO ---------- */
.od-hero {
  background: linear-gradient(135deg, var(--sand) 0%, #f0f7fb 100%);
  padding: 3.5rem 2rem 3rem;
}
.od-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.od-hero-badge {
  display: inline-block; background: rgba(53,126,166,0.1);
  color: var(--primary); padding: 0.4rem 1rem; border-radius: 20px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1.2rem;
  font-family: 'Montserrat', sans-serif;
}
.od-hero h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: 1rem; font-weight: 700; }
.od-hero h1 span { color: var(--primary); }
.od-hero-desc { font-size: 1.05rem; color: var(--text-light); margin-bottom: 2rem; font-family: 'Lora', serif; font-style: italic; }

/* Hero card */
.od-hero-card {
  background: white; border-radius: 16px; padding: 2rem;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.od-hero-card-head {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.od-hero-card-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--secondary); }
.od-hero-card-title { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); font-family: 'Montserrat', sans-serif; }
.od-hero-stat { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.od-hero-stat:last-child { border-bottom: none; }
.od-hero-stat-label { font-size: 0.88rem; color: var(--text-light); }
.od-hero-stat-val { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.od-hero-stat-val.main { font-size: 1.5rem; }
.od-hero-stat-val.up { color: var(--secondary); }
.od-hero-stat-val.down { color: #e17055; }

/* ---------- SECTIONS ---------- */
.od-section { padding: 4rem 2rem; }
.od-section-inner { max-width: 1200px; margin: 0 auto; }
.od-section-gray { background: var(--gray-light); }
.od-section-tag {
  display: inline-block; background: rgba(53,126,166,0.1); color: var(--primary);
  padding: 0.3rem 0.9rem; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem;
  font-family: 'Montserrat', sans-serif;
}
.od-section-title { font-size: 2.1rem; margin-bottom: 0.6rem; color: var(--text); font-weight: 700; }
.od-section-title em { font-style: italic; color: var(--primary); }
.od-section-subtitle { font-size: 1rem; color: var(--text-light); margin-bottom: 2.5rem; font-family: 'Lora', serif; }

/* ---------- KPI GRID ---------- */
.od-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.od-kpi {
  background: white; border-radius: var(--radius); padding: 1.5rem 1rem;
  border: 2px solid var(--border); text-align: center; transition: var(--transition);
}
.od-kpi:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.od-kpi.featured { border-color: var(--secondary); }
.od-kpi-val { font-size: 1.9rem; font-weight: 700; color: var(--primary); margin-bottom: 0.4rem; }
.od-kpi-val.teal { color: var(--secondary); }
.od-kpi-val.red { color: #e17055; }
.od-kpi-val.sm { font-size: 1.3rem; }
.od-kpi-label { font-size: 0.76rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; font-family: 'Montserrat', sans-serif; }

/* ---------- COMPOSITION ---------- */
.od-compo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.od-compo-card {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--border); display: flex; gap: 1rem; align-items: flex-start;
  transition: var(--transition);
}
.od-compo-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.od-compo-icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(53,126,166,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  flex-shrink: 0;
}
.od-compo-icon.featured { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.od-compo-val { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 0.2rem; }
.od-compo-label { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; }
.od-compo-desc { font-size: 0.82rem; color: var(--text-light); font-family: 'Lora', serif; }

/* ---------- PROFIL ACHETEUR ---------- */
.od-profil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.od-profil-card {
  background: white; border-radius: var(--radius); padding: 2rem;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.od-profil-card h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--primary);
  margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 2px solid rgba(53,126,166,0.12);
}
.od-profil-row { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.od-profil-row:last-child { border-bottom: none; }
.od-profil-key { font-size: 0.9rem; color: var(--text-light); }
.od-profil-val { font-size: 1rem; font-weight: 700; color: var(--text); }

/* ---------- EDITORIAL (BLOC A) ---------- */
.od-editorial-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.od-editorial-text p { font-family: 'Lora', serif; font-size: 1.02rem; color: var(--text-light); line-height: 1.9; margin-bottom: 1.2rem; }
.od-editorial-text strong { color: var(--text); }
.od-prix-tag {
  display: inline-block; background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.82rem;
  padding: 0.15rem 0.6rem; border-radius: 5px;
}
.od-editorial-aside { background: var(--gray-light); border-radius: 16px; padding: 1.75rem; border: 1px solid var(--border); }
.od-aside-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 1.2rem; font-family: 'Montserrat', sans-serif; }
.od-aside-row { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--border); }
.od-aside-row:last-child { border-bottom: none; }
.od-aside-key { font-size: 0.84rem; color: var(--text-light); }
.od-aside-val { font-size: 0.92rem; font-weight: 700; color: var(--primary); }

/* ---------- CONSEILS (BLOC B) ---------- */
.od-conseils-intro { max-width: 720px; margin-bottom: 2.5rem; font-family: 'Lora', serif; font-size: 1.02rem; color: var(--text-light); line-height: 1.85; }
.od-conseils-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.od-conseil-card {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--border); display: flex; gap: 1rem; align-items: flex-start;
  transition: var(--transition);
}
.od-conseil-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.od-conseil-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex-shrink: 0;
}
.od-conseil-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; font-family: 'Inter', sans-serif; }
.od-conseil-card p { font-size: 0.86rem; color: var(--text-light); line-height: 1.7; font-family: 'Lora', serif; }

/* ---------- CROSSLINK ---------- */
.od-crosslink {
  background: var(--gray-light); border-radius: var(--radius); padding: 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  margin-bottom: 2.5rem; border: 1px solid var(--border);
}
.od-crosslink p { font-family: 'Lora', serif; font-style: italic; color: var(--text-light); font-size: 0.98rem; }
.od-crosslink-btn {
  background: white; border: 2px solid var(--primary); color: var(--primary);
  padding: 0.7rem 1.4rem; border-radius: 8px; text-decoration: none;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.85rem;
  white-space: nowrap; transition: var(--transition);
}
.od-crosslink-btn:hover { background: var(--primary); color: white; }

/* ---------- FORM SECTION ---------- */
.od-form-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 20px; overflow: hidden;
}
.od-form-grid { display: grid; grid-template-columns: 1fr 1fr; }
.od-form-left { padding: 3rem; color: white; }
.od-form-left h2 { font-size: 1.9rem; margin-bottom: 1rem; }
.od-form-left p { opacity: 0.9; font-family: 'Lora', serif; margin-bottom: 2rem; font-size: 0.98rem; }
.od-form-check { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.85rem; font-size: 0.92rem; }
.od-form-check-icon { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; flex-shrink: 0; }
.od-form-right { padding: 3rem; background: white; }
.od-form-right h3 { font-size: 1.4rem; margin-bottom: 0.4rem; font-family: 'Lora', serif; }
.od-form-right > p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 2rem; font-family: 'Lora', serif; }
.od-form-submit {
  width: 100%; padding: 1rem; border: none; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem;
  cursor: pointer; box-shadow: 0 4px 15px rgba(53,126,166,0.3); transition: var(--transition);
  min-height: 44px;
}
.od-form-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(53,126,166,0.4); }
.od-form-note { text-align: center; font-size: 0.7rem; margin-top: 0.9rem; color: var(--text-light); }

/* ---------- FAQ ---------- */
.od-faq-list { max-width: 820px; margin: 0 auto; }
.od-faq-item {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 0.9rem; overflow: hidden; transition: var(--transition);
}
.od-faq-item.open { border-color: var(--primary); box-shadow: var(--shadow); }
.od-faq-q {
  width: 100%; padding: 1.2rem 1.5rem; background: none; border: none;
  text-align: left; font-family: 'Lora', serif; font-size: 1.05rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  color: var(--text); gap: 1rem; min-height: 44px;
}
.od-faq-icon {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(53,126,166,0.1);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; transition: var(--transition);
  font-style: normal; font-family: 'Inter', sans-serif;
}
.od-faq-item.open .od-faq-icon { background: var(--primary); color: white; }
.od-faq-a {
  padding: 0 1.5rem 1.2rem; color: var(--text-light); font-size: 0.93rem;
  line-height: 1.8; display: none; font-family: 'Lora', serif;
}
.od-faq-item.open .od-faq-a { display: block; }

/* ---------- FOOTER ---------- */
.od-footer { background: var(--gray-light); padding: 2.5rem 2rem; text-align: center; color: var(--text-light); font-size: 0.88rem; border-top: 1px solid var(--border); }
.od-footer-logo { margin-bottom: 1.25rem; }
.od-footer-logo img { height: 36px; width: auto; opacity: 0.8; }
.od-footer a { color: var(--primary); text-decoration: none; }
.od-footer a:hover { text-decoration: underline; }
.od-footer-seo { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.od-footer-seo p { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.75rem; font-family: 'Montserrat', sans-serif; }
.od-footer-seo a { color: var(--text-light); font-size: 0.8rem; margin: 0 0.4rem; }
.od-footer-seo a:hover { color: var(--primary); }

/* Co-branding EXP */
.footer-cobranding { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo svg { height: 32px; width: auto; opacity: 0.85; }
.footer-logo-text { font-size: 0.95rem; font-weight: 700; color: var(--primary); }
.footer-logo-text span { opacity: 0.6; }
.footer-divider { color: var(--border); font-size: 1.5rem; opacity: 0.4; }
.footer-exp-logo { display: flex; align-items: center; }
.footer-exp-logo img { height: 32px; width: auto; opacity: 0.85; }

/* ---------- COMMUNE HUB SPECIFIC ---------- */
.od-iris-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.od-iris-card {
  background: white; border: 1px solid var(--border); border-radius: 20px;
  padding: 2rem; box-shadow: var(--shadow); transition: var(--transition);
}
.od-iris-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.od-iris-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.od-iris-name { font-family: 'Lora', serif; font-size: 1.35rem; font-weight: 600; margin-bottom: 0.4rem; }
.od-iris-badge {
  font-family: 'Montserrat', sans-serif; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light);
  background: var(--gray-light); padding: 0.25rem 0.7rem; border-radius: 20px; display: inline-block;
}
.od-iris-prix-val { font-size: 1.9rem; font-weight: 700; color: var(--primary); font-family: 'Lora', serif; text-align: right; }
.od-iris-prix-unit { font-size: 0.82rem; color: var(--text-light); text-align: right; }
.od-iris-stats { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.od-iris-stats span {
  font-size: 0.82rem; color: var(--text-light); background: var(--gray-light);
  padding: 0.25rem 0.7rem; border-radius: 20px; border: 1px solid var(--border);
}
.od-iris-links { display: flex; gap: 0.75rem; }
.od-iris-btn {
  text-decoration: none; padding: 0.65rem 1.25rem; border-radius: 8px;
  font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 700;
  border: 2px solid var(--primary); color: var(--primary); transition: var(--transition);
  flex: 1; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.od-iris-btn:hover { background: var(--primary); color: white; }
.od-iris-btn.primary { background: var(--primary); color: white; }
.od-iris-btn.primary:hover { background: #2a6489; }

/* ---------- RESPONSIVE ---------- */

/* Tablette paysage (1025 → 1200) — déjà OK */

/* Tablette portrait (769 → 1024) */
@media (max-width: 1024px) {
  .od-hero-inner { gap: 2rem; }
  .od-hero h1 { font-size: 2.2rem; }
  .od-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .od-compo-grid { grid-template-columns: repeat(2, 1fr); }
  .od-editorial-grid { grid-template-columns: 1fr; }
  .od-editorial-aside { margin-top: 0; }
  .od-iris-grid { grid-template-columns: 1fr; }
}

/* Mobile large (481 → 768) */
@media (max-width: 768px) {
  .od-nav { padding: 0.75rem 1.25rem; }
  .od-nav-link { display: none; }
  .od-hero { padding: 2.5rem 1.25rem; }
  .od-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .od-hero h1 { font-size: 2rem; }
  .od-section { padding: 3rem 1.25rem; }
  .od-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .od-profil-grid { grid-template-columns: 1fr; }
  .od-conseils-grid { grid-template-columns: 1fr; }
  .od-form-grid { grid-template-columns: 1fr; }
  .od-form-left, .od-form-right { padding: 2rem 1.5rem; }
  .od-crosslink { flex-direction: column; text-align: center; }
  .od-compo-grid { grid-template-columns: 1fr; }
}

/* Mobile petit (jusqu'à 480px) */
@media (max-width: 480px) {
  .od-hero h1 { font-size: 1.75rem; }
  .od-section-title { font-size: 1.6rem; }
  .od-kpi-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .od-kpi-val { font-size: 1.5rem; }
  .od-iris-grid { grid-template-columns: 1fr; }
  .od-iris-links { flex-direction: column; }
  .od-breadcrumb { font-size: 0.78rem; padding: 0.5rem 1rem; }
  .od-faq-q { font-size: 0.95rem; }
}

/* Focus visible — accessibilité clavier */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
