/* =========================
   AIR COGAB / Gabontransmoney - Modern override (SAFE)
   -> ne change pas ta structure, seulement le rendu
   ========================= */

:root{
  --bg: #0b0f17;
  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --stroke: rgba(255,255,255,.14);

  --brand: #2ecc71; /* vert */
  --brand2:#2d9cdb; /* bleu */
  --accent:#f2c94c; /* jaune */

  --radius: 16px;
  --radius2: 22px;

  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --shadow2: 0 10px 30px rgba(0,0,0,.25);

  --container: 1200px;
}

/* reset léger sans casser */
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(46,204,113,.18), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(45,156,219,.14), transparent 60%),
    radial-gradient(1000px 500px at 70% 100%, rgba(242,201,76,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;

  /* footer non bloquant */
  display:flex;
  flex-direction:column;
}

/* liens */
a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .92; }

/* =========================
   HEADER / NAV
   ========================= */
header{
  position: sticky;
  top: 0;
  z-index: 50;

  width: 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;

  padding: 14px 18px;
  background: rgba(11,15,23,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

header > div{ display:flex; align-items:center; gap:12px; }

.logo{
  width: auto;
  height: 46px !important;
  border-radius: 12px;
  object-fit: contain;
  padding: 6px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow2);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.logo:hover{
  transform: translateY(-1px);
  border-color: rgba(46,204,113,.35);
  background: rgba(46,204,113,.10);
}

.titre{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap: 14px;
  background: transparent !important;
}

.nav-list{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.nav-list .list-items{
  display:inline-flex;
  padding: 0 !important;
  margin: 0;
}

.titre a{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-size: 13px !important;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text) !important;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.titre a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-1px);
  color: var(--text) !important;
}

.menu{
  display:none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.menu-line{
  background: rgba(255,255,255,.88) !important;
}

/* ton h2 titre */
.titre h2{
  margin: 0 0 0 8px !important;
  font-family: Inter, sans-serif !important;
  font-style: normal !important;
  font-weight: 700;
  color: var(--text) !important;
  font-size: 14px !important;
  opacity: .9;
}

/* =========================
   MAIN / LAYOUT
   ========================= */
main{
  background: transparent !important;
  height: auto !important; /* on supprime le 692px */
  overflow: visible !important;
  flex: 1; /* pousse footer en bas */
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

/* =========================
   FOOTER (non bloquant)
   ========================= */
footer{
  position: relative !important; /* override le fixed */
  height: auto !important;
  padding: 14px 0 16px;
  background: rgba(0,0,0,.35) !important;
  border-top: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}

#copyrightEtIcons{
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  padding: 0 !important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

#copyright{
  width:auto !important;
  color: var(--muted) !important;
  font-size: 12px;
}

#icons{
  width:auto !important;
  margin: 0 !important;
  display:flex;
  align-items:center;
  gap: 10px;
}
#icons a{
  padding: 10px !important;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
#icons a:hover{
  transform: translateY(-1px) scale(1.02) !important;
}

/* =========================
   PAGE index.html (ton bloc .total)
   ========================= */
.total{
  height: auto !important;
  min-height: 72vh;
  gap: 16px;
  align-items: stretch;
}

.contents{
  width: 55% !important;
  border-radius: var(--radius2);
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(46,204,113,.10), rgba(45,156,219,.08)),
    rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}

.paint{
  width: 45% !important;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  padding: 14px 14px 18px;
  height: auto !important;
}

/* bandeau défilant */
#bubble{
  position: relative;
  width: 100%;
  height: 54px !important;
  margin: 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  display:flex;
  align-items:center;
  justify-content:center;
}
.messagedefilant{
  width: 100% !important;
  max-width: none !important;
  height: 54px !important;
  margin: 0 !important;
}
.messagedefilant div span{
  font-size: 16px !important;
  color: var(--text);
  opacity: .92;
}

/* Carte “Estimation des frais” */
.acceuil{
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.03) !important;
  box-shadow: none !important;
  border-radius: var(--radius2);
  padding: 14px;
}

