header.site-header {
  position: sticky;
  top: 0;
  isolation: isolate;
  color: white;
  background: var(--header-blue);
  border-bottom: 1px solid #ffffff36;
}
.site-header:not(.site-header-home)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/optimized/brouillon-bandeau-887.webp") center / cover no-repeat;
  opacity: .15;
}
.site-header { overflow: clip; }
.site-header .site-header-top { width: 94%; min-height: clamp(92px, 6.8vw, 130px); }
.site-header .site-header-logo img { width: clamp(136px, 16.7vw, 320px); }
.site-header .site-header-services a { min-height: clamp(46px, 3.1vw, 59px); }
.site-header-tagline {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  font-size: clamp(.65rem, .86vw, 1rem);
  font-style: italic;
  font-weight: 550;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}
.site-header-tagline span { display: block; }
.site-header .site-header-assistance { margin-right: clamp(0px, 3.5vw, 66px); }

.site-header-top {
  width: min(1320px, 92%);
  min-height: 90px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.site-header-contact { justify-self: start; padding-block: 10px; font-size: .9rem; text-decoration: none; }
.site-header-contact:hover { text-decoration: underline; }
.site-header-logo img { width: clamp(116px, 14vw, 184px); height: auto; }
.site-header .button.site-header-assistance {
  justify-self: end;
  min-height: 40px;
  padding: 6px 15px;
  border: 1px solid #ffdc5c9c;
  border-radius: 6px;
  font-size: .875rem;
  background: #092a3833;
  color: #ffe493;
}
.site-header .button.site-header-assistance:hover { filter: brightness(1.08); }

.site-header-services {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: clamp(8px, 1vw, 20px);
  padding-inline: 2%;
  border-top: 1px solid #ffffff40;
  background: #2b5666;
}

.site-header-services a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-size: clamp(.65rem, 1.08vw, .875rem);
  font-weight: 550;
  text-transform: uppercase;
  text-decoration: none;
}

.site-header-services a:hover,
.site-header-services [aria-current="page"],
.site-header-contact[aria-current="page"] {
  box-shadow: inset 0 -2px #ffcf4d;
}

@media (max-width: 760px) {
  .site-header-top { min-height: 76px; }
  .site-header-services a { min-height: 36px; }
}
@media (max-width: 480px) {
  .site-header .site-header-top { padding-block: 10px; }
  .site-header .site-header-logo { grid-column: 2; grid-row: 1; }
  .site-header .site-header-assistance { grid-column: 3; grid-row: 1; margin-right: 0; padding-inline: 8px; }
  .site-header-tagline { grid-column: 1 / -1; justify-self: center; text-align: center; }
}

