/* =====================================================
   MYSTIC DIGITAL SOLUTIONS — STYLESHEET
   Charte graphique exacte des maquettes Stitch
   ===================================================== */

/* =====================================================
   VARIABLES & RESET
   ===================================================== */
:root{
  --navy:#1B1F3B;
  --white:#FFFFFF;
  --gray-light:#F5F7FA;
  --blue:#2563EB;
  --blue-pale:#EEF2FF;
  --text-main:#1B1F3B;
  --text-muted:#6B7280;
  --text-hero:#C5C9D6;
  --border:#E5E7EB;
  --orange:#F97316;
  --green:#10B981;
  --shadow:0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md:0 4px 16px rgba(0, 0, 0, 0.10);
  --radius-sm:6px;
  --radius:12px;
  --radius-lg:16px;
  --radius-pill:20px;
}

*,
*::before,
*::after{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
  font-size:16px;
}

body{
  font-family:'Inter', sans-serif;
  color:var(--text-main);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

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

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

ul{
  list-style:none;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1{
  font-size:42px;
  font-weight:700;
  line-height:1.15;
}

h2{
  font-size:32px;
  font-weight:700;
  line-height:1.25;
}

h3{
  font-size:18px;
  font-weight:700;
}

h4{
  font-size:16px;
  font-weight:700;
}

.section-label{
  display:block;
  font-size:12px;
  font-weight:600;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:12px;
}

.section-divider{
  width:40px;
  height:3px;
  background:var(--blue);
  margin:16px auto 48px;
  border-radius:2px;
}

.section-divider.left{
  margin-left:0;
}

/* =====================================================
   LAYOUT UTILITIES
   ===================================================== */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

section{
  padding:50px 0;
}

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

/* =====================================================
   BUTTONS
   ===================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:600;
  padding:12px 24px;
  border-radius:var(--radius-sm);
  border:2px solid transparent;
  cursor:pointer;
  transition:all 0.2s ease;
  white-space:nowrap;
  font-family:inherit;
}

.btn-primary{
  background:var(--blue);
  color:var(--white);
  border-color:var(--blue);
}

.btn-primary:hover{
  background:#1d4ed8;
  border-color:#1d4ed8;
}

.btn-outline-white{
  background:transparent;
  color:var(--white);
  border-color:var(--white);
}

.btn-outline-white:hover{
  background:rgba(255, 255, 255, 0.1);
}

.btn-orange{
  background:var(--orange);
  color:var(--white);
  border-color:var(--orange);
}

.btn-orange:hover{
  background:#ea6c00;
  border-color:#ea6c00;
}

/* =====================================================
   TOP BAR
   ===================================================== */
.top-bar{
  background:var(--navy);
  height:36px;
  display:flex;
  align-items:center;
}

.top-bar .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
}

.top-bar-item{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color:var(--white);
  opacity:0.85;
}

.top-bar-item svg{
  width:14px;
  height:14px;
  flex-shrink:0;
}

/* =====================================================
   HEADER / NAVIGATION
   ===================================================== */
.header{
  position:sticky;
  top:0;
  z-index:1000;
  background:var(--white);
  height:60px;
  display:flex;
  align-items:center;
  box-shadow:0 2px 12px rgba(0, 0, 0, 0.05);
}

.header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  width:100%;
  max-width:1400px;
}

.logo{
  font-size:22px;
  font-weight:800;
  color:var(--white);
  letter-spacing:-0.5px;
  flex-shrink:0;
}

.logo span{
  color:var(--blue);
}

/* Logo image */
.logo-img{
  height:38px;
  width:auto;
  display:block;
  transition:opacity 0.2s;
}

.logo-img:hover{
  opacity:0.85;
}

.footer-brand .logo-img{
  filter:none;
  height:42px;
  margin-bottom:12px;
}


.nav-links{
  display:flex;
  align-items:center;
  gap:8px;
}

.nav-links a{
  font-size:16px;
  font-weight:600;
  color:var(--navy);
  padding:8px 16px;
  border-radius:var(--radius-sm);
  transition:all 0.2s ease;
}

.nav-links a:hover,
.nav-links a:active{
  color:var(--blue);
  background:var(--blue-pale);
  box-shadow:0 2px 4px rgba(37, 99, 235, 0.1);
}

.nav-cta{
  flex-shrink:0;
}

/* Hamburger */
.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  padding:4px;
}

.hamburger span{
  display:block;
  width:24px;
  height:2px;
  background:var(--navy);
  border-radius:2px;
  transition:all 0.3s;
}

