/* ===============================
   STYLES GLOBAUX – NEXORA OUTSOURCING
   =============================== */

:root {
  --nx-bordeaux: #74170F;
  --nx-text: #1c1c1c;
  --nx-muted: #515050;
  --nx-bg: #ffffff;
  --nx-cream: #faf9f8;
  --nx-border: #e7e7e9;
  --nx-accent: #e21d23;
  --nx-accent-dark: #c0181d;
  --radius: 16px;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--nx-text);
  background: var(--nx-bg);
  line-height: 1.6;
}

a {
  color: var(--nx-bordeaux);
  text-decoration: none;
}

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

/* ===============================
   SECTION HERO
   =============================== */
.hero-band {
  background: linear-gradient(90deg, #d8f36b, #7fd1ae, #8ab9ff);
  padding: 48px 16px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #213547;
}

.hero-band h1 {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 48px);
}

/* ===============================
   CONTAINER
   =============================== */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* ===============================
   GRID PRINCIPALE
   =============================== */
.lead-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
  padding: 48px 0;
}

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

/* ===============================
   PARTIE GAUCHE
   =============================== */
.lead-left h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.lead-left p.lead {
  color: var(--nx-muted);
  margin: 0 0 18px;
  max-width: 62ch;
}

/* ===============================
   CARTE MEDIA
   =============================== */
/* === Bloc média (vidéo ou image) === */
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  background: #000;
  width: 100%;
  max-width: 800px;   /* tu peux ajuster selon ton design */
  margin: 0 auto;
}

/* === Vidéo pleine largeur, responsive === */
.nx-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

/* === Bouton play (si tu veux le garder pour effet visuel, sinon supprime-le) === */
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease;
}

.play-btn svg {
  width: 70px;
  height: 70px;
  fill: #fff;
  transition: transform 0.3s ease;
}

.play-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

.play-btn:hover svg {
  transform: scale(1.1);
}


/* ===============================
   LISTE DE POINTS
   =============================== */
.bullets {
  margin: 18px 0 0;
  padding-left: 18px;
}

.bullets li {
  margin: 6px 0;
}

/* ===============================
   FORMULAIRE
   =============================== */
.form-card {
  background: #f7f7f8;
  border: 1px solid var(--nx-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.form-card h3 {
  text-align: center;
  color: var(--nx-accent);
  letter-spacing: 1px;
  font-size: clamp(16px, 2.2vw, 18px);
  margin: 0 0 14px;
}

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

.nx-form .row + .row {
  margin-top: 12px;
}

.nx-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nx-form label {
  font-weight: 700;
  font-size: 13px;
  color: #3b3b3b;
}

.nx-form label.required::after {
  content: " *";
  color: var(--nx-accent);
}

.nx-form input,
.nx-form select,
.nx-form textarea {
  border: 1px solid var(--nx-border);
  border-radius: 10px;
  padding: 12px 12px;
  font: inherit;
  background: #fff;
  outline: none;
}

.nx-form textarea {
  min-height: 96px;
  resize: vertical;
}

.nx-form .full {
  grid-column: 1 / -1;
}

.cta {
  width: 100%;
  border: 0;
  cursor: pointer;
  background: var(--nx-accent);
  color: #fff;
  font-weight: 800;
  padding: 14px 16px;
  border-radius: 999px;
  margin-top: 14px;
  letter-spacing: 0.3px;
  transition: transform 0.04s ease, background 0.2s ease;
}

.cta:active {
  transform: translateY(1px);
}

.cta:hover {
  background: var(--nx-accent-dark);
}

.disclaimer {
  margin-top: 10px;
  font-size: 12px;
  color: #777;
  text-align: center;
}

/* ===============================
   SECTIONS
   =============================== */
.section {
  padding: 56px 0;
  background: var(--nx-cream);
}

.section.alt {
  background: #fff;
}

.section h2 {
  margin: 0 0 22px;
  font-size: clamp(22px, 3vw, 30px);
}

/* ===============================
   DOMAINES D’EXPERTISE
   =============================== */
.expertise {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

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

.x-card {
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: 14px;
  padding: 18px 18px;
  box-shadow: var(--shadow);
}

.x-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--nx-bordeaux);
}

.x-card p {
  margin: 0;
  color: var(--nx-muted);
}

/* ===============================
   ETAPES (COMMENT ÇA MARCHE)
   =============================== */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.step {
  flex: 1 1 220px;
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.step .num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--nx-bordeaux);
  color: #fff;
  font-weight: 700;
  margin-right: 8px;
}

