/* ==========================================================
   BEKAZEN — Site vitrine
   Palette : noir profond / blanc cassé / or doux
   Typo : Manrope (toutes graisses)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

/* ==========================================================
   VARIABLES
   ========================================================== */
:root {
  /* Couleurs principales */
  --ink:          #0E0F11;
  --ink-soft:     #1A1C1F;
  --paper:        #F5F5F0;
  --paper-2:      #EFEBE3;
  --paper-3:      #FAFAF7;
  --line:         #E8E3DB;

  /* Textes */
  --muted:        #6B6F76;
  --text-soft:    #4A4D52;
  --text-dim:     #A9ADB4;
  --text-ghost:   rgba(245, 245, 240, 0.65);
  --text-faint:   rgba(245, 245, 240, 0.45);
  --text-whisper: rgba(245, 245, 240, 0.55);

  /* Accent / or */
  --accent:       #C9A77C;
  --accent-deep:  #A9875E;

  /* Overlays */
  --overlay-card-bg:     rgba(255, 255, 255, 0.025);
  --overlay-card-border: rgba(255, 255, 255, 0.08);
  --overlay-card-hover:  rgba(255, 255, 255, 0.045);
  --overlay-card-hover-border: rgba(255, 255, 255, 0.16);
  --overlay-line:        rgba(245, 245, 240, 0.15);
  --overlay-accent-bg:   rgba(201, 167, 124, 0.12);

  /* Light cards */
  --card-bg:     #ffffff;
  --card-border: rgba(14, 15, 17, 0.08);
  --card-hover-border: rgba(14, 15, 17, 0.16);
  --card-hover-shadow: 0 20px 40px -20px rgba(14, 15, 17, 0.18);

  /* Layout */
  --maxw:      1200px;
  --radius:    14px;
  --radius-lg: 22px;

  /* Easing */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================
   RESET & BASE
   ========================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ==========================================================
   LAYOUT
   ========================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================
   TYPOGRAPHIE
   ========================================================== */
h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 18px;
  font-weight: 500;
}
.eyebrow.light { color: var(--accent); }

/* Sur fond sombre, .eyebrow prend la même valeur que .light
   — utilise la classe .light sur tes eyebrows dans les sections sombres */

.section-title {
  font-size: clamp(30px, 4.2vw, 52px);
  color: var(--ink);
}
.section-title.light { color: var(--paper); }

.section-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 18px 0 0;
}
.section-lead.light { color: var(--text-dim); }

/* ==========================================================
   SECTIONS — structure générale
   ========================================================== */
.section {
  padding: clamp(70px, 10vw, 130px) 0;
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.section-head {
  max-width: 760px;
  margin-bottom: 60px;
}

/* ==========================================================
   SECTIONS — variantes spécifiques
   ========================================================== */
.section-projects,
.section-why {
  padding: 96px 0;
  background: var(--paper-3);
}

.section-method {
  padding: 110px 0;
  background: var(--ink);
  color: var(--paper);
}

.section-method .section-title { color: var(--paper); }
.section-method .eyebrow       { color: var(--text-whisper); }
.section-method .section-lead  { color: var(--text-ghost); }

.section-contact { background: var(--paper-2); }

.section-cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(60px, 9vw, 110px) 0;
}
.section-cta .section-title { color: var(--paper); margin-bottom: 16px; }
.section-cta .section-lead  { color: var(--text-dim); margin: 0 auto 32px; }
.section-cta .hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.section-cta .eyebrow.light {
  margin-top: 28px;
  font-size: 0.78rem;
  opacity: 0.55;
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 245, 240, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.scrolled {
  background: rgba(245, 245, 240, 0.98);
  box-shadow: 0 2px 20px rgba(14, 15, 17, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* ==========================================================
   BRAND MARK
   ========================================================== */
.brand-mark {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.footer-brand .brand-mark {
  color: var(--paper);
  font-size: 28px;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav a {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  transition: color .2s var(--ease);
}

.nav a:not(.nav-cta):hover { color: var(--accent-deep); }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background .2s var(--ease);
}
.nav-cta:hover        { background: var(--accent-deep); }
.nav-cta.active       { background: var(--accent-deep); }

.nav a.active         { color: var(--accent-deep); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent-deep);
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================
   BOUTONS — base
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  font-family: inherit;
}
.btn-block { width: 100%; }

/* Primaire (fond clair) */
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

/* Ghost (fond clair) */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Outline (fond sombre) */
.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245, 245, 240, 0.35);
}
.btn-outline:hover {
  background: rgba(245, 245, 240, 0.08);
  border-color: rgba(245, 245, 240, 0.6);
}

/* ==========================================================
   BOUTONS — variantes hero (fond sombre)
   ========================================================== */
.hero .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.hero .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.hero .btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(245, 245, 240, 0.55);
}
.hero .btn-ghost:hover {
  background: rgba(245, 245, 240, 0.10);
  border-color: var(--paper);
  color: var(--paper);
}

