/* === Visite Virtuelle 33 — Styles CMS === */

:root {
  --primary: #031246;
  --primary-light: #006edc;
  --accent: #0693e3;
  --accent-green: #00d084;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-dark: #031246;
  --text: #1a1a2e;
  --text-light: #3a4268;
  --text-muted: #808285;
  --text-on-dark: #ffffff;
  --border: #eceff3;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(3,18,70,0.08);
  --shadow-lg: 0 8px 32px rgba(3,18,70,0.12);
  --max-w: 1200px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--primary); color: #fff; padding: 8px 16px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* === NAV === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--primary); font-weight: 700; font-size: 1.1rem;
  text-decoration: none;
}
.brand:hover { color: var(--primary); }
.brand .logo { width: 40px; height: 40px; border-radius: 6px; }
.brand small { display: block; font-size: 0.7em; color: var(--accent); font-weight: 600; }
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius);
  color: var(--text); font-size: 0.95rem; font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary-light); background: var(--bg-alt);
}
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover { background: var(--primary-light) !important; }

.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 8px 0; z-index: 50;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 20px; white-space: nowrap; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--primary);
  position: absolute; left: 0; transition: all var(--transition);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* === HERO === */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0a1e5c 100%);
  color: var(--text-on-dark); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.2;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; padding: 80px 24px;
}
.hero-overtitle {
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent-green); margin-bottom: 12px; font-weight: 600;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 20px;
}
.hero p {
  font-size: 1.15rem; max-width: 600px; opacity: 0.9;
  margin-bottom: 32px; line-height: 1.6;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--accent-green); color: var(--primary); }
.btn-primary:hover { background: #00b872; color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-light); color: #fff; transform: translateY(-2px); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* === SECTIONS === */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--bg-alt); }
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  color: var(--primary); margin-bottom: 16px;
}
.section-header p {
  font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto;
}

/* === INFO BAND === */
.info-band {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 24px; background: var(--bg); border-bottom: 1px solid var(--border);
}
.info-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; color: var(--text);
}
.info-item svg { width: 20px; height: 20px; fill: var(--primary-light); flex-shrink: 0; }
.info-item strong { color: var(--primary); }

/* === CARDS GRID === */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-green) 100%);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; fill: #fff; }
.card h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 12px; font-weight: 700; }
.card p { color: var(--text-light); font-size: 0.95rem; }
.card ul { margin-top: 12px; }
.card ul li {
  padding: 6px 0; color: var(--text-light); font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  padding-left: 16px; position: relative;
}
.card ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-green);
}

/* === NUMBERED CARDS === */
.card-numbered { position: relative; padding-top: 48px; }
.card-number {
  position: absolute; top: 16px; left: 32px;
  font-size: 2rem; font-weight: 900; color: var(--accent);
  opacity: 0.15;
}

/* === FEATURES === */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature { text-align: center; padding: 32px; }
.feature-num {
  font-size: 2.5rem; font-weight: 900; color: var(--accent);
  margin-bottom: 8px;
}
.feature h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 8px; }
.feature p { color: var(--text-light); font-size: 0.9rem; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-text h2 { font-size: 2rem; color: var(--primary); margin-bottom: 16px; font-weight: 800; }
.about-text p { color: var(--text-light); margin-bottom: 16px; }

/* === VALUES === */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value { text-align: center; padding: 32px; }
.value h3 {
  font-size: 1.2rem; color: var(--primary); margin-bottom: 12px;
  font-weight: 700;
}
.value p { color: var(--text-light); font-size: 0.95rem; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 {
  font-size: 1.3rem; color: var(--primary); margin-bottom: 8px; font-weight: 700;
}
.contact-info p, .contact-info a {
  color: var(--text-light); font-size: 1rem; margin-bottom: 16px; display: block;
}
.contact-detail { margin-bottom: 24px; }
.contact-detail h4 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 4px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; font-size: 0.9rem;
  color: var(--text); margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 1rem;
  font-family: inherit; transition: border-color var(--transition);
  background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,147,227,0.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* === BLOG LISTING === */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.blog-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 8px; }
.blog-card p { color: var(--text-light); font-size: 0.9rem; }

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0a1e5c 100%);
  color: var(--text-on-dark); text-align: center;
  padding: 80px 24px;
}
.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; align-items: center; }
.cta-phone { font-size: 1.1rem; color: rgba(255,255,255,0.8); }
.cta-phone a { color: #fff; font-weight: 700; }

/* === 404 === */
.page-404 { text-align: center; padding: 120px 24px; }
.page-404 h1 { font-size: 6rem; font-weight: 900; color: var(--accent); margin-bottom: 16px; }
.page-404 p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 32px; }

/* === FOOTER === */
.footer {
  background: var(--bg-dark); color: var(--text-on-dark);
  padding: 60px 0 0;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px;
}
.footer h4 { font-size: 1.1rem; margin-bottom: 16px; font-weight: 700; }
.footer p, .footer li { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.8; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--accent-green); }
.footer-bottom {
  margin-top: 40px; padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 16px; gap: 4px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .dropdown { position: static; box-shadow: none; border: none; padding-left: 16px; display: none; }
  .has-dropdown:hover .dropdown { display: block; }

  .hero { min-height: 400px; }
  .hero-content { padding: 60px 24px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .features, .values { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }

  section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
}

/* --- remonter.py : tableaux defilants ---------------------------------------
   Herite de WordPress : les articles migres contiennent des <table> larges qui
   debordaient l'ecran sur mobile. Le conteneur defile horizontalement au lieu
   de pousser toute la page. */
.he-table-defilante { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%;
      margin: 1.2rem 0; }
.he-table-defilante > table { min-width: 32rem; }

/* --- fil d'Ariane -----------------------------------------------------------
   Discret par construction : il sert a s'orienter, pas a attirer l'oeil. */
.he-ariane { max-width: 1180px; margin: 0 auto; padding: .9rem 1.2rem .2rem; }
.he-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
  margin: 0; padding: 0; font-size: .85rem; color: #777; }
.he-ariane li + li::before { content: "\203A"; margin-right: .4rem; color: #aaa; }
.he-ariane a { color: #777; text-decoration: none; }
.he-ariane a:hover { color: currentColor; text-decoration: underline; }

/* --- articles lies ----------------------------------------------------------
   Pose par poser_articles_lies.py : trois liens vers des articles proches, en
   fin de lecture. Discret, mais c'est le seul chemin qu'un lecteur arrive par
   un moteur avait vers le reste du site. */
.he-lies { margin: 2.5rem 0 0; padding: 1.2rem 1.4rem; background: #f6f7f6;
  border-left: 3px solid #cfd6cf; border-radius: 6px; }
.he-lies h2 { font-size: 1.05rem; margin: 0 0 .3rem; }
.he-lies p { font-size: .9rem; color: #6b6b6b; margin: 0 0 .8rem; }
.he-lies ul { margin: 0; padding-left: 1.1rem; }
.he-lies li { margin: .35rem 0; }
