/* ================================================================
   45NET — V2 BLANC INDUSTRIEL
   Style principal
   ================================================================ */

/* ── VARIABLES ──────────────────────────────────────────────────── */
:root {
  --bg:       #f4f2ee;
  --white:    #ffffff;
  --ink:      #1a1a1f;
  --ink2:     #2e2e35;
  --card:     #ffffff;
  --border:   #ddd9d0;
  --border2:  #c8c3b8;
  --blue:     #1d4e8f;
  --blue-lt:  #2561b0;
  --blue-pale:#e8eef6;
  --muted:    #7a7672;

  --font-d: 'Barlow Condensed', sans-serif;
  --font-s: 'Libre Baskerville', serif;
  --font-b: 'Barlow', sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --tr:   .4s var(--ease);
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body  { background: var(--bg); color: var(--ink); font-family: var(--font-b); font-weight: 300; line-height: 1.7; overflow-x: hidden; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #fff; }

::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); }

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

/* ── LABEL ──────────────────────────────────────────────────────── */
.lbl {
  font-family: var(--font-d);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .65rem;
}
.lbl::before { content: ''; width: 1.5rem; height: 2px; background: var(--blue); flex-shrink: 0; }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.8rem;
  font-family: var(--font-d);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--tr);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-b { background: var(--blue); color: #fff; }
.btn-b:hover, .btn-b:focus { background: var(--blue-lt); }
.btn-o { background: transparent; color: var(--ink); border: 2px solid var(--border2); }
.btn-o:hover, .btn-o:focus { border-color: var(--blue); color: var(--blue); }

/* ── REVEAL ─────────────────────────────────────────────────────── */
[data-r] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-r].on { opacity: 1; transform: translateY(0); }
[data-r][data-d="1"] { transition-delay: .1s; }
[data-r][data-d="2"] { transition-delay: .2s; }
[data-r][data-d="3"] { transition-delay: .3s; }
[data-r][data-d="4"] { transition-delay: .4s; }

/* ── SECTION HEADING ────────────────────────────────────────────── */
.sh-t {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  margin-top: .65rem;
  line-height: 1.1;
  letter-spacing: .01em;
}

.sec     { padding: clamp(4rem, 8vw, 7rem) 0; }
.sec-alt { background: var(--white); }


/* ================================================================
   HEADER
   ================================================================ */
#hd {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
  transition: box-shadow .3s, padding .3s;
}
#hd.sc { box-shadow: 0 2px 20px rgba(0,0,0,.08); padding: .65rem 0; }
#hd .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo {
  font-family: var(--font-d);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--ink);
  line-height: 1;
}
.logo b { color: var(--blue); font-weight: 800; }

nav.desk ul { list-style: none; display: flex; gap: .15rem; align-items: center; }
nav.desk a {
  font-family: var(--font-d);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .45rem .85rem;
  transition: color .3s;
  white-space: nowrap;
}
nav.desk a:hover { color: var(--blue); }

.nav-cta { background: var(--blue) !important; color: #fff !important; padding: .45rem 1.15rem !important; }
.nav-cta:hover { background: var(--blue-lt) !important; }

.ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; background: none; border: none; -webkit-tap-highlight-color: transparent; }
.ham span { display: block; width: 22px; height: 2px; background: var(--ink); transition: var(--tr); }
.ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ================================================================
   MOBILE NAV
   ================================================================ */
#mnav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 899;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  padding: 2rem;
}
#mnav.open { display: flex; }
#mnav a {
  font-family: var(--font-d);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .4rem 1rem;
  transition: color .3s;
  text-align: center;
}
#mnav a:hover { color: var(--blue); }


/* ================================================================
   HERO
   ================================================================ */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.h-accent {
  position: absolute;
  top: 0; right: 0;
  width: 45%; height: 100%;
  background: var(--blue);
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}
.h-accent-lines {
  position: absolute;
  top: 0; right: 0;
  width: 45%; height: 100%;
  opacity: .08;
}
.h-accent-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 29px, rgba(255,255,255,.4) 29px, rgba(255,255,255,.4) 30px);
}
.h-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: clamp(5rem, 12vw, 7rem);
  padding-bottom: 3rem;
  position: relative;
  z-index: 2;
}
.h-main .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }

.h-title {
  font-family: var(--font-d);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: .9;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 1rem 0 1.5rem;
}
.h-title i {
  display: block;
  font-family: var(--font-s);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  color: var(--blue);
}
.h-sub {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 2.2rem;
  line-height: 1.8;
}
.h-btns { display: flex; gap: .85rem; flex-wrap: wrap; }

.h-card {
  background: var(--blue);
  color: #fff;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.h-card::before {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
}
.h-card::after {
  content: '';
  position: absolute;
  bottom: -10px; right: -10px;
  width: 70px; height: 70px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
}
.hc-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1.5rem; }