.acceuil h3{
  color: var(--text) !important;
  font-style: normal !important;
  margin: 4px 0 12px !important;
}

/* inputs/select */
#paysO, #paysD, .btn-estimate{
  width: 100% !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.06) !important;
  color: var(--text) !important;
  padding: 12px 12px !important;
  font-size: 14px !important;
  outline: none !important;
}
#paysO, #paysD{ margin: 8px 0 10px !important; }
.btn-estimate{ margin: 8px 0 10px !important; border-bottom: 1px solid rgba(255,255,255,.14) !important; }

#paysO option, #paysD option{
  color: #111;
}

/* bouton submit */
.estimer{
  width: 100% !important;
  margin: 10px 0 0 !important;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  color: #0b0f17;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 25px rgba(46,204,113,.18);
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.estimer:hover{ transform: translateY(-1px); filter: brightness(1.03); }

/* résultats */
.result-estimer{
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
.estimation-div{
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.estimation-div > div{
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.04) !important;
  box-shadow: none !important;
}

/* bloc boutons */
.cont3{
  gap: 10px;
  margin: 14px 0 0;
}
#cancel, #suivant{
  width: auto !important;
  min-width: 140px;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.06) !important;
  color: var(--text) !important;
  cursor: pointer;
}
#suivant{
  background: rgba(46,204,113,.14) !important;
  border-color: rgba(46,204,113,.35) !important;
}

/* =========================
   validation.html - cartes propres
   ========================= */
.carteVisa, .paypal-div{
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: var(--radius2) !important;
  background: rgba(255,255,255,.04) !important;
  box-shadow: var(--shadow) !important;
}

.carteVisa-div{
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding: 10px 8px;
}
.carteVisa-div:last-child{ border-bottom: 0; }

.validation-form input,
.carteVisa input,
.paypal-div input{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
}

/* === THEME IMAGE RESTORE (TOP PRIORITY) === */
.contents{
  position: relative !important;
  overflow: hidden !important;

  /* Image + voile (en 2 couches) */
  background-image:
    linear-gradient(140deg, rgba(255,255,255,.35), rgba(255,255,255,.10)),
    url("/static/themeGtm.jpg") !important;

  background-repeat: no-repeat !important;
  background-position: center right !important;
  background-size: cover !important;

  /* IMPORTANT: ne pas utiliser background: ici, sinon ça écrase l'image */
  background-color: transparent !important;
}

/* Voile léger (ne doit PAS cacher l'image) */
.contents::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(255,255,255,.10) !important; /* 0.06 à 0.18 max */
  pointer-events:none;
  z-index: 0;
}

/* Tout le contenu au-dessus du voile */
.contents > *{
  position: relative;
  z-index: 1;
}


/* =========================
   Responsive
   ========================= */