.hamburger.open span:nth-child(1){
  transform:rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2){
  opacity:0;
}

.hamburger.open span:nth-child(3){
  transform:rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav{
  display:none;
  position:fixed;
  top:96px;
  left:0;
  right:0;
  background:var(--white);
  padding:24px;
  z-index:999;
  flex-direction:column;
  gap:8px;
  border-top:1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav.open{
  display:flex;
}

.mobile-nav a{
  font-size:16px;
  font-weight:500;
  color:var(--navy);
  padding:12px 16px;
  border-radius:var(--radius-sm);
  transition:all 0.2s;
}

.mobile-nav a:hover{
  background:rgba(27, 31, 59, 0.05);
  color:var(--blue);
}

.mobile-nav .btn{
  margin-top:8px;
  text-align:center;
  justify-content:center;
}

/* =====================================================
   HERO
   ===================================================== */
.hero{
  background:var(--navy);
  padding:80px 0 0;
}

.hero-inner{
  display:grid;
  grid-template-columns:60% 40%;
  gap:48px;
  align-items:center;
  padding-bottom:40px;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:600;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--blue);
  background:rgba(37, 99, 235, 0.12);
  border:1px solid rgba(37, 99, 235, 0.3);
  padding:6px 14px;
  border-radius:var(--radius-pill);
  margin-bottom:24px;
}

.hero h1{
  color:var(--white);
  max-width:500px;
  margin-bottom:20px;
}

.hero-desc{
  color:var(--text-hero);
  font-size:16px;
  max-width:480px;
  margin-bottom:28px;
}

.hero-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:36px;
}

.hero-tag{
  font-size:12px;
  color:var(--white);
  background:rgba(255, 255, 255, 0.1);
  border:1px solid rgba(255, 255, 255, 0.2);
  padding:5px 14px;
  border-radius:var(--radius-pill);
  font-weight:500;
}

.hero-btns{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

/* Hero image */
.hero-img-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
}

.hero-img-card{
  background:rgba(255, 255, 255, 0.06);
  border:1px solid rgba(255, 255, 255, 0.12);
  border-radius:var(--radius);
  width:320px;
  height:320px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:12px;
  position:relative;
  overflow:hidden;
}

.hero-img-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:var(--radius);
}

.hero-img-icon{
  width:80px;
  height:80px;
  background:rgba(37, 99, 235, 0.2);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-img-icon svg{
  width:40px;
  height:40px;
  color:var(--blue);
}

/* Hero main image */
.hero-main-img{
  width:100%;
  height:auto;
  border-radius:var(--radius);
  box-shadow:0 20px 50px rgba(0, 0, 0, 0.4);
  object-fit:cover;
  max-height:450px;
}

/* Hero stats */
.hero-stats{
  border-top:1px solid rgba(255, 255, 255, 0.1);
  display:grid;
  grid-template-columns:repeat(4, 1fr);
}

.hero-stat{
  padding:28px 24px;
  text-align:center;
  border-right:1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat:last-child{
  border-right:none;
}

.hero-stat-num{
  font-size:36px;
  font-weight:700;
  color:var(--white);
  line-height:1;
  margin-bottom:6px;
}

.hero-stat-label{
  font-size:11px;
  font-weight:600;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--text-hero);
}

/* =====================================================
   LOGOS CAROUSEL
   ===================================================== */
.logos-carousel{
  background:var(--white);
  padding:24px 0;
  overflow:hidden;
}

.logos-carousel-title{
  text-align:center;
  margin-bottom:40px;
}

.logos-track-wrapper{
  overflow:hidden;
  position:relative;
  width:100%;
}

/* Masques de fondu sur les bords gauche et droite */
.logos-track-wrapper::before,
.logos-track-wrapper::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:150px;
  z-index:2;
  pointer-events:none;
}

.logos-track-wrapper::before{
  left:0;
  background:linear-gradient(to right, var(--white), transparent);
}

.logos-track-wrapper::after{
  right:0;
  background:linear-gradient(to left, var(--white), transparent);
}

.logos-track{
  display:flex;
  align-items:center;
  gap:60px;
  animation:scroll-logos 30s linear infinite;
  width:max-content;
}

