:root{
  --bg:#f4f6fa; --fg:#1a2238; --navy:#1f2a52; --red:#FF0000;
  --soft:#f4f6fa; --card:#fff; --border:#e3e7ef; --muted:#5a6478;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--fg);line-height:1.6}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:0 1.5rem}

/* HEADER */
.header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;max-width:1200px;margin:0 auto}
.logo{display:flex;align-items:center;gap:.5rem}
.logo-mark{width:48px;height:48px;display:grid;place-items:center;border:2px solid var(--red);border-radius:4px;font-weight:700;color:var(--navy)}
.logo-text{font-weight:600;color:var(--navy);letter-spacing:.05em}
.nav{display:flex;gap:1.75rem}
.nav a{font-size:.875rem;font-weight:500;color:var(--navy);transition:color .2s}
.nav a:hover,.nav a.active{color:var(--red)}
.menu-btn{display:none;background:none;border:0;color:var(--navy);cursor:pointer;font-size:1.5rem}

/* LANGUAGE SWITCHER */
.lang-switcher{display:flex;gap:.35rem;align-items:center}
.lang-btn{display:inline-flex;align-items:center;gap:.3rem;padding:.3rem .6rem;border-radius:.375rem;font-size:.75rem;font-weight:600;color:var(--navy);border:1px solid transparent;transition:border-color .2s,background .2s;white-space:nowrap}
.lang-btn:hover{border-color:var(--red);color:var(--red)}
.lang-btn.lang-active{border-color:var(--red);color:var(--red);background:rgba(255,0,0,.05)}