@media (max-width: 900px){
  .menu{ display:flex; }
  .nav-list{
    display:none;
    position:absolute;
    top: 62px;
    right: 12px;
    width: min(420px, calc(100% - 24px));
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: rgba(11,15,23,.92);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav-list.active{ display:flex; }

  .total{
    flex-direction: column;
  }
  .contents, .paint{
    width: 100% !important;
  }
  .estimation-div{
    grid-template-columns: 1fr !important;
  }
}


/* =========================
   OVERRIDE CLAIR (SAFE) - à coller à la fin
   ========================= */

:root{
  /* Fond général clair */
  --bg: #f6f7fb;

  /* Surfaces glass claires */
  --surface: rgba(255,255,255,.62);
  --surface2: rgba(255,255,255,.78);

  /* Texte sombre lisible */
  --text: rgba(15, 18, 25, .92);
  --muted: rgba(15, 18, 25, .62);

  /* Bordures glass */
  --stroke: rgba(15, 18, 25, .10);

  /* Accent doux (pas vert sombre) */
  --brand: #6aa8ff;   /* bleu doux */
  --brand2:#7ee2c7;   /* menthe claire */
  --accent:#ffd36b;   /* jaune doux */

  --shadow: 0 18px 60px rgba(15,18,25,.10);
  --shadow2: 0 10px 30px rgba(15,18,25,.10);
}

/* Fond global plus clair */
/*
body{
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(106,168,255,.25), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(126,226,199,.22), transparent 60%),
    radial-gradient(900px 500px at 70% 100%, rgba(255,211,107,.18), transparent 60%),
    var(--bg) !important;
  color: var(--text) !important;
}*/

/* Header clair glass */
header{
  background: rgba(255,255,255,.70) !important;
  border-bottom: 1px solid var(--stroke) !important;
  backdrop-filter: blur(14px);
}

/* Liens nav en texte sombre */
.titre a{
  color: var(--text) !important;
}
.titre a:hover{
  background: rgba(15,18,25,.05) !important;
  border-color: rgba(15,18,25,.10) !important;
}

/* Menu burger (traits sombres) */
.menu{
  background: rgba(255,255,255,.65) !important;
  border: 1px solid rgba(15,18,25,.10) !important;
}
.menu-line{
  background: rgba(15,18,25,.75) !important;
}

/* MAIN: laisse respirer */
main{
  background: transparent !important;
}

/* Cartes gauche/droite glass claires */
.contents,
.paint{
  border: 1px solid rgba(15,18,25,.10) !important;
  box-shadow: var(--shadow) !important;
}

/* =========================
   IMPORTANT: garder l'image theme visible
   ========================= */

/* 1) Mets un chemin fiable vers l'image (voir note plus bas) */
.contents{
  background-repeat: no-repeat !important;
  background-position: center right !important;
  background-size: cover !important;
   
}


/* 2) Overlay CLAIR (au lieu de noir) pour lisibilité SANS assombrir */
.contents::before{
  background: rgba(255,255,255,.22) !important; /* ajuste 0.12 à 0.30 */
}

/* Bandeau défilant: clair + texte sombre */
#bubble{
  background: rgba(255,255,255,.55) !important;
  border-bottom: 1px solid rgba(15,18,25,.10) !important;
}
.messagedefilant div span{
  color: var(--text) !important;
  opacity: .88 !important;
}

/* Carte "Estimation des frais" */
.acceuil{
  background: rgba(255,255,255,.70) !important;
  border: 1px solid rgba(15,18,25,.10) !important;
}
.acceuil h3{
  color: var(--text) !important;
}

/* Inputs/select : fond blanc translucide + texte sombre */
#paysO, #paysD, .btn-estimate{
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(15,18,25,.12) !important;
  color: var(--text) !important;
}

/* Bouton submit: dégradé clair */
.estimer{
  color: rgba(15,18,25,.92) !important;
  background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
  box-shadow: 0 10px 25px rgba(106,168,255,.18) !important;
}

/* Boutons bas */
#cancel, #suivant{
  background: rgba(255,255,255,.70) !important;
  border: 1px solid rgba(15,18,25,.12) !important;
  color: var(--text) !important;
}
#suivant{
  background: rgba(126,226,199,.35) !important;
  border-color: rgba(126,226,199,.55) !important;
}

/* Footer plus clair */
footer{
  background: rgba(255,255,255,.60) !important;
  border-top: 1px solid rgba(15,18,25,.10) !important;
}
#copyright{
  color: rgba(15,18,25,.70) !important;
}
#icons a{
  background: rgba(255,255,255,.70) !important;
  border: 1px solid rgba(15,18,25,.10) !important;
  color: rgba(15,18,25,.80) !important;
}

/* Menu mobile dropdown clair */
@media (max-width: 900px){
  .nav-list{
    background: rgba(255,255,255,.86) !important;
    border: 1px solid rgba(15,18,25,.12) !important;
  }
}

/* =========================================
   FIX: ne pas écraser le layout "page-shell"
   ========================================= */

/* ton ancien CSS avait un style global sur section */
section{
  width: auto !important;
  margin: 0 !important;
}