.logo-item{
  flex-shrink:0;
  width:150px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo-item img{
  max-width:100%;
  max-height:100%;
  opacity:0.7;
  /* Style corporate discret, bien visible sur fond blanc */
  filter:grayscale(100%);
  transition:opacity 0.3s ease, filter 0.3s ease;
}

.logo-item img:hover{
  opacity:1;
  filter:grayscale(0%);
}

@keyframes scroll-logos{
  0%{
    transform:translateX(0);
  }

  100%{
    transform:translateX(-50%);
  }
}

/* Pause au survol */
.logos-track-wrapper:hover .logos-track{
  animation-play-state:paused;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services{
  background:var(--white);
}

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

.card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:0;
  box-shadow:var(--shadow);
  transition:box-shadow 0.25s, transform 0.25s;
  overflow:hidden;
}

.card:hover{
  box-shadow:var(--shadow-md);
  transform:translateY(-2px);
}

/* Service card thumbnail */
.card-thumb{
  width:100%;
  height:160px;
  overflow:hidden;
  border-radius:var(--radius) var(--radius) 0 0;
}

.card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform 0.4s ease;
}

.card:hover .card-thumb img{
  transform:scale(1.05);
}

.card-icon,
.card h4,
.card p{
  margin-left:28px;
  margin-right:28px;
}

.card-icon{
  margin-top:20px;
}

.card-icon{
  width:40px;
  height:40px;
  background:var(--blue-pale);
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:20px;
  flex-shrink:0;
}

.card-icon svg{
  width:20px;
  height:20px;
  color:var(--blue);
}

.card h4{
  margin-bottom:8px;
  color:var(--text-main);
}

.card p{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.5;
  padding-bottom:24px;
}

/* =====================================================
   SECTEURS
   ===================================================== */
.secteurs{
  background:var(--gray-light);
}

.secteurs-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:16px;
}

.secteur-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px 16px;
  text-align:center;
  cursor:pointer;
  transition:border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  text-decoration:none;
  display:block;
}

.secteur-card:hover{
  border-color:var(--blue);
  box-shadow:0 4px 16px rgba(37, 99, 235, 0.15);
  transform:translateY(-3px);
}

.secteur-icon{
  width:48px;
  height:48px;
  background:var(--blue-pale);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 12px;
}

.secteur-icon svg{
  width:24px;
  height:24px;
  color:var(--blue);
}

.secteur-name{
  font-size:14px;
  font-weight:600;
  color:var(--text-main);
}

/* =====================================================
   Ã€ PROPOS
   ===================================================== */
.apropos{
  background:var(--white);
}

.apropos-inner{
  display:grid;
  grid-template-columns:55% 45%;
  gap:64px;
  align-items:center;
}

.apropos-label{
  margin-bottom:16px;
}

.apropos h2{
  margin-bottom:20px;
}

.apropos-desc{
  color:var(--text-muted);
  font-size:15px;
  margin-bottom:32px;
}

.valeurs-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.valeur-title{
  font-size:15px;
  font-weight:700;
  color:var(--text-main);
  margin-bottom:6px;
}

.valeur-title span{
  display:inline-block;
  width:8px;
  height:8px;
  background:var(--blue);
  border-radius:50%;
  margin-right:8px;
  vertical-align:middle;
}

.valeur-item p{
  font-size:13px;
  color:var(--text-muted);
  padding-left:16px;
}

/* Dark card */
.dark-card{
  background:var(--navy);
  border-radius:var(--radius-lg);
  padding:36px 32px;
  height:100%;
}

.dark-card h3{
  color:var(--white);
  font-size:20px;
  margin-bottom:8px;
}

.dark-card-sub{
  font-size:14px;
  color:var(--text-hero);
  margin-bottom:28px;
}

.dark-card-points{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin-bottom:32px;
}

.dark-point{
  display:flex;
  gap:14px;
}

.dark-point-icon{
  width:36px;
  height:36px;
  background:rgba(37, 99, 235, 0.2);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.dark-point-icon svg{
  width:18px;
  height:18px;
  color:var(--blue);
}

.dark-point-title{
  font-size:15px;
  font-weight:700;
  color:var(--white);
  margin-bottom:4px;
}

.dark-point-desc{
  font-size:13px;
  color:var(--text-hero);
}

/* =====================================================
   Ã‰QUIPE
   ===================================================== */
.equipe{
  background:var(--gray-light);
}

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

.membre-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:32px 28px;
  text-align:center;
  box-shadow:var(--shadow);
  transition:box-shadow 0.25s, transform 0.25s;
}

.membre-card:hover{
  box-shadow:var(--shadow-md);
  transform:translateY(-2px);
}

/* =====================================================
   COOKIE BANNER
   ===================================================== */