/* ===============================
   POURQUOI NOUS CHOISIR
   =============================== */
.why {
  columns: 2;
  column-gap: 32px;
}

@media (max-width: 800px) {
  .why {
    columns: 1;
  }
}

.why .w {
  break-inside: avoid;
  border-left: 4px solid var(--nx-bordeaux);
  padding: 8px 0 8px 12px;
  margin: 0 0 14px;
}

.why h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.why p {
  margin: 0;
  color: var(--nx-muted);
}

/* ===============================
   LOGOS CONFIANCE
   =============================== */
.trust {
  display: grid;
  place-items: center;
  gap: 20px;
}

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
}

.logo-wall img {
  width: 80%
  ;
  transition: transform 0.35s ease, filter 0.35s ease;
  cursor: zoom-in;
}

.logo-wall img:hover {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* ===============================
   FOOTER
   =============================== */
footer {
  background: #111;
  color: #e9e9ea;
  padding: 28px 0;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}

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

.chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #2b2b30;
  border-radius: 12px;
  color: #ccc;
  font-size: 14px;
}

.copyright {
  color: #9b9b9e;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  width: 100%;
}

/* =========================================================
   FOOTER
   ========================================================= */
/* ========= Footer – Variables minimales */
:root{
  --nx-accent:#74170F;
  --nx-text:#1b1b1b;
  --nx-muted:#575757;
  --nx-line:#e7e7e9;
  --nx-bg:#ffffff;
}

/* Contrainte container (si pas déjà défini dans ton site) */
.container{width:min(1200px,92%);margin-inline:auto}

/* ========= Bloc footer global */
.site-footer{
  background:#fff;
  border-top:1px solid var(--nx-line);
  color:var(--nx-text);
  font-size:0.95rem;
}

/* Top: grille 2 colonnes sur desktop */
.footer-top{
  display:grid;
  gap:28px;
  padding:28px 0 16px;
  align-items:start;
}
@media (min-width:820px){
  .footer-top{grid-template-columns:1.1fr .9fr}
}

/* ========= Colonne gauche : brand + newsletter */
.footer-brand{display:flex;flex-direction:column;gap:12px}
/* Footer logo – taille contrôlée, jamais étiré */
.site-footer .footer-logo{
  width: clamp(140px, 22vw, 260px); /* adapte-toi au viewport */
  height: auto;                     /* garde le ratio */
  max-height: 56px;                 /* borne verticale de sécurité */
  object-fit: contain;              /* au cas où une hauteur serait imposée ailleurs */
}

/* Option mobile : un peu plus petit */
@media (max-width: 520px){
  .site-footer .footer-logo{
    width: 180px;
    max-height: 48px;
  }
}


.footer-desc h3{
  margin:6px 0 2px;
  font-size:1.05rem;
  color:var(--nx-accent);
  font-weight:800;
}
.footer-desc p{margin:0;color:var(--nx-muted)}

/* Newsletter pill */
.newsletter-form{
  display:flex;align-items:center;gap:10px;
  background:#fff;border:2px solid var(--nx-line);
  border-radius:16px;padding:8px;
  width:100%;max-width:520px;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}