/* Quand on est dans le layout grid, .paint ne doit PAS être 45% */
.page-shell .paint{
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Et on empêche .contents/.total d'interférer si la page n'en a pas besoin */
.page-shell .contents,
.page-shell .total{
  width: auto !important;
  height: auto !important;
}
.page-shell .acceuil{
  width: min(420px, 100%) !important;
  margin: 0 auto 14px auto !important;
}

.page-shell{
  grid-template-columns: minmax(720px, 820px) 1fr !important;
}

/* =========================
   CARTES: chiffres lisibles sur une ligne
   ========================= */

#estimate-form .estimation-div > div p{
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  column-gap: 14px !important;

  white-space: nowrap !important;
}

/* Valeurs bien visibles */
#estimate-form .estimation-div > div p b,
#estimate-form .estimation-div > div p strong{
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #000 !important;
  text-align: right !important;
}
#estimate-form .estimation-div > div{
  padding: 18px 20px !important;
}
@media (max-width: 980px){
  .page-shell{
    grid-template-columns: 1fr !important;
  }
}

/* =========================
   THEME GLOBAL – FULL PAGE
   ========================= */

html, body {
  min-height: 100%;
}

body {
  background-image: url("/static/themeGtm.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed; /* effet premium */
}

/* overlay léger pour lisibilité (PAS gris sale) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.55); /* ajuste 0.45–0.65 */
  z-index: 0;
  pointer-events: none;
}

/* tout le contenu AU-DESSUS du thème */
header, main, footer {
  position: relative;
  z-index: 1;
}

/* =========================
   SUPPORT TECHNIQUE – UI PRO
   ========================= */

.technical-support{
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

/* Carte du formulaire */
#soppPart{
  width: 100%;
  max-width: 720px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 26px;
  padding: 36px 32px;
  box-shadow: 0 22px 55px rgba(0,0,0,.14);
}

/* Titre */
#soppPart h3{
  font-size: 20px !important;
  font-weight: 800;
  color: #0f172a !important;
  margin-bottom: 24px;
}

/* Champs */
#soppPart .pied{
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  color: #111;
  outline: none;
}

/* Focus */
#soppPart .pied:focus{
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* Label */
#soppPart label{
  font-weight: 700;
  color: #0f172a;
  display: block;
  margin-bottom: 8px;
}

/* Textarea */
#soppPart textarea{
  resize: vertical;
  min-height: 180px;
}

/* Bouton envoyer */
#soppPart button{
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  border: none;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;

  background: linear-gradient(
    90deg,
    rgba(59,130,246,.95),
    rgba(16,185,129,.9)
  );
  color: #0b0f17;

  box-shadow: 0 14px 32px rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease;
}

/* Hover bouton */
#soppPart button:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(0,0,0,.22);
}

/* Mobile */
@media (max-width: 600px){
  #soppPart{
    padding: 28px 20px;
  }

  #soppPart h3{
    font-size: 18px !important;
  }
}

/* =========================================================
   RESPONSIVE PATCH (UNIVERSAL) — iPhone / Android / iPad
   À COLLER TOUT EN BAS de styles_modern.css
   ========================================================= */

/* 0) Base saine */
html, body{ width:100%; overflow-x:hidden; }
img{ max-width:100%; height:auto; }
*{ box-sizing:border-box; }

/* 1) Stop hauteurs fixes destructrices */
main{
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
}
footer{
  position: relative !important;
  height: auto !important;
}

/* 2) STOP section bloquée à 100px */
section{
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* 3) Header responsive + logo propre */
header{
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px !important;
}
.logo{
  height: 46px !important;
  width: auto !important;
  max-width: 180px !important;
  margin: 0 !important;
}

/* 4) NAV : desktop ok / mobile menu dropdown */
.nav-list{
  flex-wrap: wrap;
  gap: 6px !important;
}

/* 5) Layout principal (page-shell + total) : auto -> grid responsive */
.page-shell{
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 18px 14px !important;
  display: grid !important;
  grid-template-columns: minmax(320px, 520px) 1fr !important;
  gap: 16px !important;
}

.total{
  width: 100% !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
  align-items: start !important;
}