.cookie-banner{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background-color:var(--white);
  border-top:1px solid var(--border);
  box-shadow:0 -4px 12px rgba(0, 0, 0, 0.05);
  padding:16px 0;
  z-index:9999;
  display:flex;
  justify-content:center;
  align-items:center;
  transition:transform 0.4s ease-in-out;
}

.cookie-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.cookie-banner p{
  font-size:14px;
  color:var(--text-muted);
  margin-bottom:0;
  flex:1;
}

.cookie-btns{
  display:flex;
  gap:12px;
  flex-shrink:0;
}

@media (max-width:768px){
  .cookie-container{
    flex-direction:column;
    text-align:center;
    gap:16px;
  }
}

.membre-photo{
  width:120px;
  height:120px;
  min-width:120px;
  min-height:120px;
  flex-shrink:0;
  border-radius:50%;
  margin:0 auto 20px;
  background:var(--blue-pale);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position:relative;
  border:2px solid var(--blue);
}

.membre-photo svg{
  width:40px;
  height:40px;
  color:var(--blue);
}

.membre-photo-img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
  box-sizing:border-box;
}

.membre-nom{
  font-size:18px;
  font-weight:700;
  margin-bottom:8px;
}

.membre-role{
  display:inline-block;
  background:var(--blue-pale);
  color:var(--blue);
  font-size:12px;
  font-weight:600;
  padding:4px 14px;
  border-radius:var(--radius-pill);
  margin-bottom:14px;
}

.membre-bio{
  font-size:14px;
  color:var(--text-muted);
}

/* =====================================================
   TÃ‰MOIGNAGES
   ===================================================== */
.temoignages{
  background:var(--white);
}

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

.temoin-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px 24px;
  box-shadow:var(--shadow);
}

.temoin-header{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
}

.temoin-photo{
  width:48px;
  height:48px;
  border-radius:50%;
  background:var(--blue-pale);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  overflow:hidden;
}

.temoin-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
}

.temoin-photo svg{
  width:24px;
  height:24px;
  color:var(--blue);
}

.temoin-nom{
  font-size:15px;
  font-weight:700;
  margin-bottom:2px;
}

.temoin-poste{
  font-size:13px;
  color:var(--text-muted);
}

.quote-icon{
  font-size:36px;
  color:var(--blue);
  line-height:1;
  margin-bottom:8px;
  opacity:0.4;
}

.temoin-texte{
  font-size:14px;
  color:var(--text-muted);
  font-style:italic;
  line-height:1.7;
}

/* =====================================================
   FAQ â€” ACCORDÃ‰ON
   ===================================================== */
.faq{
  background:var(--gray-light);
}

.faq-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  max-width:960px;
  margin:0 auto;
}

.faq-col{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.faq-item{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  transition:box-shadow 0.2s;
}

.faq-item:hover{
  box-shadow:var(--shadow);
}

.faq-item.open{
  box-shadow:0 4px 20px rgba(37, 99, 235, 0.10);
  border-color:rgba(37, 99, 235, 0.3);
}

.faq-question{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:20px 24px;
  background:none;
  border:none;
  cursor:pointer;
  font-family:inherit;
  font-size:15px;
  font-weight:600;
  color:var(--text-main);
  text-align:left;
  transition:color 0.2s;
}

.faq-question:hover{
  color:var(--blue);
}

.faq-item.open .faq-question{
  color:var(--blue);
}

.faq-chevron{
  width:18px;
  height:18px;
  color:var(--text-muted);
  flex-shrink:0;
  transition:transform 0.3s ease;
}

.faq-item.open .faq-chevron{
  transform:rotate(180deg);
  color:var(--blue);
}

.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.35s ease, padding 0.35s ease;
  padding:0 24px;
}

.faq-item.open .faq-answer{
  max-height:300px;
  padding:0 24px 20px;
}

.faq-answer p{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.75;
  border-top:1px solid var(--border);
  padding-top:16px;
}

.faq-answer strong{
  color:var(--text-main);
}

@media (max-width:768px){
  .faq-grid{
    grid-template-columns:1fr;
  }

  .faq-question{
    font-size:14px;
    padding:16px 20px;
  }

  .faq-item.open .faq-answer{
    padding:0 20px 16px;
  }
}

/* =====================================================
   CTA FINAL
   ===================================================== */
.cta-final{
  background:linear-gradient(135deg, var(--navy), var(--blue));
  padding:80px 0;
  text-align:center;
}

/* =====================================================
   SECTOR CONTEXT DESC
   ===================================================== */
.sector-context-desc{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
  padding-left:20px;
  padding-right:20px;
  text-align:justify;
  font-size:16px;
  line-height:1.8;
  color:var(--text-muted);
}