.stat-n { font-family: var(--font-d); font-size: 3.5rem; font-weight: 800; line-height: 1; color: #fff; }
.stat-n b { color: rgba(255,255,255,.55); font-weight: 800; }
.stat-l { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: .2rem; }
.stat-hr { width: 100%; height: 1px; background: rgba(255,255,255,.15); }

.h-scroll { padding: 1.2rem 0; border-top: 1px solid var(--border); background: var(--bg); position: relative; z-index: 2; }
.h-scroll .wrap { display: flex; align-items: center; gap: .85rem; }
.sc-line { width: 36px; height: 1px; background: var(--border2); flex-shrink: 0; }
.sc-txt  { font-family: var(--font-d); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.sc-dot  { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pdot 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pdot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); opacity: .5; } }


/* ================================================================
   MARQUEE
   ================================================================ */
.marq { background: var(--ink); padding: .85rem 0; overflow: hidden; }
.marq-t { display: flex; animation: marq 22s linear infinite; width: max-content; }
.marq-t span { font-family: var(--font-d); font-size: .9rem; font-weight: 600; letter-spacing: .18em; color: rgba(255,255,255,.8); padding: 0 1.75rem; white-space: nowrap; text-transform: uppercase; }
.marq-t .dot { color: var(--blue); }
@keyframes marq { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }


/* ================================================================
   ABOUT
   ================================================================ */
.about-g { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.about-txt p { color: var(--muted); font-size: .93rem; line-height: 1.9; margin-bottom: 1.25rem; }
.about-q {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border-left: 3px solid var(--blue);
  background: var(--blue-pale);
  font-size: 1rem;
  color: var(--ink2);
  font-family: var(--font-s);
  font-style: italic;
  line-height: 1.6;
  margin-top: 1.5rem;
}

.cards { display: flex; flex-direction: column; gap: .75rem; }
.fc {
  display: flex; gap: 1.1rem;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
  cursor: default;
}
.fc:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(29,78,143,.08); }
.fc-ico { width: 44px; height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; background: var(--blue-pale); color: var(--blue); font-size: 1.2rem; flex-shrink: 0; }
.fc-ttl { font-family: var(--font-d); font-weight: 700; color: var(--ink); font-size: .95rem; letter-spacing: .02em; margin-bottom: .2rem; }
.fc-dsc { font-size: .8rem; color: var(--muted); line-height: 1.6; }


/* ================================================================
   SERVICES
   ================================================================ */
.svc-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

.svc-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--border); }
.si {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  border-top: 3px solid transparent;
  transition: border-color .3s, box-shadow .3s;
  cursor: default;
}
.si:hover { border-top-color: var(--blue); box-shadow: 0 8px 30px rgba(29,78,143,.1); }
.si-n { font-family: var(--font-d); font-size: 3rem; font-weight: 800; line-height: 1; color: rgba(29,78,143,.1); margin-bottom: .75rem; transition: color .3s; }
.si:hover .si-n { color: rgba(29,78,143,.2); }
.si-ic { font-size: 1.6rem; margin-bottom: .75rem; }
.si-t  { font-family: var(--font-d); font-weight: 700; color: var(--ink); font-size: .95rem; letter-spacing: .02em; margin-bottom: .5rem; }
.si-d  { font-size: .8rem; color: var(--muted); line-height: 1.65; }


/* ================================================================
   PROCESS
   ================================================================ */
