*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
:root {
  --orange: #E8521A;
  --black: #111;
  --cream: #F5F0E8;
  --white: #fff;
  --gray: #555;
  --lgray: #999;
  --border: #DDD5C8;
  --font: 'Inter', -apple-system, sans-serif;
}
body { font-family: var(--font); background: var(--white); color: var(--black); overflow-x: hidden; line-height: 1.5; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(8px);
  border-bottom: 1px solid #ECEAE5;
  height: 54px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
}
.nav-logo {
  font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  border: 2px solid var(--black); border-radius: 50px; padding: 5px 14px;
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--black); text-decoration: none; }
.nav-links a:hover { opacity: .6; }
.btn-nav { background: var(--orange) !important; color: #fff !important; padding: 9px 22px; border-radius: 50px; font-weight: 600 !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--black); }

/* ── HERO ── */
.s-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: auto;
  overflow: hidden;
  padding: 100px 0 0 0;
  background: #fff;
}
.hero-left {
  padding-left: max(80px, calc((100vw - 1100px) / 2));
  padding-right: 40px;
  padding-bottom: 64px;
}
.hero-right-img {
  position: relative;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
}
.hero-right-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.tag { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.tag-bar { width: 28px; height: 2px; background: var(--orange); flex-shrink: 0; }
.tag-txt { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange); }

.hero-h1 { font-size: 76px; font-weight: 900; line-height: 1.0; letter-spacing: -.03em; margin-bottom: 24px; }
.hero-h1 .or { color: var(--orange); }
.hero-sub { font-size: 18px; line-height: 1.65; color: var(--gray); margin-bottom: 44px; max-width: 480px; }

.hero-btns { display: flex; align-items: center; gap: 28px; margin-bottom: 64px; }
.btn-black { background: var(--black); color: #fff; padding: 14px 28px; border-radius: 50px; font-size: 14px; font-weight: 700; text-decoration: none; }
.btn-link { font-size: 14px; font-weight: 400; color: var(--black); text-decoration: none; }

.hero-stats { display: flex; gap: 52px; padding-top: 32px; border-top: 1px solid var(--border); }
.stat-n { font-size: 40px; font-weight: 900; color: var(--orange); letter-spacing: -.03em; line-height: 1; }
.stat-l { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lgray); margin-top: 6px; }

  33%      { transform: translate(7px,8px) rotate(2deg); }
  66%      { transform: translate(-6px,-5px) rotate(-1.5deg); }
}

/* ── CONSTAT ── */
.s-constat { background: var(--cream); padding: 80px; }
.s-inner { max-width: 1100px; margin: 0 auto; }
.s-profils .s-inner { padding: 0 80px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }

.big-h2 { font-size: 52px; font-weight: 900; line-height: 1.04; letter-spacing: -.03em; margin-bottom: 28px; }
.big-h2 .or { color: var(--orange); }
.italic-q { font-size: 16px; line-height: 1.7; color: var(--gray); font-style: italic; }