/* =====================================================
   SECTOR HERO — IMAGE DE FOND
   ===================================================== */
.sector-hero{
  position:relative;
  min-height:280px;
  display:flex;
  align-items:center;
}

.sector-hero .container{
  position:relative;
  z-index:1;
}

.cta-final h2{
  color:var(--white);
  max-width:600px;
  margin:0 auto 36px;
}

.cta-btns{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

/* =====================================================
   CONTACT â€” FORMULAIRE COMPLET
   ===================================================== */
.contact{
  background:var(--white);
  padding:40px 0;
  text-align:center;
}

.contact h2{
  margin-bottom:12px;
}

.contact-subtitle{
  font-size:16px;
  color:var(--text-muted);
  max-width:520px;
  margin:0 auto 48px;
}

/* Layout 2 colonnes */
.contact-layout{
  display:grid;
  grid-template-columns:1fr 1.6fr;
  gap:40px;
  text-align:left;
  max-width:1000px;
  margin:0 auto;
}

/* Colonne infos */
.contact-infos-col{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.contact-info-card{
  display:flex;
  align-items:center;
  gap:16px;
  background:var(--gray-light);
  border-radius:var(--radius);
  padding:20px;
  border:1px solid var(--border);
  transition:border-color 0.2s, box-shadow 0.2s;
}

.contact-info-card:hover{
  border-color:var(--blue);
  box-shadow:var(--shadow);
}

.contact-info-icon{
  width:44px;
  height:44px;
  background:var(--blue-pale);
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.contact-info-icon svg{
  width:20px;
  height:20px;
  color:var(--blue);
}

.contact-info-label{
  font-size:12px;
  color:var(--text-muted);
  text-transform:uppercase;
  letter-spacing:0.8px;
  margin-bottom:4px;
  font-weight:600;
}

.contact-info-value{
  font-size:14px;
  font-weight:600;
  color:var(--text-main);
}

.contact-info-value:hover{
  color:var(--blue);
}

/* Formulaire */
.contact-form{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:36px 32px;
  box-shadow:var(--shadow);
}

.form-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:16px;
}

.form-group label{
  font-size:13px;
  font-weight:600;
  color:var(--text-main);
}

.required{
  color:var(--orange);
}

.form-group input,
.form-group select,
.form-group textarea{
  font-family:inherit;
  font-size:14px;
  color:var(--text-main);
  background:var(--gray-light);
  border:1.5px solid var(--border);
  border-radius:8px;
  padding:11px 14px;
  transition:border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline:none;
  width:100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  border-color:var(--blue);
  background:var(--white);
  box-shadow:0 0 0 3px rgba(37, 99, 235, 0.10);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error{
  border-color:#ef4444;
  background:#fff5f5;
}

.form-error{
  font-size:12px;
  color:#ef4444;
  display:none;
}

.form-error.visible{
  display:block;
}

.form-group textarea{
  resize:vertical;
  min-height:120px;
}

/* Chips radio */
.besoin-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.chip{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:500;
  color:var(--text-muted);
  background:var(--gray-light);
  border:1.5px solid var(--border);
  border-radius:var(--radius-pill);
  padding:7px 16px;
  cursor:pointer;
  transition:all 0.2s;
  user-select:none;
}

.chip input[type="radio"]{
  display:none;
}

.chip:hover{
  border-color:var(--blue);
  color:var(--blue);
}

.chip:has(input:checked){
  background:var(--blue-pale);
  border-color:var(--blue);
  color:var(--blue);
  font-weight:600;
}

/* Bouton submit */
.form-submit{
  width:100%;
  justify-content:center;
  font-size:15px;
  padding:14px 24px;
  margin-top:4px;
  position:relative;
}

.form-submit.loading{
  opacity:0.7;
  pointer-events:none;
}

/* Message succÃ¨s */
.form-success{
  display:none;
  text-align:center;
  padding:48px 32px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.form-success.visible{
  display:block;
  animation:fadeUp 0.4s ease;
}

.form-success-icon{
  font-size:48px;
  margin-bottom:16px;
}

.form-success h3{
  color:var(--text-main);
  margin-bottom:12px;
}

.form-success p{
  color:var(--text-muted);
  margin-bottom:24px;
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(16px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

@media (max-width:768px){
  .contact-layout{
    grid-template-columns:1fr;
  }

  .form-row{
    grid-template-columns:1fr;
  }

  .contact-form{
    padding:24px 20px;
  }
}


/* =====================================================
   FOOTER
   ===================================================== */
.footer{
  background:#101231;
  padding:36px 0 0;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:48px;
  padding-bottom:48px;
}

.footer-brand .logo{
  font-size:24px;
  margin-bottom:16px;
  display:block;
}

.footer-desc{
  font-size:14px;
  color:var(--text-hero);
  line-height:1.7;
  margin-bottom:24px;
  max-width:280px;
}

.social-links{
  display:flex;
  gap:12px;
}

.social-link{
  width:36px;
  height:36px;
  background:rgba(255, 255, 255, 0.08);
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--white);
  transition:background 0.2s;
}

.social-link:hover{
  background:var(--blue);
}

.social-link svg{
  width:18px;
  height:18px;
}

.footer-col h5{
  font-size:14px;
  font-weight:700;
  color:var(--white);
  margin-bottom:20px;
  letter-spacing:0.3px;
}

.footer-col ul li{
  margin-bottom:10px;
}

.footer-col ul li a{
  font-size:14px;
  color:var(--text-hero);
  transition:color 0.2s;
}

.footer-col ul li a:hover{
  color:var(--white);
}

.footer-bottom{
  border-top:1px solid rgba(255, 255, 255, 0.08);
  padding:20px 0;
}

.footer-bottom .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}

.footer-bottom-text{
  font-size:13px;
  color:var(--text-hero);
}

.footer-bottom-links{
  display:flex;
  gap:20px;
}

.footer-bottom-links a{
  font-size:13px;
  color:var(--text-hero);
  transition:color 0.2s;
}

.footer-bottom-links a:hover{
  color:var(--white);
}

/* =====================================================
   ANIMATIONS (Fade-in au scroll)
   ===================================================== */
.fade-in{
  opacity:0;
  transform:translateY(24px);
  transition:opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible{
  opacity:1;
  transform:translateY(0);
}

.fade-delay-1{
  transition-delay:0.1s;
}

.fade-delay-2{
  transition-delay:0.2s;
}

.fade-delay-3{
  transition-delay:0.3s;
}

.fade-delay-4{
  transition-delay:0.4s;
}

.fade-delay-5{
  transition-delay:0.5s;
}

/* =====================================================
   SECTOR PAGES
   ===================================================== */
.sector-hero{
  background:var(--navy);
  padding:80px 0;
}

.sector-hero .back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--text-hero);
  font-size:14px;
  margin-bottom:28px;
  transition:color 0.2s;
}

.sector-hero .back-link:hover{
  color:var(--white);
}

.sector-hero .back-link svg{
  width:16px;
  height:16px;
}

.sector-hero h1{
  color:var(--white);
  margin-bottom:16px;
}

.sector-hero .tagline{
  font-size:18px;
  color:var(--text-hero);
  max-width:600px;
}

.sector-context{
  background:var(--white);
  padding:60px 0;
}

.sector-context p{
  font-size:16px;
  color:var(--text-muted);
  max-width:800px;
  line-height:1.8;
}

.sector-services{
  background:var(--gray-light);
  padding:80px 0;
}

.sector-services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}

.service-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow);
  transition:box-shadow 0.25s, transform 0.25s;
}