.proc-wrap { background: var(--blue); padding: clamp(4rem, 8vw, 7rem) 0; }
.proc-wrap .sh-t  { color: #fff; }
.proc-wrap .lbl   { color: rgba(255,255,255,.6); }
.proc-wrap .lbl::before { background: rgba(255,255,255,.6); }

.proc-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.step { padding-right: 1rem; }
.step-nb { font-family: var(--font-d); font-size: 4.5rem; font-weight: 800; line-height: 1; color: rgba(255,255,255,.15); margin-bottom: .5rem; transition: color .3s; }
.step:hover .step-nb { color: rgba(255,255,255,.3); }
.step-bar { width: 2.5rem; height: 2px; background: rgba(255,255,255,.3); margin-bottom: .85rem; transition: background .3s, width .3s; }
.step:hover .step-bar { background: #fff; width: 3.5rem; }
.step-t { font-family: var(--font-d); font-weight: 700; color: #fff; font-size: 1rem; letter-spacing: .04em; margin-bottom: .4rem; }
.step-d { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.65; }


/* ================================================================
   ZONE
   ================================================================ */
.zone-g { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.zone-p { color: var(--muted); font-size: .93rem; line-height: 1.9; margin-bottom: 1.5rem; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.tag {
  padding: .35rem .9rem;
  font-family: var(--font-d);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1.5px solid var(--border2);
  color: var(--muted);
  transition: border-color .3s, color .3s, background .3s;
  cursor: default;
}
.tag:hover, .tag.on { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }

.map-w { height: clamp(280px, 45vw, 420px); background: var(--card); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 4px 30px rgba(0,0,0,.08); }
#map { width: 100%; height: 100%; }


/* ================================================================
   HORAIRES
   ================================================================ */
.hor-g { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.sched { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); overflow: hidden; }
.sched-r { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); gap: 1rem; background: var(--white); }
.sched-r:last-child { border-bottom: none; }
.sched-r.hl { background: var(--blue-pale); }
.sched-day  { font-size: .88rem; color: var(--ink2); }
.sched-t    { font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.sched-t.cl { font-family: var(--font-b); font-size: .82rem; color: var(--muted); font-style: italic; font-weight: 300; }

.ci { display: flex; flex-direction: column; gap: 1.25rem; }
.ci-it { display: flex; gap: 1.1rem; align-items: flex-start; }
.ci-ico { width: 44px; height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; background: var(--blue-pale); color: var(--blue); font-size: 1.05rem; flex-shrink: 0; }
.ci-lbl { font-family: var(--font-d); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.ci-val { font-size: .95rem; color: var(--ink); }
.ci-val a:hover { color: var(--blue); }


/* ================================================================
   CONTACT FORM
   ================================================================ */
.cform-g { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.cf-p { color: var(--muted); font-size: .93rem; line-height: 1.9; margin-bottom: 1.5rem; }
.cf-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .75rem 1.15rem;
  background: var(--blue-pale);
  border: 1px solid rgba(29,78,143,.25);
  font-family: var(--font-d); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: var(--blue);
}

.form  { display: flex; flex-direction: column; gap: 1.1rem; }
.frow  { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.fg    { display: flex; flex-direction: column; gap: .35rem; }
.flbl  { font-family: var(--font-d); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.finp, .fsel, .ftxt {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: .88rem;
  padding: .8rem .95rem;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  resize: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.finp:focus, .fsel:focus, .ftxt:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,143,.08); }
.finp::placeholder, .ftxt::placeholder { color: var(--border2); }
.ftxt { min-height: 120px; }

.fconsent { display: flex; gap: .7rem; align-items: flex-start; font-size: .75rem; color: var(--muted); line-height: 1.55; }
.fconsent input[type="checkbox"] { width: 15px; height: 15px; min-width: 15px; margin-top: 2px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }
.fsub { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fnote { font-size: .72rem; color: var(--muted); }
.fsuc { display: none; padding: .9rem 1rem; background: var(--blue-pale); border: 1px solid var(--blue); color: var(--blue); font-size: .85rem; margin-top: .5rem; }


/* ================================================================
   FOOTER
   ================================================================ */
footer { background: var(--ink); padding: 2.5rem 0 1.75rem; }
.ft-in { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.ft-logo { font-family: var(--font-d); font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; color: #fff; }
.ft-logo b { color: var(--blue); font-weight: 800; }
.ft-tag { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: .25rem; }

.ft-soc { display: flex; gap: .65rem; }
.soc-a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.5); transition: border-color .3s, color .3s; }
.soc-a:hover { border-color: #fff; color: #fff; }

.ft-bot { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .72rem; color: rgba(255,255,255,.35); }
.ft-lnk { display: flex; gap: 1.75rem; }
.ft-lnk a:hover { color: rgba(255,255,255,.8); }


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  nav.desk { display: none; }
  .ham     { display: flex; }
  .h-accent, .h-accent-lines { display: none; }

  .h-main .wrap { grid-template-columns: 1fr; }
  .h-card .hc-inner { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
  .stat-hr { width: 1px; height: 3rem; }

  .about-g, .zone-g, .hor-g, .cform-g { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-g  { grid-template-columns: 1fr 1fr; }
  .proc-g { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .svc-hd { align-items: flex-start; }
}

@media (max-width: 640px) {
  .svc-g  { grid-template-columns: 1fr; }
  .frow   { grid-template-columns: 1fr; }
  .proc-g { grid-template-columns: 1fr; }
  .h-card .hc-inner { flex-direction: column; align-items: flex-start; }
  .stat-hr { width: 100%; height: 1px; }
  .h-btns { flex-direction: column; align-items: flex-start; }
  .h-btns .btn { width: 100%; justify-content: center; }
  .ft-in  { flex-direction: column; align-items: flex-start; }
  .ft-bot { flex-direction: column; gap: .5rem; }
  .fsub   { flex-direction: column; align-items: flex-start; }
  .fsub .btn { width: 100%; justify-content: center; }
}

@media (hover: none) {
  .btn, .fc, .si, .tag, .soc-a { min-height: 44px; }
  .btn { padding: .9rem 1.8rem; }
}