.prob { padding-bottom: 16px; border-bottom: 1px solid #CCC5B8; margin-bottom: 16px; }
.prob:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.prob-t { font-size: 14px; font-weight: 700; color: var(--orange); margin-bottom: 5px; }
.prob-d { font-size: 14px; line-height: 1.65; color: var(--gray); }

/* ── MÉTHODE ── */
.s-methode { padding: 80px; }
.methode-top { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 56px; align-items: start; }
.methode-desc { font-size: 16px; line-height: 1.7; color: var(--gray); padding-top: 12px; }

.phases { display: grid; grid-template-columns: repeat(6, 1fr); }
.phase { padding: 28px 20px 28px 0; }

/* titre de phase : "01_DIAGNOSTIQUER" sur une seule ligne, num en orange + titre en noir */
.ph-header { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 12px; line-height: 1.3; }
.ph-header .ph-n { color: var(--orange); font-weight: 800; }
.ph-header .ph-t { color: var(--black); font-weight: 800; }
.ph-d { font-size: 13px; line-height: 1.65; color: var(--gray); margin-bottom: 14px; }
.ph-l { font-size: 11px; font-weight: 700; color: var(--orange); text-decoration: none; }
.phase6 { }
.phase6 .phase { border-right: none; }

/* ── ARCHIPEL ── */
.s-archipel { background: var(--cream); padding: 80px; }
.arch-head { text-align: center; margin-bottom: 48px; }
.arch-h2 { font-size: 52px; font-weight: 900; line-height: 1.04; letter-spacing: -.03em; margin-bottom: 14px; }
.arch-h2 .or { color: var(--orange); }
.arch-sub { font-size: 17px; line-height: 1.65; color: var(--gray); }

.territories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.ter { background: #fff; border-radius: 4px; padding: 28px 18px; text-align: center; }
.ter-pct { font-size: 28px; font-weight: 900; letter-spacing: -.025em; line-height: 1; margin-bottom: 6px; }
.ter-name { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.ter-desc { font-size: 13px; line-height: 1.6; color: var(--gray); }

/* ── PROFILS ── */
.s-profils { padding: 80px 0; }
.profils-top { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 52px; align-items: start; }
.profils-desc { font-size: 16px; line-height: 1.7; color: var(--gray); padding-top: 10px; }

.pg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 20px; }
.pg2 { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }

.pcard { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pshape { width: 140px; height: 140px; margin-bottom: 14px; flex-shrink: 0; }
.pshape svg { width: 100%; height: 100%; }
.pshape img { width: 140px; height: 140px; object-fit: contain; display: block; will-change: auto; }
.pname { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.pquote { font-size: 12px; font-weight: 600; color: var(--orange); margin-bottom: 8px; }
.pdesc { font-size: 13px; line-height: 1.6; color: var(--gray); }

/* ── POUR QUI ── */
.s-pourqui { background: var(--orange); padding: 72px 80px; }
.pq-h2 { font-size: 36px; font-weight: 900; color: #fff; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 48px; }
.pq-h2 strong { text-decoration: none; color: #111; }
.pq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.pq-for { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); display: block; margin-bottom: 6px; }
.pq-col h3 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.pq-col p { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,.75); }

/* ── LIVRABLES ── */
.s-livr { padding: 80px; background: #fff; }
.livr-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.livr-h2 { font-size: 48px; font-weight: 900; letter-spacing: -.03em; line-height: 1.04; margin-bottom: 40px; }
.livr-h2 .or { color: var(--orange); }
.litem { padding: 18px 0; border-bottom: 1px solid var(--border); }
.litem:first-of-type { border-top: 1px solid var(--border); }
.lnum-t { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.lnum-t span { color: var(--orange); }
.ldesc { font-size: 14px; line-height: 1.65; color: var(--gray); }
.livr-right { display: flex; flex-direction: column; align-items: center; gap: 36px; padding-top: 48px; }
.livre-img {
  width: 320px;
  max-width: 100%;
  
  display: block;
  margin: 0 auto 32px;
}
.btn-dark { background: var(--black); color: #fff; padding: 14px 36px; border-radius: 50px; font-size: 14px; font-weight: 700; text-decoration: none; display: inline-block; }

/* ── CONTACT ── */
.s-contact { background: var(--cream); padding: 80px; }
.contact-h2 { font-size: 52px; font-weight: 900; letter-spacing: -.03em; line-height: 1.0; margin-bottom: 20px; }
.contact-h2 .or { color: var(--orange); }
.contact-desc { font-size: 17px; line-height: 1.7; color: var(--gray); max-width: 460px; margin-bottom: 44px; }

.form-card { background: #fff; border-radius: 8px; padding: 40px; box-shadow: 0 2px 20px rgba(0,0,0,.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.form-full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.f-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--black); }
.f-input, .f-select, .f-textarea {
  width: 100%; padding: 13px 16px;
  background: #F0EBE3; border: none; border-radius: 4px;
  font-family: var(--font); font-size: 14px; color: #444;
  outline: none; appearance: none; -webkit-appearance: none;
  transition: box-shadow .2s;
}
.f-input::placeholder, .f-textarea::placeholder { color: #C0B8AE; }
.f-input:focus, .f-select:focus, .f-textarea:focus { box-shadow: 0 0 0 2px var(--orange); background: #fff; }
.f-select {
  background-color: #F0EBE3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; cursor: pointer;
}
.f-textarea { resize: vertical; min-height: 120px; }
.form-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 24px; gap: 20px; }
.form-legal { font-size: 12px; line-height: 1.6; color: var(--lgray); max-width: 280px; }
.btn-send { background: var(--orange); color: #fff; border: none; padding: 14px 28px; border-radius: 50px; font-family: var(--font); font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: opacity .2s; flex-shrink: 0; }
.btn-send:hover { opacity: .88; }

/* ── FOOTER ── */
footer { background: var(--white); border-top: 1px solid var(--border); padding: 22px 48px; }
.f-logo { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; border: 2px solid var(--black); border-radius: 50px; padding: 5px 13px; display: inline-block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .s-hero { grid-template-columns: 1fr; }
  .s-hero .hero-left { padding-left: 40px; padding-right: 40px; }
  .hero-right-img { min-height: 360px; }
  .s-constat, .s-methode, .s-archipel, .s-pourqui, .s-livr, .s-contact { padding: 64px 40px; }
  .s-profils { padding: 64px 0; }
  .s-profils .s-inner { padding: 0 40px; }
  .big-h2, .arch-h2, .profils-h2 { font-size: 40px; }
  .phases { grid-template-columns: repeat(3, 1fr); }
  .territories { grid-template-columns: repeat(3, 1fr); }
  .pg { grid-template-columns: repeat(3, 1fr); }
  .livr-grid { grid-template-columns: 1fr; }
  .livr-right { padding-top: 0; }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; position: fixed; top: 54px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 20px; gap: 18px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,.07); z-index: 99; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .s-hero { padding-top: 82px; }
  .s-hero .hero-left { padding-left: 20px; padding-right: 20px; }
  .hero-right-img { min-height: 280px; }
  .s-constat, .s-methode, .s-archipel, .s-pourqui, .s-livr, .s-contact { padding: 52px 20px; }
  .s-profils { padding: 52px 0; }
  .s-profils .s-inner { padding: 0 20px; }
  .hero-h1 { font-size: 52px; }
  .hero-sub { font-size: 17px; }
  .big-h2, .arch-h2, .profils-h2, .contact-h2, .livr-h2 { font-size: 34px; }
  .italic-q { font-size: 15px; }
  .methode-desc, .profils-desc, .arch-sub, .contact-desc { font-size: 16px; }
  .prob-d, .ph-d, .ter-desc, .pdesc, .ldesc { font-size: 14px; }
  .two-col, .methode-top, .profils-top, .pq-grid { grid-template-columns: 1fr; gap: 32px; }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .territories { grid-template-columns: repeat(2, 1fr); }
  .pq-h2 { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 46px; }
  .hero-sub { font-size: 16px; }
  .phases { grid-template-columns: 1fr; }
  .territories { grid-template-columns: 1fr; }
}

/* ── CARROUSEL MOBILE PROFILS ── */
@media (max-width: 768px) {
  /* Le wrapper devient le conteneur scroll horizontal */
  .profils-carousel-wrap {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .profils-carousel-wrap::-webkit-scrollbar { display: none; }

  /* pg et pg2 disparaissent : leurs cartes deviennent enfants directs du flex */
  .pg, .pg2 {
    display: contents !important;
  }

  /* Chaque carte = slide individuel */
  .profils-carousel-wrap .pcard {
    flex: 0 0 78vw;
    max-width: 280px;
    scroll-snap-align: center;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }
  .carousel-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: background .25s, transform .25s;
    cursor: pointer;
  }
  .carousel-dots .dot.active {
    background: var(--orange);
    transform: scale(1.3);
  }
}

/* Desktop : grille 2 rangées, dots cachés */
@media (min-width: 769px) {
  .profils-carousel-wrap { display: block; padding: 0 80px; }
  .pg, .pg2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
  .pg { margin-bottom: 24px; }
  .pg .pcard, .pg2 .pcard { width: 160px; flex: 0 0 160px; }
  .carousel-dots { display: none; }
}

/* ══════════════════════════════════════════════
   ANIMATIONS D'APPARITION — Fade + Montée
   ══════════════════════════════════════════════ */

/* État initial : invisible + décalé vers le bas */
.anim {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(.22,.8,.36,1),
              transform 0.65s cubic-bezier(.22,.8,.36,1);
}

/* Délais en cascade pour les groupes d'éléments */
.anim-d1 { transition-delay: 0.08s; }
.anim-d2 { transition-delay: 0.16s; }
.anim-d3 { transition-delay: 0.24s; }
.anim-d4 { transition-delay: 0.32s; }
.anim-d5 { transition-delay: 0.40s; }
.anim-d6 { transition-delay: 0.48s; }
.anim-d7 { transition-delay: 0.56s; }

/* État final : visible, en place */
.anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stat counter */
.stat-n { transition: opacity 0.4s ease; }

/* Respect du mode accessibilité */
@media (prefers-reduced-motion: reduce) {
  .anim { transition: none; opacity: 1; transform: none; }
}