/* 6) colonnes */
.contents, .paint{
  width: 100% !important;
  height: auto !important;
  min-height: 260px;
}

/* 7) Cartes résultats : 2 colonnes → 1 colonne sur mobile */
.estimation-div{
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

@media (max-width: 980px){
  .page-shell{
    grid-template-columns: 1fr !important;
  }
  .total{
    grid-template-columns: 1fr !important;
  }
  .estimation-div{
    grid-template-columns: 1fr !important;
  }
}

/* 8) Form / inputs doivent prendre toute la largeur */
.pied,
#paysO, #paysD, .btn-estimate,
.estimation-div input, .estimation-div select,
#amount{
  width: 100% !important;
  max-width: 100% !important;
}

/* 9) STOP marges fixes qui cassent */
.acceuil{
  width: min(420px, 92%) !important;
  margin: 12px auto !important;
}

/* 10) Boutons : pas de width en % (12% c’est minuscule sur mobile) */
#cancel, #suivant{
  width: auto !important;
  min-width: 140px !important;
}

/* 11) Texte défilant : largeur pleine sur mobile */
.messagedefilant{
  width: min(680px, 92%) !important;
}

/* 12) iPhone Safari: évite les zooms sur inputs */
@media (max-width: 600px){
  input, select, textarea{
    font-size: 16px !important;
  }
}
/* =========================================================
   NAVBAR MOBILE — FIX DEFINITIF
   ========================================================= */

/* Desktop */
.nav-list{
  display: flex;
  gap: 8px;
}

/* Burger caché desktop */
.menu{
  display: none;
}

/* ================= MOBILE ================= */
@media (max-width: 900px){

  /* Header */
  header{
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  /* Burger visible */
  .menu{
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  /* Menu caché par défaut */
  .nav-list{
    display: none !important;
    position: absolute;
    top: 64px;
    right: 12px;

    width: calc(100% - 24px);
    max-width: 420px;

    flex-direction: column;
    gap: 0;

    background: rgba(255,255,255,.96);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,.18);
    padding: 10px;

    z-index: 10000;
  }

  /* Menu OUVERT */
  .nav-list.active{
    display: flex !important;
  }

  .nav-list .list-items{
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,.08);
  }

  .nav-list .list-items:last-child{
    border-bottom: none;
  }

  .nav-list a{
    width: 100%;
    padding: 14px 16px;
    font-size: 15px !important;
    color: #111 !important;
  }
}

/* =========================================================
   FIX GLOBAL RESPONSIVE (menu + layout + section 100px)
   A COLLER TOUT EN BAS de styles_modern.css
   ========================================================= */

/* 1) STOP la règle destructrice "section width:100px" du styles.css */
section{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* 2) Le conteneur principal doit être fluide */
main.main-shell{
  width: 100% !important;
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 18px 12px !important;
  height: auto !important;
  overflow: visible !important;
}

/* 3) Ton layout page-shell doit passer en 1 colonne sur tablette/mobile */
.page-shell{
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
}

/* iPad / tablette -> 1 colonne plus tôt (ton écran est à ~898px) */
@media (max-width: 1100px){
  .page-shell{
    grid-template-columns: 1fr !important;
  }
  .page-theme{
    min-height: 260px !important;
    width: 100% !important;
  }
  .page-left{
    width: 100% !important;
  }
}

/* 4) MENU BURGER : visible + bien dessiné */
.menu{
  display: none; /* desktop */
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  background: rgba(255,255,255,.75) !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 5px !important;
  cursor: pointer !important;
}

.menu-line{
  width: 22px !important;
  height: 2px !important;
  background: rgba(0,0,0,.78) !important;
  margin: 0 !important;
  border-radius: 4px !important;
}