.newsletter-input{
  flex:1 1 auto;height:46px;border:0;outline:0;background:transparent;
  padding:0 12px;font-size:15px;color:var(--nx-text)
}
.newsletter-input::placeholder{color:#8a8a8a}
.newsletter-btn{
  width:52px;height:46px;border:0;border-radius:12px;
  background:var(--nx-accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.45);
  cursor:pointer;transition:transform .12s, background .2s
}
.newsletter-btn:hover{background:#5a110c;transform:translateY(-1px)}
.newsletter-btn:active{transform:translateY(0)}

/* ========= Colonne droite : coordonnées + liens + réseaux */
.footer-contact p{margin:.2rem 0;color:var(--nx-text)}
.footer-company{font-weight:700;margin-top:.25rem}

.footer-links{
  margin-top:12px;display:flex;flex-wrap:wrap;gap:14px;
}
.footer-links a{
  color:var(--nx-accent);text-decoration:none;font-weight:600;
}
.footer-links a:hover{text-decoration:underline}

/* Lien grisé (désactivé) */
.element{
  pointer-events:none;opacity:.5;filter:grayscale(100%);cursor:not-allowed
}

/* Réseaux sociaux */
.footer-socials-slot{margin-top:14px}
.socials{display:flex;gap:12px;flex-wrap:wrap}
.social-link{
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid var(--nx-line);
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  transition:transform .2s, box-shadow .2s
}
.social-link img{width:22px;height:22px;object-fit:contain}
.social-link:hover{transform:translateY(-2px);box-shadow:0 6px 14px rgba(0,0,0,.12)}

/* ========= Lien légal (icône bouton) */
.footer-legal{
  text-align:center;padding:10px 0 18px
}
.legal-link{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--nx-accent);color:#fff;border-radius:10px;
  padding:10px 14px;text-decoration:none;font-weight:700
}
.legal-link:hover{background:#5a110c}

/* ========= Bottom line */
.footer-bottom{
  border-top:1px solid var(--nx-line);
  text-align:center;color:#7a7a7a;font-size:.85rem;
  padding:14px 0 24px
}

/* ========= Responsive tweaks */
@media (max-width:480px){
  .newsletter-form{padding:6px}
  .newsletter-input{height:42px}
  .newsletter-btn{height:42px;width:48px;border-radius:10px}
}



/* === Réduction des espacements dans le footer === */
.site-footer {
  padding-top: 1rem;          /* réduit la marge globale */
}

.footer-top {
  gap: 12px;                  /* espace entre colonnes réduit */
  padding: 1rem 0;            /* moins de padding haut/bas */
}

/* Logo + newsletter plus rapprochés */
.footer-brand {
  gap: 6px;                   /* réduit l’espace interne */
}

/* Supprime les marges excessives */
.footer-desc h3,
.footer-desc p {
  margin: 0;
  line-height: 1.3;
}

.footer-contact p {
  margin: 2px 0;              /* réduit l’espacement vertical */
  line-height: 1.4;
}

/* Resserre le bloc liens + réseaux sociaux */
.footer-links {
  margin-top: 6px;
  gap: 10px;
}

.footer-socials-slot {
  margin-top: 8px;
}

/* Bottom compact */
.footer-bottom {
  padding: 0.6rem 0 1rem;
}

/* Option : ajustement responsive */
@media (max-width: 768px) {
  .footer-top {
    gap: 16px;
  }
  .footer-brand,
  .footer-contact {
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
  .footer-socials-slot {
    justify-content: center;
  }
}




/* === Mobile fix: conteneur + grille + espacements === */
@media (max-width: 768px){
  .container{ width:min(100%,94%); }

  .lead-grid{
    grid-template-columns: 1fr;   /* une seule colonne */
    gap: 16px;
    padding: 28px 0;
  }

  .section{ padding: 32px 0; }     /* sections plus compactes */

  /* Titres & paragraphe d’intro */
  .lead-left h2{
    font-size: 22px;               /* plus lisible sur mobile */
    margin-bottom: 8px;
  }
  .lead-left p.lead{
    font-size: 14.5px;
    margin-bottom: 12px;
    max-width: 100%;
  }

  /* Média (vidéo) */
  .media-card{
    max-width: 100%;
    border-radius: 12px;
  }
  .nx-video{
    aspect-ratio: 16 / 9;          /* contrôle la hauteur responsive */
    height: auto;
    border-radius: 12px;
    object-fit: cover;
  }
  .play-btn{ display:none; }       /* cache l’overlay “play” sur mobile */

  /* Liste de points */
  .bullets{ margin-top: 12px; padding-left: 16px; }
  .bullets li{ margin: 4px 0; }

  /* Formulaire: 1 colonne + anti-zoom iOS + zones touch confortables */
  .form-card{
    padding: 16px;
    border-radius: 12px;
  }
  .nx-form .row{ grid-template-columns: 1fr; }
  .nx-form input,
  .nx-form select,
  .nx-form textarea{
    font-size: 16px;               /* évite le zoom iOS */
    padding: 12px 12px;
  }
  .cta{
    padding: 12px 14px;
    font-size: 15px;
  }
}

/* Ultra-petits écrans */
@media (max-width: 380px){
  .hero-band{ padding: 32px 12px; }
  .hero-band h1{ font-size: 22px; }
}


/* ==== RESPONSIVE SMARTPHONE — OVERRIDES FORTS (à coller tout en bas) ==== */

/* Large mobiles / petites tablettes : on force la colonne unique + tailles lisibles */
@media (max-width: 1024px){
  .container{ width:min(100%,94%) !important; }

  .lead-grid{
    display:grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 28px 0 !important;
  }

  /* Titres & intro */
  .lead-left h2{
    font-size: 22px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }
  .lead-left p.lead{
    font-size: 14.5px !important;
    margin-bottom: 12px !important;
    max-width: 100% !important;
  }

  /* Média (vidéo ou image) */
  .media-card{
    max-width: 100% !important;
    border-radius: 12px !important;
    margin: 0 !important;
  }
  .nx-video{
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;   /* contrôle la hauteur */
    height: auto !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
  .play-btn{ display:none !important; }

  /* Liste à puces plus compacte */
  .bullets{ margin-top: 12px !important; padding-left: 16px !important; }
  .bullets li{ margin: 4px 0 !important; }

  /* Formulaire : 1 colonne + anti-zoom iOS */
  .form-card{
    padding: 16px !important;
    border-radius: 12px !important;
  }
  .nx-form .row{
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .nx-form input,
  .nx-form select,
  .nx-form textarea{
    font-size: 16px !important;        /* évite le zoom iOS */
    padding: 12px 12px !important;
  }
  .cta{
    padding: 12px 14px !important;
    font-size: 15px !important;
  }

  /* Sections plus compactes */
  .section{ padding: 32px 0 !important; }

  /* Grilles “expertise” / “why” plus lisibles si ça serre */
  .expertise{ grid-template-columns: 1fr !important; }
  .why{ columns: 1 !important; column-gap: 0 !important; }
}

/* Smartphones “purs” */
@media (max-width: 480px){
  .hero-band{ padding: 32px 12px !important; }
  .hero-band h1{ font-size: 22px !important; }

  /* Logos partenaires : évite la sur-largeur */
  .logo-wall img{ max-width: 100% !important; width: 100% !important; }
}



/* === Bouton large type "Soumettre mon projet" === */
.nx-big-btn {
  display: block;
  width: 100%;
  max-width: 700px;                 /* largeur max sur desktop */
  margin: 30px auto;
  background: #6e1a12;              /* ton bordeaux Nexora */
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 18px 20px;
  border-radius: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, transform 0.2s ease;
}

.nx-big-btn:hover {
  background: #5a120c;              /* teinte plus foncée au survol */
  transform: translateY(-2px);
}

.nx-big-btn:active {
  transform: translateY(0);
}

/* === Responsive : adapte la taille sur mobile === */
@media (max-width: 600px) {
  .nx-big-btn {
    max-width: 100%;
    font-size: 0.95rem;
    padding: 16px 14px;
    border-radius: 18px;
  }
}