/* section-cta (fond sombre) */
.section-cta .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.section-cta .btn-primary:hover {
  background: var(--accent);
  color: var(--ink);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  background:
    linear-gradient(rgba(14, 15, 17, 0.55), rgba(14, 15, 17, 0.55)),
    url('images/background.jpg') center center / cover no-repeat scroll;
  padding: calc(clamp(70px, 12vw, 140px) + 72px) 0 clamp(50px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}

/* Parallax uniquement desktop non-touch */
@media (min-width: 1024px) and (hover: hover) {
  .hero { background-attachment: fixed; }
}

.hero-title {
  font-size: clamp(42px, 7vw, 88px);
  max-width: 900px;
  margin-top: 10px;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(245, 245, 240, 0.70);
  max-width: 620px;
  margin: 28px 0 40px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Marquee */
.hero-marquee {
  margin-top: 80px;
  border-top:    1px solid var(--overlay-line);
  border-bottom: 1px solid var(--overlay-line);
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.hero-marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 15s linear infinite;
  font-size: 16px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================
   PAGE HERO (pages internes)
   ========================================================== */
.page-hero {
  background:
    linear-gradient(rgba(14, 15, 17, 0.65), rgba(14, 15, 17, 0.65)),
    var(--bg) center / cover no-repeat;
  padding: calc(clamp(110px, 16vw, 180px) + 72px) 0 clamp(60px, 8vw, 90px);
  color: var(--paper);
  position: relative;
}

.page-hero-title {
  font-size: clamp(36px, 5.5vw, 68px);
  color: var(--paper);
  max-width: 800px;
  margin-top: 10px;
}

/* ==========================================================
   CARDS — base commune
   (.card-service, .teaser-card, .project-item, .why-card
   partagent toutes ce socle)
   ========================================================== */
.card-service,
.teaser-card,
.project-item,
.why-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform .35s var(--ease),
              box-shadow .35s var(--ease),
              border-color .35s var(--ease),
              background .3s var(--ease);
}

.teaser-card:hover,
.project-item:hover,
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-hover-border);
}

/* Numéros / labels de cards */
.card-num,
.teaser-num {
  font-size: 13px;
  color: var(--accent-deep);
  letter-spacing: 0.12em;
  margin-bottom: 22px;
  font-weight: 500;
}

/* Titres h3 de cards */
.card-service h3,
.teaser-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.project-body h3,
.why-card h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.step-body h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--paper);
}

/* Paragraphes de cards */
.card-service p,
.teaser-card p,
.project-body p,
.why-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ==========================================================
   GRILLE SERVICES
   ========================================================== */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-service {
  padding: 42px 34px;
  border-radius: 0;
  border: none;
}
.card-service:hover { background: var(--paper-2); }

/* ==========================================================
   PAGE SERVICES 
   ========================================================== */

/* Listes dans method-step */
.step-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--overlay-line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-list li {
  font-size: 13px;
  color: var(--text-ghost);
  padding-left: 16px;
  position: relative;
}
.step-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}

/* Blocs neuf/réno (réutilise contact-grid pour le 2 colonnes) */
.neuf-reno-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  transition: border-color .3s var(--ease);
}
.neuf-reno-block:hover {
  border-color: var(--accent);
}
/* ==========================================================
   SLIDER NIVEAUX D'ACCOMPAGNEMENT
   ========================================================== */

/* NAV */
.method-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.method-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.method-arrow:hover {
  background: rgba(255,255,255,0.08);
}

/* Fond clair : inverser les couleurs */
.section-projects .method-arrow,
.section-why .method-arrow,
.section-light .method-arrow,
.section:not(.section-method):not(.section-dark) .method-arrow {
  border-color: var(--card-border);
  color: var(--ink);
}
.section-projects .method-arrow:hover,
.section-why .method-arrow:hover,
.section-light .method-arrow:hover,
.section:not(.section-method):not(.section-dark) .method-arrow:hover {
  background: var(--paper-2);
  border-color: var(--card-hover-border);
}

/* Disabled state */
.method-arrow[aria-disabled="true"],
.method-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.method-arrow[aria-disabled="true"]:hover,
.method-arrow.disabled:hover {
  background: transparent;
}

/* SLIDER */
.method-slider {
  display: flex;
  gap: 20px;
  margin-top: 40px;

  overflow-x: auto;
  padding: 20px 40px; /* peek visuel */

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  -webkit-overflow-scrolling: touch;
}

/* scrollbar clean */
.method-slider::-webkit-scrollbar {
  display: none;
}

/* CARDS */
.method-slider .method-step {
  flex: 0 0 auto;

  min-width: 260px;
  max-width: 300px;

  scroll-snap-align: center;

  padding: 30px 22px;

  transition: transform .3s ease, opacity .3s ease;
}