@media(max-width:1024px){
  .nav{display:none;flex-direction:column;width:100%;padding:1rem 1.5rem;background:#fff;border-top:1px solid var(--border);position:absolute;top:100%;left:0}
  .nav.open{display:flex}
  .menu-btn{display:block}
  .lang-switcher{margin-right:.5rem}
}
@media(max-width:480px){
  .lang-btn span[aria-hidden]{display:none}
}

/* HERO HOME */
.hero{position:relative;height:80vh;min-height:520px;overflow:hidden}
.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:rgba(31,42,82,.6)}
.hero-content{position:relative;z-index:1;max-width:1200px;margin:0 auto;padding:0 1.5rem;height:100%;display:flex;flex-direction:column;justify-content:center;color:#fff}
.hero h1{font-size:clamp(2.5rem,5vw,4.5rem);font-weight:700;line-height:1.1;max-width:48rem}
.hero p{margin-top:1.5rem;max-width:42rem;font-size:1.125rem;color:rgba(255,255,255,.9)}
.hero-cta{margin-top:2.5rem;display:flex;flex-wrap:wrap;gap:1rem}
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.5rem;border-radius:.5rem;font-weight:500;transition:opacity .2s,background .2s;cursor:pointer;border:0}
.btn-primary{background:var(--red);color:#fff}
.btn-primary:hover{opacity:.9}
.btn-outline{border:1px solid rgba(255,255,255,.4);color:#fff}
.btn-outline:hover{background:rgba(255,255,255,.1)}

/* PAGE HERO */
.page-hero{background:var(--soft);padding:5rem 0 4rem;border-bottom:1px solid var(--border)}
.page-hero h1{font-size:clamp(2rem,4vw,3.5rem);color:var(--navy);font-weight:700;margin-bottom:1rem}
.page-hero p{max-width:48rem;color:var(--muted);font-size:1.125rem}

/* SECTIONS */
section{padding:4rem 0}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem}
@media(max-width:768px){.grid-3,.grid-2,.grid-4{grid-template-columns:1fr}}

.feature{border-left:4px solid var(--red);padding:.5rem 0 .5rem 1.5rem}
.feature h2,.feature h3{color:var(--navy);font-size:1.25rem;margin-bottom:.5rem}
.feature p{color:rgba(26,34,56,.75)}

/* SPLIT */
.split{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;padding:4rem 0}.split.reverse .split-img{order:2}.split-img{width:100%;overflow:hidden;border-radius:12px}.split-img img{width:100%;height:100%;object-fit:cover;display:block;border-radius:12px}.split-img-alt img{width:100%;height:auto;object-fit:contain;display:block;border-radius:12px}
@media(max-width:768px){.split{grid-template-columns:1fr}.split.reverse .split-img{order:0}}
.split-img img{border-radius:.75rem;width:100%;aspect-ratio:4/3;object-fit:cover}
.split h2{font-size:2rem;color:var(--navy);margin-bottom:1rem}
.split .intro{color:var(--muted);margin-bottom:1.5rem}
.bullets{list-style:none;display:flex;flex-direction:column;gap:1rem}
.bullets li{display:flex;gap:.75rem;align-items:flex-start}
.bullets li::before{content:"";flex-shrink:0;width:8px;height:8px;border-radius:50%;background:var(--red);margin-top:.6rem}
.bullets b{color:var(--navy)}

/* CARDS */
.card{background:var(--card);border:1px solid var(--border);border-radius:.75rem;overflow:hidden;transition:border-color .2s}
.card:hover{border-color:var(--red)}
.card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.card-body{padding:1.5rem}
.card h2,.card h3{color:var(--navy);font-size:1.25rem;margin-bottom:.5rem}
.card p{color:rgba(26,34,56,.75);font-size:.875rem}

/* PROJECT CARDS */
.project{position:relative;border-radius:.75rem;overflow:hidden}
.project img{aspect-ratio:16/10;object-fit:cover;width:100%;transition:transform .3s}
.project:hover img{transform:scale(1.05)}
.project::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(31,42,82,.9),transparent)}
.project-body{position:absolute;bottom:0;left:0;padding:1.5rem;color:#fff;z-index:1}
.project h3{font-size:1.25rem;font-weight:700}
.project p{font-size:.875rem;color:rgba(255,255,255,.85);margin-top:.25rem}

/* CLIENT TILES */
.client-tile{aspect-ratio:16/9;display:grid;place-items:center;border:1px solid var(--border);background:var(--card);border-radius:.5rem;text-align:center;padding:1rem;color:var(--navy);font-weight:500;transition:border-color .2s}
.client-tile:hover{border-color:var(--red)}

/* JOBS LIST */
.jobs{list-style:none;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.jobs li{padding:1.25rem 0;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}
.jobs li:last-child{border-bottom:0}
.jobs .title{color:var(--navy);font-weight:500}
.jobs .link{color:var(--red);font-size:.875rem;font-weight:500}

/* NEWS */
.news .date{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--red);font-weight:600;margin-bottom:.5rem}
.news h3{color:var(--navy);font-weight:700;line-height:1.3}

/* CONTACT */
.contact-info{display:flex;flex-direction:column;gap:1.5rem}
.contact-row{display:flex;gap:1rem;align-items:flex-start}
.contact-row .icon{width:24px;height:24px;color:var(--red);flex-shrink:0}
.contact-row b{color:var(--navy);display:block;margin-bottom:.25rem}
.contact-row p{color:var(--muted)}
.form{display:flex;flex-direction:column;gap:1rem;background:var(--card);padding:2rem;border-radius:.75rem;border:1px solid var(--border)}
.form label{font-size:.875rem;color:var(--navy);font-weight:500}
.form input,.form textarea{width:100%;padding:.75rem;border:1px solid var(--border);border-radius:.5rem;font:inherit;background:#fff}
.form input:focus,.form textarea:focus{outline:2px solid var(--red);outline-offset:1px}
.form textarea{min-height:120px;resize:vertical}
.alert{padding:1rem;border-radius:.5rem;margin-bottom:1rem}
.alert-success{background:#e8f5e1;color:#2d6020;border:1px solid var(--red)}
.alert-error{background:#fde8e8;color:#7a1f1f;border:1px solid #d44}

/* ── CAROUSEL ────────────────────────────────────────────── */
.carousel-section{padding:3.5rem 0}
.carousel-title{
  color:var(--navy);font-size:1.55rem;font-weight:700;
  margin-bottom:1.75rem;padding-left:.75rem;
  border-left:4px solid var(--red);line-height:1.3;
}

/* Wrapper global */
.carousel-container{
  position:relative;
  background:var(--card);
  border-radius:20px;
  box-shadow:0 8px 40px rgba(31,42,82,.10);
  overflow:hidden;
}

/* Track glissant */
.carousel-track{
  display:flex;
  transition:transform .55s cubic-bezier(.4,0,.2,1);
  will-change:transform;
}

/* Chaque carte */
.carousel-card{
  min-width:100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:stretch;
  background:var(--card);
}
@media(max-width:768px){
  .carousel-card{grid-template-columns:1fr;grid-template-rows:auto 1fr}
}

/* Image à gauche */
.carousel-img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  min-height:340px;
  border-radius:0;
}
@media(max-width:768px){
  .carousel-img{min-height:220px;max-height:260px;aspect-ratio:16/9}
}

/* Texte à droite */
.carousel-body{
  padding:2.5rem 2.25rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.75rem;
}
@media(max-width:768px){.carousel-body{padding:1.5rem}}

.carousel-body h3{
  color:var(--navy);
  font-size:1.05rem;
  font-weight:700;
  line-height:1.45;
  margin-bottom:.25rem;
}
.carousel-body p{
  color:var(--muted);
  font-size:.855rem;
  line-height:1.7;
}

/* Compteur slide */
.carousel-counter{
  font-size:.78rem;font-weight:600;
  color:var(--red);letter-spacing:.06em;
  text-transform:uppercase;margin-bottom:.1rem;
}

/* Boutons flèches */
.carousel-btn{
  position:absolute;top:50%;transform:translateY(-50%);
  background:rgba(255,255,255,.92);
  color:var(--navy);
  border:none;
  width:44px;height:44px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.1rem;
  cursor:pointer;
  border-radius:50%;
  z-index:10;
  box-shadow:0 4px 16px rgba(0,0,0,.15);
  transition:background .2s,transform .2s,color .2s;
}
.carousel-btn:hover{background:var(--red);color:#fff;transform:translateY(-50%) scale(1.1)}
.carousel-btn.prev{left:1rem}
.carousel-btn.next{right:1rem}
@media(max-width:768px){
  .carousel-btn{width:36px;height:36px;font-size:.9rem}
  .carousel-btn.prev{left:.5rem}
  .carousel-btn.next{right:.5rem}
}

/* Barre de progression automatique */
.carousel-progress{
  height:3px;
  background:var(--border);
  border-radius:0 0 20px 20px;
  overflow:hidden;
}
.carousel-progress-bar{
  height:100%;
  background:linear-gradient(90deg,var(--red),#ff6b6b);
  width:0%;
  transition:width linear;
  border-radius:0 0 20px 20px;
}

/* Points de navigation */
.carousel-dots{
  display:flex;justify-content:center;
  gap:.6rem;margin-top:1.1rem;
}
.carousel-dot{
  width:8px;height:8px;
  border-radius:50%;
  background:var(--border);
  cursor:pointer;border:none;
  padding:0;
  transition:background .25s,transform .25s,width .25s;
}
.carousel-dot.active{
  background:var(--red);
  width:24px;
  border-radius:4px;
  transform:none;
}

/* FOOTER */
.footer{background:var(--navy);color:#fff;margin-top:6rem}
.footer-inner{max-width:1200px;margin:0 auto;padding:3rem 1.5rem;display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
@media(max-width:768px){.footer-inner{grid-template-columns:1fr}}
.footer h4{font-weight:600;margin-bottom:.75rem;letter-spacing:.05em}
.footer p,.footer ul{font-size:.875rem;color:rgba(255,255,255,.75)}
.footer ul{list-style:none;display:flex;flex-direction:column;gap:.5rem}
.footer ul a:hover{color:var(--red)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);text-align:center;padding:1rem;font-size:.75rem;color:rgba(255,255,255,.6)}
