/* ===== Variables & reset ===== */
:root {
  --accent: #1fa2a6;
  --accent-fonce: #157377;
  --noir: #0b1f2a;
  --texte: #1c1c1e;
  --texte-doux: #55555c;
  --fond: #ffffff;
  --fond-alt: #f4f6f6;
  --bordure: #e0e6e6;
}
/* Palette provisoire (teintes navy/teal) en attendant le logo et la charte définitifs de Vision Mauritius. */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--texte); background: var(--fond); line-height: 1.6; }
img { max-width: 100%; display: block; }

.container { width: min(1100px, 92%); margin-inline: auto; }

h1, h2, h3 { font-weight: 800; line-height: 1.2; }

.btn { display: inline-block; padding: 0.8rem 1.6rem; border-radius: 6px; font-weight: 700; text-decoration: none; transition: background 0.2s, color 0.2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-fonce); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

.section { padding: 4.5rem 0; }
.section-alt { background: var(--fond-alt); }
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.6rem; }
.section-title em { font-style: normal; color: var(--accent); }
.section-intro { color: var(--texte-doux); max-width: 60ch; margin-bottom: 2.5rem; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--noir); border-bottom: 1px solid rgba(255,255,255,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.5rem; gap: 1rem; }
.logo { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.3px; }

.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { color: #d5d5da; text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: #fff; }
.btn-nav { background: var(--accent); color: #fff !important; padding: 0.5rem 1.1rem; border-radius: 6px; }
.btn-nav:hover { background: var(--accent-fonce); }

.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 24px; height: 3px; background: #fff; border-radius: 2px; }

/* ===== Sélecteur de langue ===== */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; color: #d5d5da; font-weight: 600; padding: 0.4rem 0.7rem; border: 1px solid rgba(255,255,255,0.25); border-radius: 6px; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { color: #fff; border-color: #fff; }
.lang-switch-menu { position: absolute; top: 100%; right: 0; margin-top: 0.4rem; background: var(--noir); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; padding: 0.6rem; display: grid; gap: 0.3rem; min-width: 140px; }
.lang-switch-menu a { display: block; padding: 0.3rem 0.5rem; border-radius: 4px; }
.lang-switch-menu a:hover { background: rgba(255,255,255,0.08); }
.lang-switch-menu a[aria-current="true"] { color: var(--accent); font-weight: 700; }

@media (max-width: 767px) {
  .burger { display: flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--noir); flex-direction: column; padding: 1.2rem 4%; gap: 1.1rem; }
  .site-nav.open { display: flex; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--noir); color: #fff; width: 100%; aspect-ratio: 16 / 9; min-height: 240px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { display: none; }
.hero .container { position: relative; z-index: 2; }
.hero-kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; margin-top: 1.5rem; margin-bottom: 1rem; text-shadow: 0 2px 10px rgba(0,0,0,0.85); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1.2rem; text-shadow: 0 2px 14px rgba(0,0,0,0.85); }
.hero h1 em { font-style: normal; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.85), 0 0 24px rgba(0,0,0,0.6); }
.hero-sub { color: #f0f2f2; max-width: 55ch; font-size: 1.1rem; margin-bottom: 2rem; text-shadow: 0 2px 10px rgba(0,0,0,0.85); }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Cartes services ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: var(--fond); border: 1px solid var(--bordure); border-radius: 10px; padding: 1.8rem; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11,31,42,0.1); }
.card-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card h3 + p { color: var(--texte-doux); }
.section-alt .card { background: #fff; }

/* ===== Portfolio ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.portfolio-item { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, var(--noir), #1c3b47); color: #9aa7a9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; border: 1px dashed rgba(255,255,255,0.15); }
.portfolio-item span { font-size: 2.2rem; }
.portfolio-item p { font-weight: 600; }

/* ===== Confiance ===== */
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.badge-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--fond-alt); border-radius: 10px; padding: 1.4rem; }
.badge-icon { font-size: 1.8rem; line-height: 1; }
.badge-item p { color: var(--texte-doux); font-size: 0.95rem; margin-top: 0.2rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-infos { list-style: none; display: grid; gap: 0.7rem; font-size: 1.05rem; }
.contact-form { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--bordure); border-radius: 10px; padding: 1.8rem; }
.contact-form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; padding: 0.65rem 0.8rem; border: 1px solid var(--bordure); border-radius: 6px; background: var(--fond);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.contact-form button { border: none; cursor: pointer; font-size: 1rem; }
.hidden-field { position: absolute; left: -9999px; }

/* ===== Footer ===== */
.site-footer { background: var(--noir); color: #b9c2c4; text-align: center; padding: 2.5rem 0; font-size: 0.9rem; }
.site-footer a { color: #fff; }

/* ===== Animations ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
}