/* focus for slider */
.method-slider .method-step {
  opacity: 0.6;
  transform: scale(0.95);
}

.method-slider .method-step.active {
  opacity: 1;
  transform: scale(1);
}

/* CTA */
.method-cta {
  margin-top: 20px;
}

/* Desktop */
@media (min-width: 1024px) {
  .method-slider {
    justify-content: flex-start;
  }
}


/* ========================================================== 
   ========================================================== */
.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.teaser-card {
  display: block;
  padding: 38px 32px;
  border-radius: var(--radius-lg);
  color: var(--ink);
}
.teaser-card:hover { background: var(--paper-2); border-color: var(--accent); }

.teaser-card p   { margin: 0 0 22px; }

.teaser-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
}

/* ==========================================================
   POUR QUELS PROJETS
   ========================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.project-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
}

.project-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--overlay-accent-bg);
  color: var(--accent);
  margin-bottom: 22px;
  flex-shrink: 0;
}

/* ==========================================================
   POURQUOI BEKAZEN
   ========================================================== */
.grid-why {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px 50px;
}

/* Version fond sombre (section-dark) */
.why-item { color: var(--paper); }

.why-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--paper);
}
.why-item p { color: var(--text-dim); font-size: 15px; margin: 0; }

/* Version fond clair (section-why) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.why-card { padding: 32px; }

.why-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.why-cta { text-align: center; margin-top: 56px; }

/* Icônes (partagées why-item et why-card) */
.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--overlay-accent-bg);
  color: var(--accent);
  margin-bottom: 22px;
  flex-shrink: 0;
}

/* why-card : icône plus petite, pas de margin-bottom */
.why-card .why-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0;
}

/* SVG dans les icônes */
.why-icon svg,
.project-icon svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================
   PAGE POURQUOI NOUS — sections enrichies
   ========================================================== */

.why-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}

.why-split-content .section-lead {
  max-width: 100%;
}

.why-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.why-point {
  background: var(--overlay-card-bg);
  border: 1px solid var(--overlay-card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: background .3s var(--ease),
              border-color .3s var(--ease),
              transform .3s var(--ease);
}

.why-point:hover {
  background: var(--overlay-card-hover);
  border-color: var(--overlay-card-hover-border);
  transform: translateY(-2px);
}

.why-point h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--paper);
}

.why-point p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}

.why-founder {
  max-width: 860px;
}

.why-founder .section-lead {
  max-width: 760px;
}
/* ==========================================================
   NOTRE MÉTHODE
   ========================================================== */
.method-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.method-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 22px;
  background: var(--overlay-card-bg);
  border: 1px solid var(--overlay-card-border);
  border-radius: var(--radius);
  transition: background .3s var(--ease),
              border-color .3s var(--ease),
              transform .3s var(--ease);
}
.method-step:hover {
  background: var(--overlay-card-hover);
  border-color: var(--overlay-card-hover-border);
  transform: translateY(-3px);
}

.step-num {
  font-weight: 300;
  font-size: 2rem;
  color: rgba(245, 245, 240, 0.4);
  line-height: 1;
  letter-spacing: -0.02em;
}

.step-body p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-ghost);
  margin: 0;
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq-container { max-width: 860px; }

.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 26px;
  font-weight: 300;
  color: var(--accent-deep);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-deep); }

.faq-answer {
  padding-top: 14px;
  color: var(--muted);
  font-size: 16px;
  max-width: 700px;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-left .section-lead { margin-top: 0; }

.contact-infos {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}
.contact-infos li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.contact-infos li span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-infos a { color: var(--ink); }
.contact-infos a:hover { color: var(--accent-deep); }

/* Formulaire */
.contact-form {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.field .opt { color: var(--muted); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-bg);
  font: inherit;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 167, 124, 0.18);
}
.field textarea { resize: vertical; }

.form-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
}
.form-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted, #6B6F76);
  transition: color .3s ease;
}

.form-note.success {
  color: #1F7A4D;
  font-weight: 500;
}

.form-note.error {
  color: #B33A3A;
  font-weight: 500;
}

#submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 70px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  color: var(--text-dim);
  margin: 10px 0 0;
  max-width: 300px;
  font-size: 15px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-cols h4 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-cols a,
.footer-cols span {
  display: block;
  color: #D6D9DE;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color .2s var(--ease);
}
.footer-cols a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #7D8188;
}

/* ==========================================================
   INGENIERIE SYSTEME - slider
   ========================================================== */

.system-slider .method-step {
  min-width: 240px;
  max-width: 280px;
  min-height: 220px;
  display: flex;
  align-items: flex-start;
}

.system-slider .step-body h3 {
  margin-bottom: 12px;
}