footer.site-footer {
  background: linear-gradient(110deg, #30778d, #364f59);
  color: white;
  padding: clamp(58px, 4.6vw, 88px) 0 30px;
  clip-path: polygon(0 48px, 11.6% 0, 100% 48px, 100% 100%, 0 100%);
}
.site-footer-main {
  width: 94%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 96px);
}
.site-footer-logo img { width: clamp(128px, 15vw, 285px); height: auto; }
.site-footer-navigation nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px clamp(10px, 1vw, 20px);
}
.site-footer-navigation a, .site-footer-credit {
  font-size: clamp(.7rem, .85vw, 1rem);
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.site-footer-navigation a { padding-block: 4px; text-decoration: none; }
.site-footer-navigation a:hover { text-decoration: underline; }
.site-footer-legal { width: fit-content; max-width: 100%; margin: 14px 0 0 auto; padding: 12px 0 0 clamp(14px, 6vw, 120px); border-top: 2px solid #eaf2f5; }
.site-footer-credit { max-width: none; margin: clamp(25px, 2.6vw, 50px) 4% 0; text-align: center; font-size: clamp(.65rem, .8vw, .9rem); }
@media (max-width: 600px) {
  .site-footer-main { grid-template-columns: 1fr; justify-items: center; }
  .site-footer-navigation nav { justify-content: center; }
  .site-footer-legal { margin-inline: auto; padding-left: 0; }
}

.site-footer-credit { font-weight: 500; }
.contact-hours { margin: 12px 0 0; }
.footer-contact .contact-hours, .web-contact .contact-hours { margin-top: 0; }
@media (min-width: 601px) {
  .site-footer-logo { margin-inline-start: clamp(10px, 1.5vw, 24px); }
}

main p, main blockquote, main li {
  text-align: justify;
  hyphens: auto;
}
main .footer-contact p { text-align-last: center; }
main .hero p { text-align-last: right; }
main .web-preview-options li { text-align: start; }


header.site-header { overflow: visible; z-index: 2; }
.site-header-actions { grid-area: 1 / 3; justify-self: end; display: flex; align-items: center; gap: clamp(6px, 1vw, 16px); }
.site-header .site-header-assistance { margin-right: 0; white-space: nowrap; }
.site-search { position: relative; }
.site-search summary { display: grid; place-items: center; width: 40px; height: 42px; color: white; cursor: pointer; list-style: none; }
.site-search summary::-webkit-details-marker { display: none; }
.site-search summary span { position: relative; width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 50%; }
.site-search summary span::after { content: ""; position: absolute; width: 10px; height: 2px; background: currentColor; right: -7px; bottom: -3px; transform: rotate(45deg); border-radius: 2px; }
.site-search-panel { position: absolute; top: calc(100% + 8px); right: 0; width: min(300px, 68vw); padding: 16px; color: #143845; background: white; border: 1px solid #c5d6dd; border-radius: 10px; box-shadow: 0 12px 28px #092a3840; }
.site-search-panel label { display: block; font-weight: 650; }
.site-search-panel input { width: 100%; margin-top: 8px; padding: 8px; border: 1px solid #8eaeb9; border-radius: 5px; font: inherit; }
.site-search-panel p { margin: 8px 0 0; font-size: .85rem; }
.site-search-panel ul { list-style: none; padding: 0; margin: 0; }
.site-search-panel a { display: block; padding: 5px 0; }
@media (max-width: 480px) {
  .site-header-actions { gap: 3px; }
  .site-search summary { width: 24px; }
  .site-search summary span { width: 14px; height: 14px; }
  .site-search summary span::after { width: 7px; right: -5px; bottom: -2px; }
}

/* Navigation mobile compacte, inspirée de la référence fournie. */
.mobile-menu-toggle, .site-header-services .mobile-contact-link { display: none; }
@media (max-width: 760px) {
  header.site-header, header.site-header.site-header-home { position: sticky; top: 0; z-index: 30; background: linear-gradient(110deg,#173d4c,#426773); }
  .site-header .site-header-top, .home-header-pinned .site-header .site-header-top { width: 100%; min-height: 88px; padding: 18px 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px; }
  .site-header .site-header-logo { grid-area: 1 / 1; justify-self: start; }
  .site-header .site-header-logo img { width: 154px; height: auto; }
  .site-header-tagline { display: none; }
  .site-header .mobile-menu-toggle { display: flex; grid-area: 1 / 2; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 46px; height: 44px; padding: 10px; color: inherit; background: #ffffff0a; border: 1px solid #ffffff66; border-radius: 6px; cursor: pointer; }
  .mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .site-header-actions { display: none; }
  .site-header .site-header-services { display: none; }
  .site-header.mobile-menu-open { max-height: 100dvh; overflow-y: auto; }
  .site-header.mobile-menu-open .site-header-actions { display: flex; grid-area: 2 / 1 / 3 / -1; justify-self: stretch; justify-content: space-between; padding-top: 4px; }
  .site-header.mobile-menu-open .site-header-services { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; padding: 10px 24px 22px; background: transparent; }
  .site-header .site-header-services a, .home-header-pinned .site-header .site-header-services a { min-height: 44px; font-size: .8rem; padding: 10px 0; border-bottom: 1px solid #ffffff20; }
  .site-header-services .mobile-contact-link { display: flex; }
  .site-search-panel { right: auto; left: 0; width: min(300px,80vw); z-index: 2; }
  .home-header-pinned .mobile-menu-toggle { border-color: #15384666; }
  .inner-page .inner-grid { padding-block: 30px 96px; }
  .inner-page .inner-hero h1 { font-size: clamp(1.8rem,7.7vw,2.3rem); line-height: 1.12; font-weight: 750; letter-spacing: -.025em; }
  .inner-page .inner-hero .lead { font-size: .98rem; line-height: 1.65; text-align: left; hyphens: none; }
  .inner-page .inner-hero:has(.inner-grid)::after { background: linear-gradient(90deg,#153846ed,#153846b8 55%,#15384666); }
}

/* En-tête blanc après le bandeau principal, bureau et mobile. */
header.site-header { transition: background-color .45s ease, color .45s ease, box-shadow .45s ease, border-color .45s ease; }
.site-header::before { transition: opacity .45s ease; }
.site-header .site-header-services, .site-header .site-header-services a, .site-header .site-search summary,
.site-header .mobile-menu-toggle, .site-header .site-header-assistance { transition: background-color .45s ease, color .45s ease, border-color .45s ease; }
.site-header .site-header-logo img { transition: filter .45s ease; }
header.site-header.header-white { background: var(--header-blue); color: #153846; border-bottom-color: #d9e4e9; box-shadow: 0 4px 18px #092a3814; }
header.site-header.header-white::before { opacity: 0; }
.header-white .site-header-services { background: #fff; border-top-color: #e5edf0; }
.header-white .site-header-services a { color: #153846; border-bottom-color: #e5edf0; }
.header-white .site-header-logo img { filter: brightness(0) saturate(100%) invert(18%) sepia(23%) saturate(1400%) hue-rotate(153deg); }
.header-white .site-search summary { color: #153846; }
.header-white .mobile-menu-toggle { color: #153846; border-color: #15384666; background: transparent; }
.header-white .button.site-header-assistance { color: #153846; background: var(--cta-gradient, #ffcf4d); border-color: #ffcf4d; }
@media (prefers-reduced-motion: reduce) {
  header.site-header, .site-header::before, .site-header .site-header-services, .site-header .site-header-services a,
  .site-header .site-search summary, .site-header .mobile-menu-toggle, .site-header .site-header-assistance, .site-header .site-header-logo img { transition: none; }
}

header.site-header::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
header.site-header.header-white::after { opacity: 1; }
@media (max-width:760px) { header.site-header.header-white { background: linear-gradient(110deg,#173d4c,#426773); } }
@media (prefers-reduced-motion:reduce) { header.site-header::after { transition: none; } }

/* Accordéons du pied de page : uniquement sur téléphone. */
.footer-mobile-group { display: none; }
@media (max-width: 760px) {
  .site-footer-main { width: 88%; grid-template-columns: minmax(0,1fr); gap: 24px; }
  .site-footer-logo { margin-inline: 0; justify-self: start; }
  .site-footer-logo img { width: 145px; filter: none; }
  .site-footer-navigation { width: 100%; }
  .site-footer-navigation > nav { display: none; }
  .footer-mobile-group { display: block; border-top: 1px solid #ffffff66; }
  .footer-mobile-group:last-child { border-bottom: 1px solid #ffffff66; }
  .footer-mobile-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding: 16px 0; cursor: pointer; list-style: none; font-size: .75rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
  .footer-mobile-group > summary::-webkit-details-marker { display: none; }
  .footer-mobile-group > summary::after { content: ""; width: 7px; height: 7px; flex: none; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin-right: 4px; }
  .footer-mobile-group[open] > summary::after { transform: rotate(225deg); }
  .site-footer-navigation .footer-mobile-group nav { flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: start; gap: 0; padding: 0 0 14px; }
  .site-footer-navigation .footer-mobile-group a { display: flex; align-items: center; min-height: 40px; padding: 8px 2px; font-size: .875rem; line-height: 1.5; font-weight: 400; text-transform: none; letter-spacing: 0; }
  .site-footer-credit { margin-top: 24px; font-weight: 400; font-size: .625rem; letter-spacing: .025em; }
}

/* Slogan decale et lien Contact dans la navigation principale. */
@media(min-width:761px){
 .site-header-tagline span:last-child {transform:translateX(5em)}
 .site-header-services {column-gap:clamp(7px,.8vw,16px)}
 .site-header-services a {font-size:clamp(.6rem,.95vw,.82rem)}
}

/* Lecture cohérente des documents juridiques. */
.inner-page .legal-grid p, .inner-page .legal-grid li { max-width:none; text-align:justify; text-align-last:left; hyphens:auto; overflow-wrap:break-word; }
.inner-page .legal-grid h2, .inner-page .legal-grid h3 { max-width:100%; text-wrap:initial; }

/* Préférences cookies sur toutes les pages. */
.cookie-banner {position:fixed;z-index:10000;bottom:16px;left:16px;right:16px;margin:auto;max-width:980px;background:white;color:#173d4c;padding:20px;border:1px solid #d4e1e5;border-radius:12px;box-shadow:0 8px 40px #173d4c40;font-size:.9rem}
.cookie-banner[hidden] {display:none}.cookie-banner p {margin:0 0 12px;text-align:left}.cookie-actions{display:flex;gap:10px;flex-wrap:wrap}.cookie-actions button {padding:10px 14px;min-height:44px;border:1px solid #30778d;background:white;color:#173d4c;border-radius:6px;cursor:pointer;font:inherit}.cookie-settings {display:block;margin:18px auto 0;background:transparent;border:0;color:inherit;text-decoration:underline;cursor:pointer}

/* Espacement des documents juridiques, avec ou sans sections enveloppantes. */
.inner-page .legal-grid > h2 { margin-top:36px; margin-bottom:18px; }
.inner-page .legal-grid > .legal-documents { margin-bottom:12px; }
.inner-page .legal-grid .detail-section { padding-block:32px; }
.inner-page .legal-grid .detail-section h2 { margin-bottom:18px; }
.inner-page .legal-grid h3 { margin-block:26px 14px; }
.inner-page .legal-grid p + p { margin-top:16px; }
.inner-page .legal-grid ul, .inner-page .legal-grid ol { margin-block:16px; }
@media(max-width:760px) {
.inner-page .legal-grid > h2 { margin-top:28px; margin-bottom:14px; }
.inner-page .legal-grid .detail-section { padding-block:26px; }
.inner-page .legal-grid .detail-section h2 { margin-bottom:14px; }
}

/* Hauteur strictement commune aux huit pages de services. */
.inner-page .inner-hero:has(> .inner-grid) { height:430px; min-height:430px; }
.inner-page .inner-hero > .inner-grid { height:100%; min-height:0; padding-block:40px 78px; }
@media(max-width:760px) {
.inner-page .inner-hero:has(> .inner-grid) { height:560px; min-height:560px; }
.inner-page .inner-hero > .inner-grid { height:100%; min-height:0; padding-block:26px 90px; }
}

/* Composition commune des bandeaux de services. */
.inner-page .inner-hero > .inner-grid { padding-block:28px 88px; }
.inner-page .inner-hero > .inner-grid > div { width:100%; max-width:min(760px,70%); display:grid; grid-template-rows:44px 96px 78px 48px; gap:8px; align-content:start; }
.inner-page .inner-hero:has(> .inner-grid) .breadcrumb { margin:0; align-self:start; }
.inner-page .inner-hero:has(> .inner-grid) h1 { margin:0; font-size:clamp(30px,3.35vw,44px); line-height:1.08; font-weight:900; letter-spacing:-.025em; text-wrap:initial; align-self:center; }
.inner-page .inner-hero:has(> .inner-grid) h1 br { display:none; }
.inner-page .inner-hero:has(> .inner-grid) .lead { margin:0; max-width:55ch; font-size:clamp(16px,1.42vw,18px); line-height:1.5; text-align:left; hyphens:none; align-self:start; }
.inner-page .inner-hero:has(> .inner-grid) .actions { margin:0; align-self:start; }
.inner-page .inner-hero:has(> .inner-grid) .actions .button { min-height:48px; padding:12px 22px; font-size:16px; line-height:1.25; font-weight:750; }
@media(max-width:760px) {
.inner-page .inner-hero > .inner-grid { padding-block:26px 90px; }
.inner-page .inner-hero > .inner-grid > div { max-width:100%; grid-template-rows:52px 112px 120px 52px; gap:12px; }
.inner-page .inner-hero:has(> .inner-grid) h1 { font-size:clamp(26px,7vw,32px); line-height:1.12; }
.inner-page .inner-hero:has(> .inner-grid) .lead { font-size:16px; line-height:1.5; }
.inner-page .inner-hero:has(> .inner-grid) .actions .button { min-height:52px; max-width:100%; padding:12px 18px; }
}

/* Fondu photographique continu du bandeau Dépannage. */
.inner-page.assistance-page .inner-grid img { width:100%; object-position:right center; mask-image:linear-gradient(90deg,transparent 0%,#00000008 16%,#00000022 30%,#0000004d 44%,#00000080 58%,#000000b3 72%,#000000e0 86%,#000 100%); }
.inner-page.assistance-page .inner-hero:has(.inner-grid)::after { background:linear-gradient(90deg,#153846 0%,#153846f2 20%,#153846d9 35%,#153846ad 50%,#15384673 65%,#15384640 80%,#15384614 100%); }

/* Composition du titre Sauvegarde selon la référence validée. */
.inner-page.sauvegarde-page .inner-hero > .inner-grid > div { max-width:min(690px,70%); }
.inner-page.sauvegarde-page .inner-hero h1 span { display:block; }
.inner-page.sauvegarde-page .inner-hero h1 span:last-child { text-align:right; }
.inner-page.sauvegarde-page .inner-hero:has(> .inner-grid) .lead { max-width:none; font-size:16px; text-align:justify; }
@media(max-width:760px) {
.inner-page.sauvegarde-page .inner-hero > .inner-grid > div { max-width:100%; }
.inner-page.sauvegarde-page .inner-hero:has(> .inner-grid) .lead { text-align:left; }
}

/* Panorama natif pleine largeur, sans masque à raccord vertical. */
.inner-page.assistance-page .inner-grid img { inset:0; width:100%; height:100%; max-width:none; object-fit:cover; object-position:center; mask-image:none; }
.inner-page.assistance-page .inner-hero:has(.inner-grid)::after { background:linear-gradient(90deg,#153846 12%,#153846f2 36%,#24576b80 72%,#28647930); }
@media(max-width:760px) { .inner-page.assistance-page .inner-hero:has(.inner-grid)::after { background:linear-gradient(90deg,#153846ed,#153846b8 55%,#15384666); } }
.inner-page.couts-page .inner-hero:has(> .inner-grid) .lead { text-align:justify; text-align-last:left; hyphens:auto; }