/* 5) NAV responsive : dropdown propre */
@media (max-width: 1100px){
  .menu{ display: flex !important; }

  header{
    position: sticky;
    top: 0;
    z-index: 9999;
  }

  /* cache le menu par défaut */
  .nav-list{
    display: none !important;
    position: absolute !important;
    top: 64px !important;
    right: 12px !important;

    width: calc(100% - 24px) !important;
    max-width: 420px !important;

    flex-direction: column !important;
    gap: 0 !important;

    background: rgba(255,255,255,.96) !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 45px rgba(0,0,0,.18) !important;
    padding: 10px !important;
    z-index: 10000 !important;
  }

  /* quand on ouvre */
  .nav-list.active{
    display: flex !important;
  }

  .nav-list .list-items{
    width: 100% !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(0,0,0,.08) !important;
  }
  .nav-list .list-items:last-child{
    border-bottom: none !important;
  }

  .titre a{
    width: 100% !important;
    padding: 14px 14px !important;
    font-size: 15px !important;
    color: #111 !important;
  }
}


/* =========================================================
   DESKTOP FIX ONLY — utilise mieux l’écran + colonne gauche plus large
   (NE TOUCHE PAS LE RESPONSIVE)
   À coller TOUT EN BAS de style_modern.css
   ========================================================= */
@media (min-width: 1101px){

  /* 1) On agrandit le "container" desktop (plus de vide à gauche/droite) */
  :root{
    --container: 1480px; /* tu peux monter à 1600 si tu veux */
  }

  /* 2) main occupe plus de place (sans casser mobile) */
  main{
    width: min(var(--container), calc(100% - 40px)) !important;
    margin: 0 auto !important;
    padding: 18px 0 36px !important;
  }

  /* 3) Layout principal : on laisse les colonnes respirer */
  .total{
    display: grid !important;
    grid-template-columns: minmax(680px, 860px) 1fr !important;
    gap: 22px !important;
    align-items: start !important;
  }

  /* 4) IMPORTANT : on enlève les widths 45% / 55% qui compressent */
  .total .paint,
  .total .contents{
    width: 100% !important;
  }

  /* 5) Sur index2 (où il n’y a que .paint), on la rend plus large et bien à gauche */
  main > .paint{
    width: min(920px, 100%) !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* 6) La grille des 4 cartes doit prendre toute la largeur disponible */
  .paint .estimation-div{
    width: 100% !important;
    max-width: none !important;
    justify-content: stretch !important;
    grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
    gap: 16px !important;
  }

  /* 7) Les cartes utilisent tout l’espace (pas de marge auto) */
  .paint .estimation-div > div{
    width: 100% !important;
    margin: 0 !important;
  }

  /* 8) STOP le vieux "section width:100px" (desktop uniquement) */
  section{
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
}

/* =========================================================
   DESKTOP FIX (index2) : colonne gauche + largeur réelle
   -> ne touche PAS le responsive (max-width: 1100px)
   ========================================================= */

@media (min-width: 1101px){

  /* 1) STOP la règle globale section{width:100px} (style.css) */
  section.page-left,
  section.page-theme{
    width: 100% !important;
    max-width: none !important;
  }

  /* 2) Le conteneur principal utilise plus de largeur et s’aligne à gauche */
  main.main-shell{
    width: calc(100% - 24px) !important;
    max-width: 1600px !important;  /* augmente si tu veux */
    margin: 0 auto !important;
    padding: 18px 12px !important;
  }

  /* 3) Grid global : gauche flexible, droite FIXE (ta partie droite ne change pas) */
  .page-shell{
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;

    display: grid !important;
    grid-template-columns: minmax(640px, 1fr) 676px !important; /* droite = ton width actuel */
    gap: 22px !important;
    align-items: start !important;
  }

  /* 4) Colonne gauche prend tout l’espace dispo */
  .page-left{
    width: 100% !important;
  }

  /* 5) Colonne droite reste identique */
  .page-theme{
    width: 676px !important;
  }

  /* 6) Résultats : enlève les max-width qui compressent */
  #estimate-form .estimation-div{
    width: 100% !important;
    max-width: none !important;
    grid-template-columns: 1fr 1fr !important;
  }

  /* 7) Autorise le texte à respirer */
  #estimate-form .estimation-div > div p,
  #estimate-form .estimation-div > div p *{
    white-space: normal !important;
  }
}