.system-slider .step-body p {
  margin-bottom: 0;
}

/* ==========================================================
    RESPONSIVE
    ========================================================== */

/* ---- Tablette : ≤ 1024px ---- */
@media (max-width: 1024px) {
  .projects-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Bouton flottant */
.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 1000;
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.floating-cta .btn {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  padding: 12px 24px;
}

/* ---- Mobile large : ≤ 820px ---- */
@media (max-width: 820px) {
  /* Burger + nav mobile */
  .burger { display: flex; }

  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    transform: translateY(-120%);
    transition: transform .3s var(--ease);
  }
  .nav.nav-open { transform: translateY(0); }

  .nav a {
    padding: 14px 24px;
    width: 100%;
  }
  .nav-cta {
    margin: 10px 24px;
    text-align: center;
    padding: 14px 24px;
  }

  /* Hero */
  .hero-marquee { margin-top: 50px; }

  /* Page hero */
  .page-hero { padding: 120px 0 60px; }

  /* Contact */
  .contact-grid  { grid-template-columns: 1fr; gap: 50px; }
  .contact-form  { padding: 28px; }

  /* Footer */
  .footer-inner  { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Mobile : ≤ 640px ---- */
@media (max-width: 640px) {
  .section { padding: 70px 0; }

  .section-projects,
  .section-method,
  .section-why {
    padding: 72px 0;
  }

  /* Bouton flottant mobile */
  .floating-cta {
    bottom: 28px;
  }

  .floating-cta .btn {
    padding: 14px 28px;
    font-size: 1rem;
  }

  /* Hero */
  .hero-cta            { flex-direction: column; align-items: stretch; }
  .hero-cta .btn       { width: 100%; }

  /* Grilles → colonne unique */
  .projects-grid,
  .why-grid,
  .method-steps {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 40px;
  }

  /* Cards */
  .project-item,
  .why-card    { padding: 26px; }
  .method-step { padding: 24px 22px; }
  .step-num    { font-size: 1.75rem; }

  /* CTA section */
  .section-cta .hero-cta               { flex-direction: column; align-items: stretch; }
  .section-cta .hero-cta .btn          { width: 100%; }

  /* Footer */
  .footer-cols   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }

  /* Pourquoi nous*/
  .why-points {
    gap: 14px;
  }

  .why-point {
    padding: 22px 20px;
  }
}

/* ==========================================================
    PORTFOLIO
    ========================================================== */

/* Slider sur fond clair (section-projects) */
.section-projects .method-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .35s var(--ease),
              box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.section-projects .method-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-hover-border);
}
.section-projects .method-step .project-icon {
  margin-bottom: 18px;
}
.section-projects .method-step .step-body h3 {
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 10px;
}
.section-projects .method-step .step-body p {
  color: var(--muted);
  font-size: 15px;
}

/* Slider section-why (fond clair aussi) */
.section-why .method-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .35s var(--ease),
              box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
.section-why .method-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-hover-border);
}
.section-why .method-step .why-icon {
  margin-bottom: 18px;
}
.section-why .method-step .step-body h3 {
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 10px;
}
.section-why .method-step .step-body p {
  color: var(--muted);
  font-size: 15px;
}

/* Slider portfolio (fond clair) */
#portfolioSlider {
  margin-top: 40px;
}
#portfolioSlider .method-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: 280px;
  max-width: 340px;
  transition: transform .35s var(--ease),
              box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
#portfolioSlider .method-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-hover-border);
}
#portfolioSlider .method-step .step-body h3 {
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 10px;
}
#portfolioSlider .method-step .step-body p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}
#portfolioSlider .method-step .portfolio-tags {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Slider services (fond clair) */
#servicesSlider {
  margin-top: 40px;
}
#servicesSlider .method-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-width: 260px;
  max-width: 300px;
  transition: transform .35s var(--ease),
              box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
#servicesSlider .method-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-hover-border);
}
#servicesSlider .method-step .step-body h3 {
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 10px;
}
#servicesSlider .method-step .step-body p {
  color: var(--muted);
  font-size: 15px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .35s var(--ease),
              box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--card-hover-border);
}

.portfolio-card h3 {
  font-size: 1.25rem;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.portfolio-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 18px;
  line-height: 1.6;
}

.portfolio-tags {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Valeurs / 3 blocs */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
}

.value-card {
  text-align: center;
}

.value-card h3 {
  font-size: 1.35rem;
  margin: 0 0 14px;
  color: var(--ink);
}

.value-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

/* Section light alternative */
.section-light {
  background: var(--paper-3);
}

/* Responsive Portfolio */
@media (max-width: 1024px) {
  .portfolio-grid,
  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .portfolio-grid,
  .value-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portfolio-card {
    padding: 26px;
  }

  .value-card h3 {
    font-size: 1.15rem;
  }
}