.service-card:hover{
  box-shadow:var(--shadow-md);
  transform:translateY(-2px);
}

.service-num{
  font-size:36px;
  font-weight:800;
  color:var(--blue-pale);
  line-height:1;
  margin-bottom:12px;
}

.service-card h3{
  margin-bottom:10px;
  font-size:17px;
}

.service-card>p{
  font-size:14px;
  color:var(--text-muted);
  margin-bottom:14px;
}

.service-impact{
  font-size:13px;
  font-weight:700;
  color:var(--green);
  margin-bottom:12px;
  display:flex;
  align-items:center;
  gap:6px;
}

.service-impact::before{
  content:'â†’';
}

.service-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.service-tag{
  font-size:11px;
  background:var(--gray-light);
  color:var(--text-muted);
  padding:3px 10px;
  border-radius:var(--radius-pill);
  border:1px solid var(--border);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width:1024px){
  .services-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .secteurs-grid{
    grid-template-columns:repeat(4, 1fr);
  }

  .footer-grid{
    grid-template-columns:1fr 1fr;
    gap:32px;
  }

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

@media (max-width:768px){

  /* Logos Carousel Responsive */
  .logos-track{
    gap:40px;
    animation-duration:20s;
  }

  .logo-item{
    width:100px;
    height:35px;
  }

  .logos-track-wrapper::before,
  .logos-track-wrapper::after{
    width:50px;
  }

  h1{
    font-size:30px;
  }

  h2{
    font-size:24px;
  }

  section{
    padding:40px 0;
  }

  .top-bar .container{
    flex-direction:column;
    gap:4px;
    height:auto;
    padding:8px 24px;
  }

  .top-bar{
    height:auto;
  }

  /* Mobile nav */
  .nav-links,
  .nav-cta{
    display:none;
  }

  .hamburger{
    display:flex;
  }

  .hero-inner{
    grid-template-columns:1fr;
    gap:40px;
  }

  .hero-img-wrap{
    order:-1;
  }

  .hero-img-card{
    width:240px;
    height:240px;
  }

  .hero-btns{
    flex-direction:column;
  }

  .hero-btns .btn{
    justify-content:center;
  }

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

  .hero-stat{
    border-bottom:1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-stat:nth-child(2){
    border-right:none;
  }

  .services-grid{
    grid-template-columns:1fr;
  }

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

  .apropos-inner{
    grid-template-columns:1fr;
    gap:32px;
  }

  .equipe-grid{
    grid-template-columns:1fr;
  }

  .temoignages-grid{
    grid-template-columns:1fr;
  }

  .footer-grid{
    grid-template-columns:1fr;
    gap:32px;
  }

  .footer-bottom .container{
    flex-direction:column;
    text-align:center;
  }

  .sector-services-grid{
    grid-template-columns:1fr;
  }

  .valeurs-grid{
    grid-template-columns:1fr;
  }

  .contact-infos{
    flex-direction:column;
    align-items:center;
    gap:12px;
  }
}

@media (max-width:480px){
  .container{
    padding:0 16px;
  }

  .hero{
    padding-top:48px;
  }

  .hero-img-card{
    width:200px;
    height:200px;
  }

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

  .hero-stat-num{
    font-size:28px;
  }
}

/* =====================================================
   ABOUT TEAM IMAGE
   ===================================================== */
.about-team-img{
  width:100%;
  height:auto;
  border-radius:var(--radius);
  box-shadow:var(--shadow-md);
  margin-bottom:28px;
  object-fit:cover;
  max-height:320px;
}

/* =====================================================
   BACK TO TOP BUTTON
   ===================================================== */
.back-to-top{
  position:fixed;
  bottom:32px;
  right:32px;
  width:48px;
  height:48px;
  background:var(--blue);
  color:var(--white);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 20px rgba(37, 99, 235, 0.4);
  opacity:0;
  visibility:hidden;
  transform:translateY(20px);
  transition:all 0.3s ease;
  z-index:999;
  cursor:pointer;
}

.back-to-top.visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.back-to-top:hover{
  background:#1d4ed8;
  transform:translateY(-3px);
  box-shadow:0 6px 25px rgba(37, 99, 235, 0.5);
}

.back-to-top svg{
  width:22px;
  height:22px;
}

/* =====================================================
   PORTFOLIO (NOS REALISATIONS)
   ===================================================== */
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:32px;
  margin-top:48px;
}

@media (max-width:992px){
  .portfolio-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:768px){
  .portfolio-grid{
    grid-template-columns:1fr;
  }
}

.portfolio-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  transition:all 0.3s ease;
  display:flex;
  flex-direction:column;
}

