:root {
  --c-deep:    #067F6E;
  --c-main:    #00A992;
  --c-teal:    #04CEC2;
  --c-cyan:    #07E6E0;
  --c-light:   #40F2ED;
  --c-dark:    #04342C;
  --c-darker:  #021a16;
  --c-text:    #111827;
  --c-muted:   #6B7280;
  --c-bg:      #ffffff;
  --c-surface: #F0FAF8;
  --c-border:  #D4EDE8;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius:    12px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--transition);
}
nav.scrolled { box-shadow: 0 2px 24px rgba(6,127,110,0.1); }
.nav-logo img { height: 38px; display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--c-text);
  text-decoration: none; letter-spacing: 0.01em;
  transition: color var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--c-main);
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.nav-links a:hover { color: var(--c-main); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-toggle {
  display: flex; align-items: center;
  border: 1px solid var(--c-border); border-radius: 20px; overflow: hidden;
}
.lang-btn {
  padding: 5px 12px; cursor: pointer; border: none;
  background: transparent; font-family: var(--font-body);
  font-size: 13px; font-weight: 500; color: var(--c-muted);
  transition: all var(--transition);
}
.lang-btn.active { background: var(--c-main); color: white; }
.btn-nav {
  padding: 8px 20px; background: var(--c-deep); color: white;
  border: none; border-radius: 24px; font-family: var(--font-body);
  font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.btn-nav:hover { background: var(--c-main); transform: translateY(-1px); }

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 5% 90px; position: relative; overflow: hidden;
  background: var(--c-bg);
}
.hero-bg {
  position: absolute; top: 0; right: -5%; bottom: 0; width: 50%;
  opacity: 0.1;
  background-image: url("../images/hero-bg.png");
  background-size: 380px; background-repeat: repeat;
  pointer-events: none;
}
.hero-accent {
  position: absolute; bottom: -100px; right: 10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(4,206,194,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { width: 100%; max-width: 1200px; position: relative; z-index: 2; }

/* Baseline: pleine largeur (~70%) */
.hero-baseline {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.03em;
  color: var(--c-text);
  width: 70%; margin-bottom: 3rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-baseline .grad {
  background: linear-gradient(135deg, var(--c-deep), var(--c-teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* 2 colonnes sous la baseline : DMHiS à gauche, subtitle à droite */
.hero-cols {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  width: 80%;
  align-items: start;
  animation: fadeUp 0.6s 0.2s ease both;
}
@media (max-width: 900px) {
  .hero-baseline { width: 100%; font-size: clamp(2.4rem, 8vw, 3.5rem); }
  .hero-cols { grid-template-columns: 1fr; width: 100%; gap: 2rem; }
}

/* DMHiS meaning — colonne gauche */
.DMHiS-meaning {
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: rgba(4,206,194,0.07);
  border: 1px solid rgba(4,206,194,0.2);
}
.DMHiS-row { display: flex; align-items: baseline; gap: 0.6rem; opacity: 0; transform: translateY(6px); animation: fadeRow 0.5s ease forwards; }
.DMHiS-row:nth-child(1) { animation-delay: 0.5s; }
.DMHiS-row:nth-child(2) { animation-delay: 0.65s; }
.DMHiS-row:nth-child(3) { animation-delay: 0.8s; }
.DMHiS-letter { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--c-deep); letter-spacing: 0.08em; }
.DMHiS-word { font-size: 0.9rem; color: var(--c-muted); }
.DMHiS-tagline {
  margin-top: 0.75rem; font-size: 0.9rem; color: var(--c-text); font-weight: 500;
  min-height: 1.2em; white-space: nowrap; overflow: hidden;
  border-right: 2px solid var(--c-main);
  animation: caret 0.8s step-end infinite;
}
@keyframes caret { 0%,100% { border-color: transparent; } 50% { border-color: var(--c-main); } }
@keyframes fadeRow { to { opacity:1; transform:translateY(0); } }

/* Subtitle — colonne droite */
.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: var(--c-muted); font-weight: 300; line-height: 1.75;
}

/* CTAs & stats */
.hero-bottom { margin-top: 3.5rem; animation: fadeUp 0.6s 0.35s ease both; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-primary {
  padding: 14px 32px; background: var(--c-deep); color: white;
  border: none; border-radius: 30px; font-family: var(--font-body);
  font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: all var(--transition); display: inline-block;
}
.btn-primary:hover { background: var(--c-main); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,169,146,0.3); }
.btn-outline {
  padding: 14px 32px; background: transparent;
  color: var(--c-deep); border: 1.5px solid var(--c-deep); border-radius: 30px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: all var(--transition); display: inline-block;
}
.btn-outline:hover { background: var(--c-deep); color: white; transform: translateY(-2px); }
.hero-stats { display: flex; gap: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--c-border); flex-wrap: wrap; }
.stat-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--c-deep); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--c-muted); }

@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ── SECTION SYSTEM ── */
/* Alternance : light / dark / light / dark ... */
/* Solutions (#solutions) = light */
/* Réalisations (#realisations) = dark */
/* Expertise (#expertise) = light */
/* About (#about) = dark */
/* Contact = always dark (unchanged) */

.section-light { background: var(--c-bg); }
.section-tinted { background: var(--c-surface); }
.section-dark {
  background: var(--c-dark);
}
.section-dark .section-label { color: var(--c-teal); }
.section-dark .section-title { color: white; }
.section-dark .section-intro { color: rgba(255,255,255,0.65); }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-dark h4 { color: white !important; }

section { padding: 100px 5%; }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--c-main); margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--c-text); line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.section-intro {
  font-size: 1.05rem; color: var(--c-muted); max-width: 600px;
  line-height: 1.75; margin-bottom: 3.5rem;
}

