
/* =========================================================
   V1.19 — GABARIT GLOBAL UNIQUE
   Chargé après tous les anciens styles.
   Aucune page ne possède désormais sa propre largeur globale.
   ========================================================= */

:root{
  --site-frame: 1320px;
  --site-content: 1180px;
  --site-edge: 40px;
  --site-outer: #f7f4f0;
  --header-height: 82px;
}

/* The dark strips belong to the browser background. */
html{
  width:100%;
  min-height:100%;
  margin:0;
  background:var(--site-outer) !important;
  scrollbar-gutter:stable;
}

body{
  width:min(calc(100% - 80px), var(--site-frame)) !important;
  max-width:var(--site-frame) !important;
  min-height:100vh;
  margin:0 auto !important;
  padding:0 !important;
  background:var(--bg) !important;
  color:var(--text);
  overflow-x:hidden;
  box-shadow:0 0 0 1px rgba(255,255,255,.025);
}

/* Header/main/footer always occupy exactly the same frame. */
header,
main,
footer,
.v19-footer{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box;
}

header{
  min-height:var(--header-height) !important;
}

header .nav{
  min-height:var(--header-height) !important;
}

/* ONE content width everywhere: header, sections and footer. */
.container,
header .container,
header .nav.container,
main .container,
footer .container,
.v19-footer > .container{
  width:min(calc(100% - 40px), var(--site-content)) !important;
  max-width:var(--site-content) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
  box-sizing:border-box !important;
}

/* Sections share identical horizontal geometry. */
main > section{
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box;
}

/* Typography scale is global, not page dependent. */
h1{
  font-size:clamp(2.35rem, 4.25vw, 4.65rem) !important;
  line-height:1.05 !important;
  margin:.5rem 0 1.15rem !important;
}
h2{
  font-size:clamp(1.75rem, 2.8vw, 2.7rem) !important;
  line-height:1.12 !important;
}
h3{
  font-size:1.4rem !important;
  line-height:1.2 !important;
}
.lead{
  font-size:1.12rem !important;
  line-height:1.65 !important;
}

/* Standard vertical rhythm. */
section{
  padding-top:82px !important;
  padding-bottom:82px !important;
}
.hero{
  min-height:auto !important;
  padding-top:82px !important;
  padding-bottom:82px !important;
}
main > section:first-child{
  padding-top:82px !important;
}

/* Home keeps its two-column composition, but not a different scale. */
.hero-grid{
  width:100% !important;
  max-width:none !important;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr) !important;
  gap:52px !important;
}
.hero-photo,
.hero-photo img{
  min-height:500px !important;
}

/* Same footer component, same dimensions on every single page. */
.v19-footer{
  padding:34px 0 20px !important;
}
.v19-footer .footer-signature{
  width:100% !important;
  min-height:116px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) auto !important;
  gap:28px !important;
  align-items:center !important;
  padding-bottom:26px !important;
  box-sizing:border-box !important;
}
.v19-footer .footer-legal{
  width:100% !important;
  min-height:42px !important;
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:18px !important;
  text-align:center !important;
  box-sizing:border-box !important;
}

/* Tablet: the common frame remains consistent. */
@media(max-width:900px){
  body{
    width:min(calc(100% - 32px), var(--site-frame)) !important;
  }
  .container,
  header .container,
  header .nav.container,
  main .container,
  footer .container,
  .v19-footer > .container{
    width:min(calc(100% - 28px), var(--site-content)) !important;
  }
  .hero-grid,
  .profile,
  .grid-2,
  .contact-box,
  .cabinet-highlight,
  .persona-block{
    grid-template-columns:1fr !important;
  }
  .v19-footer .footer-signature{
    min-height:0 !important;
    grid-template-columns:1fr !important;
  }
  section,
  .hero,
  main > section:first-child{
    padding-top:64px !important;
    padding-bottom:64px !important;
  }
}

/* Mobile: no decorative side bands, maximum usable space. */
@media(max-width:600px){
  body{
    width:100% !important;
    max-width:none !important;
    box-shadow:none !important;
  }
  .container,
  header .container,
  header .nav.container,
  main .container,
  footer .container,
  .v19-footer > .container{
    width:calc(100% - 28px) !important;
  }
  h1{
    font-size:2.45rem !important;
  }
  h2{
    font-size:1.9rem !important;
  }
}

.bandeau-home h1{font-size:clamp(1.5rem,2.6vw,2rem) !important;line-height:1.3 !important;margin:0 auto 10px !important;}

/* Mobile : jamais de décalage horizontal de la page */
html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
.site-bandeau { max-width: 100%; }