.portfolio-card:hover{
  transform:translateY(-8px) scale(1.02);
  box-shadow:0 16px 32px rgba(37, 99, 235, 0.15);
  border-color:var(--blue);
}

.portfolio-image-wrapper{
  position:relative;
  width:100%;
  height:200px;
}

.portfolio-image-wrapper img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.portfolio-sector-tag{
  position:absolute;
  top:16px;
  left:16px;
  background:var(--blue);
  color:var(--white);
  font-size:11px;
  padding:4px 12px;
  border-radius:4px;
  font-weight:600;
  text-transform:uppercase;
}

.portfolio-content{
  padding:24px;
  flex:1;
  display:flex;
  flex-direction:column;
}

.portfolio-content h3{
  font-size:18px;
  font-weight:700;
  color:var(--text-dark);
  margin:0 0 12px 0;
  line-height:1.3;
}

.portfolio-description{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.6;
  margin-bottom:20px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  flex:1;
}

.portfolio-results{
  background:#F0FDF4;
  border:1px solid #BBF7D0;
  border-radius:8px;
  padding:12px;
  margin-bottom:20px;
}

.portfolio-result-item{
  color:#166534;
  font-size:13px;
  font-weight:500;
  margin-bottom:4px;
  display:flex;
  align-items:flex-start;
  gap:8px;
}