/* ── SOLUTIONS (light) ── */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.solution-card {
  background: white; border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 2rem; position: relative; transition: all var(--transition); overflow: hidden;
}
.solution-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-deep), var(--c-teal));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.solution-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(6,127,110,0.12); border-color: rgba(0,169,146,0.3); }
.solution-card:hover::before { transform: scaleX(1); }
.solution-num { font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; color: rgba(0,169,146,0.4); letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.solution-icon { width: 48px; height: 48px; background: rgba(4,206,194,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 22px; }
.solution-title { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--c-text); margin-bottom: 0.75rem; line-height: 1.2; }
.solution-desc { font-size: 0.92rem; color: var(--c-muted); line-height: 1.65; margin-bottom: 1.5rem; }
.solution-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 12px; background: rgba(0,169,146,0.08); color: var(--c-deep); }

/* ── RÉALISATIONS (dark) ── */
.real-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.real-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 2rem; transition: all var(--transition);
}
.real-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); border-color: rgba(4,206,194,0.3); }
.real-year { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--c-teal); text-transform: uppercase; margin-bottom: 0.75rem; }
.real-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 0.75rem; line-height: 1.25; }
.real-desc { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* ── EXPERTISE (light) ── */
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.expertise-item {
  padding: 1.5rem; border-left: 3px solid var(--c-teal);
  background: white; border-radius: 0 var(--radius) var(--radius) 0;
  transition: all var(--transition);
}
.expertise-item:hover { border-left-color: var(--c-deep); transform: translateX(4px); box-shadow: 4px 0 16px rgba(6,127,110,0.08); }
.expertise-item h4 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--c-text); margin-bottom: 0.5rem; }
.expertise-item p { font-size: 0.85rem; color: var(--c-muted); line-height: 1.6; }

/* ── ABOUT (dark) ── */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media (max-width: 768px) { .about-layout { grid-template-columns: 1fr; gap: 2.5rem; } }
.about-img-wrap {
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 3rem; display: flex; align-items: center; justify-content: center; min-height: 280px;
}
.about-img-wrap img { max-width: 180px; opacity: 0.85; filter: brightness(1.3); }
.about-visual { position: relative; }
.about-badge {
  position: absolute; bottom: -12px; right: -12px;
  background: var(--c-teal); color: var(--c-dark);
  padding: 1rem 1.5rem; border-radius: var(--radius); text-align: center;
}
.about-badge-num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1; }
.about-badge-txt { font-size: 12px; opacity: 0.75; margin-top: 2px; }
.values-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.value-item { display: flex; align-items: flex-start; gap: 1rem; }
.value-dot { width: 32px; height: 32px; border-radius: 50%; background: rgba(4,206,194,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.value-text h4 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: white; }
.value-text p { font-size: 0.88rem; color: rgba(255,255,255,0.55); }

/* ── CONTACT ── */
#contact { background: var(--c-darker); }
#contact .section-label { color: var(--c-teal); }
#contact .section-title { color: white; }
#contact .section-intro { color: rgba(255,255,255,0.6); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
}
.contact-item-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(4,206,194,0.15); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.contact-item-text { font-size: 0.9rem; color: rgba(255,255,255,0.45); }
.contact-item-val { font-size: 0.95rem; color: white; font-weight: 500; }
.contact-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1rem; }
.form-group label { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.55); }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 11px 14px; color: white; font-family: var(--font-body);
  font-size: 14px; outline: none; transition: border-color var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--c-teal); }
.form-group select option { background: #021a16; color: white; }
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--c-main), var(--c-teal));
  color: white; border: none; border-radius: 10px; font-family: var(--font-head);
  font-size: 15px; font-weight: 700; cursor: pointer; letter-spacing: 0.02em;
  transition: all var(--transition);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(4,206,194,0.3); }

/* ── FOOTER ── */
footer {
  background: var(--c-darker); padding: 2.5rem 5%;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-logo img { height: 32px; opacity: 0.75; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--c-teal); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── RGPD ── */
.rgpd {
  font-size: 0.8rem;
  color: var(--c-muted);
  line-height: 1.5;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--c-main);
  background: rgba(0,169,146,0.05);
  border-radius: 6px;
}

.rgpd-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--c-text);
}

.rgpd-check input[type="checkbox"] {
  margin-top: 3px;
  transform: scale(1.2);
  animation: pulseCheck 0.25s ease;
}

@keyframes pulseCheck {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.btn-submit[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(40%);
}

.rgpd-check label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  line-height: 1.4;
  transition: color 0.25s ease, transform 0.25s ease;
}

.rgpd-check input[type="checkbox"]:checked + label {
  color: var(--c-deep);
  transform: translateX(2px);
}

/* ── Feeback ── */
.form-feedback {
  margin-top: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
}

.form-feedback.success {
  background: rgba(0,169,146,0.12);
  color: var(--c-deep);
  border-left: 3px solid var(--c-main);
}

.form-feedback.error {
  background: rgba(255,0,0,0.08);
  color: #b30000;
  border-left: 3px solid #e60000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MENTIONS LÉGALES ── */
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
}
@media (max-width: 768px) {
  .legal-grid { grid-template-columns: 1fr; }
}
.legal-block {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition);
}
.legal-block:hover {
  box-shadow: 0 4px 20px rgba(6,127,110,0.08);
}
.legal-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-deep);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--c-border);
}
.legal-block p {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.7;
}
.legal-block a {
  color: var(--c-main);
  text-decoration: none;
  transition: color var(--transition);
}
.legal-block a:hover { color: var(--c-deep); text-decoration: underline; }
.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--c-muted);
}
.legal-list li {
  padding-left: 1rem;
  position: relative;
}
.legal-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--c-teal);
  font-weight: 600;
}
.legal-list strong { color: var(--c-text); font-weight: 600; }
 