.portfolio-result-item:last-child{
  margin-bottom:0;
}

.portfolio-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.portfolio-tag{
  background:#EEF2FF;
  color:var(--blue);
  font-size:11px;
  font-weight:600;
  padding:4px 8px;
  border-radius:4px;
}

/* Portfolio Page specific */
.portfolio-filters{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:40px;
}

.portfolio-filter-btn{
  background:var(--white);
  border:1px solid var(--border);
  color:var(--text-dark);
  font-size:14px;
  font-weight:500;
  padding:8px 20px;
  border-radius:var(--radius-pill);
  cursor:pointer;
  transition:all 0.2s;
}

.portfolio-filter-btn:hover{
  background:var(--gray-light);
}

.portfolio-filter-btn.active{
  background:var(--blue);
  color:var(--white);
  border-color:var(--blue);
}

.portfolio-hero{
  background-color:#1B1F3B;
  min-height:350px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:80px 0;
  overflow:hidden;
}

.hero-pattern-overlay{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size:40px 40px;
  background-position:center;
  z-index:1;
}

.portfolio-hero h1{
  color:var(--white);
  font-size:42px;
  font-weight:700;
  margin-bottom:16px;
  position:relative;
}

.portfolio-hero p{
  color:#C5C9D6;
  font-size:16px;
  max-width:650px;
  margin:0 auto;
  position:relative;
  line-height:1.6;
}

.portfolio-back-btn{
  position:absolute;
  top:-60px;
  left:0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--white);
  border:1px solid rgba(255,255,255,0.3);
  padding:8px 18px;
  border-radius:30px;
  font-size:14px;
  font-weight:600;
  transition:all 0.2s ease;
  text-decoration:none;
}

.portfolio-back-btn:hover{
  background:rgba(255,255,255,0.1);
  border-color:var(--white);
}

@media (max-width:768px){
  .portfolio-back-btn{
    position:relative;
    top:0;
    margin-bottom:32px;
  }
  .portfolio-hero{
    padding:100px 0 60px;
  }
  .portfolio-hero h1{
    font-size:32px;
  }
}

.portfolio-filters{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:48px;
}

.portfolio-filter-btn{
  background:var(--white);
  border:none;
  color:var(--text-muted);
  font-size:14px;
  font-weight:600;
  padding:10px 24px;
  border-radius:30px;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,0.06);
  transition:all 0.3s ease;
}

.portfolio-filter-btn:hover{
  color:var(--blue);
  box-shadow:0 4px 12px rgba(37,99,235,0.1);
  transform:translateY(-2px);
}

.portfolio-filter-btn.active{
  background:var(--blue);
  color:var(--white);
  box-shadow:0 6px 16px rgba(37,99,235,0.25);
  transform:translateY(-2px);
}

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

@media (max-width:768px){
  .portfolio-grid-page{
    grid-template-columns:1fr;
  }
}


/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */
.whatsapp-float{
  position:fixed;
  bottom:24px;
  right:24px;
  background-color:#25D366;
  color:#FFF;
  width:60px;
  height:60px;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);
  z-index:9999;
  transition:all 0.3s ease;
  text-decoration:none;
}

.whatsapp-float:hover{
  transform:translateY(-4px) scale(1.05);
  box-shadow:0 6px 16px rgba(0, 0, 0, 0.2);
  color:#FFF;
}

.whatsapp-float svg{
  width:35px;
  height:35px;
  fill:currentColor;
}

@media (max-width:768px){
  .whatsapp-float{
    width:50px;
    height:50px;
    bottom:20px;
    right:20px;
  }

  .whatsapp-float svg{
    width:30px;
    height:30px;
  }
}

/* Project Card Footer (Duration & Link) */
.portfolio-footer{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #E5E7EB;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.portfolio-duration{
  font-size:13px;
  color:var(--text-muted);
  display:flex;
  align-items:center;
  gap:6px;
}

.portfolio-duration svg{
  width:14px;
  height:14px;
  color:var(--text-muted);
}

.portfolio-link{
  font-size:14px;
  font-weight:600;
  color:var(--blue);
  text-decoration:none;
  transition:color 0.2s;
}

.portfolio-link:hover{
  color:#1d4ed8;
}
.btn-outline-blue{
  background:transparent;
  color:var(--blue);
  border:1px solid var(--blue);
}
.btn-outline-blue:hover{
  background:var(--blue);
  color:var(--white);
}
