/* ============================================
   CSS COMPILÉ - Bureau d'Études Techniques
   Généré depuis SCSS - Mobile-first, SEO optimisé
   ============================================ */

/* === RESET MINIMAL === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === ROOT & CSS VARIABLES === */
:root {
  --color-brand:       #1e5381;   /* bleu logo exact */
  --color-brand-dark:  #163e66;   /* hover / pressed */
  --color-brand-mid:   #2568a0;   /* gradient intermédiaire */
  --color-brand-light: #e6eff8;   /* fond alternatif teinté */
  --color-link:        #1e5381;
  --color-link-hover:  #163e66;
  --color-text:        #0f1e2d;   /* heading — ~14:1 */
  --color-body:        #2d3f52;   /* body — ~9:1 */
  --color-muted:       #4e606f;   /* secondaire — ~5:1 RGAA AA ✓ */
  --color-bg:          #ffffff;
  --color-surface:     #f3f7fb;   /* teinte bleue froide */
  --color-border:      #d0dbe6;
  --color-focus:       #1e5381;
  --hero-navy:         #0b2338;   /* fond hero institutionnel — remplace le glassmorphism */
  --hero-navy-mid:      #12314b;
  --hero-text-muted:   #c7d3de;   /* texte secondaire sur fond navy — 8.9:1 */
  --radius:            8px;
  --radius-lg:         14px;
  --shadow-sm:         0 1px 3px rgba(15,30,45,0.08), 0 1px 2px rgba(15,30,45,0.06);
  --shadow-md:         0 4px 16px rgba(30,83,129,0.10), 0 1px 4px rgba(15,30,45,0.06);
  --shadow-lg:         0 8px 32px rgba(30,83,129,0.14), 0 2px 8px rgba(15,30,45,0.06);
  --container-max:     1200px;
  --font-primary:      'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --spacing-unit:      8px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-body);
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* === TYPOGRAPHIE === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.22;
  color: var(--color-text);
  margin-bottom: 24px;
}

/* Typographie fluide responsive */
h1 {
  font-size: clamp(26px, 3vw + 16px, 42px);
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  h1 {
    margin-bottom: 48px;
  }
}

h2 {
  font-size: clamp(24px, 24px + 8 * 1vw, 32px);
  margin-top: 48px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  h2 {
    margin-top: 64px;
  }
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: clamp(20px, 20px + 4 * 1vw, 24px);
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 600;
}

h4 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 16px;
}

p {
  margin-bottom: 24px;
}

p:last-child {
  margin-bottom: 0;
}

/* Liens */
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Liste */
ul, ol {
  margin-bottom: 24px;
  padding-left: 32px;
}

ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.list-unstyled {
  list-style: none;
  padding-left: 0;
}

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

figure {
  margin: 0;
  padding: 0;
}

/* Focus global */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link — RGAA 12.7, visible uniquement au focus clavier */
.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(calc(-100% - 20px));
  background: var(--color-brand);
  color: #ffffff;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  text-decoration: none;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.skip-link:focus-visible {
  transform: translateX(-50%) translateY(0);
  outline: 3px solid #ffffff;
  outline-offset: -3px;
}

/* === LAYOUT === */
main {
  flex: 1;
}

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 8px rgba(30,83,129,0.07);
  position: sticky;
  top: 0;
  z-index: 1020;
  height: 60px;
  width: 100%;
  left: 0;
  right: 0;
}

@media (min-width: 768px) {
  .header {
    height: 80px;
  }
}

/* Header transparent flottant sur le hero photo, devient blanc au scroll */
.header--transparent {
  position: fixed;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.header--transparent.is-scrolled {
  background: #ffffff;
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 8px rgba(30,83,129,0.07);
}

.header__logo img.header__logo-img--transparent {
  display: none;
}

.header--transparent:not(.is-scrolled) .header__logo-img--solid {
  display: none;
}

.header--transparent:not(.is-scrolled) .header__logo-img--transparent {
  display: block;
}

.header--transparent:not(.is-scrolled) .header__nav-link:not(.header__nav-link--cta) {
  color: #ffffff;
}

.header--transparent:not(.is-scrolled) .header__nav-link--active:not(.header__nav-link--cta) {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.header--transparent:not(.is-scrolled) .header__burger-icon,
.header--transparent:not(.is-scrolled) .header__burger-icon::before,
.header--transparent:not(.is-scrolled) .header__burger-icon::after {
  background: #ffffff;
}

.header--transparent:not(.is-scrolled) .header__phone {
  color: #ffffff;
}

.header--transparent:not(.is-scrolled) .header__phone:hover {
  color: rgba(255,255,255,0.8);
}

.header--transparent:not(.is-scrolled) .header__nav-link:focus-visible,
.header--transparent:not(.is-scrolled) .header__burger:focus-visible,
.header--transparent:not(.is-scrolled) .header__phone:focus-visible {
  outline-color: #ffffff;
}

.header__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .header__container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo img {
  height: 40px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .header__logo img {
    height: 46px;
  }
}

.header__logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.footer__logo {
  display: block;
  margin-bottom: 14px;
}

.footer__logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin-left: 24px;
  min-width: 0;
  overflow: visible;
}

@media (max-width: 1023px) {
  .header__nav {
    display: none;
  }
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
  min-width: max-content;
}


.header__nav-item {
  margin: 0;
}

.header__nav-item--hide-desktop {
  display: block;
}

@media (min-width: 1024px) {
  .header__nav-item--hide-desktop {
    display: none;
  }
}

.header__nav-link {
  display: block;
  padding: 8px 10px;
  color: var(--color-body);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  line-height: 1;
}

.header__nav-link:hover,
.header__nav-link:focus {
  color: var(--color-brand);
  text-decoration: none;
}

.header__nav-link--active {
  color: var(--color-brand);
  font-weight: 600;
  border-bottom-color: var(--color-brand);
}

.header__nav-link--cta,
.header__nav-link--cta.header__nav-link--active {
  background: var(--color-brand);
  color: #ffffff !important;
  border-radius: 6px;
  padding: 8px 18px;
  border-bottom: none !important;
  font-weight: 600;
}

.header__nav-link--cta:hover,
.header__nav-link--cta:focus {
  background: var(--color-brand-dark, #163d62);
  color: #ffffff !important;
  text-decoration: none;
}

/* Mega-menu dropdown */
.header__nav-item--dropdown {
  position: static;
}

.header__nav-item--dropdown > .header__nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header__nav-arrow {
  font-size: 10px;
  display: inline-block;
  transition: transform 0.2s ease-in-out;
  line-height: 1;
}

@media (min-width: 1024px) {
  .header__nav-arrow {
    display: none;
  }
}

.header__nav-item--dropdown:hover .header__nav-arrow,
.header__nav-item--dropdown.is-open .header__nav-arrow {
  transform: rotate(180deg);
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateY(-4px);
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  display: flex;
  justify-content: center;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease 0.08s, transform 0.15s ease 0.08s, visibility 0.15s 0.08s;
  z-index: 1030;
  pointer-events: none;
}

.header__nav-item--dropdown:hover .header__dropdown,
.header__nav-item--dropdown.is-open .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.header__dropdown-col {
  padding: 28px 48px;
  min-width: 260px;
  max-width: 380px;
  flex: 1;
}

.header__dropdown-col + .header__dropdown-col {
  border-left: 1px solid #eef1f4;
}

.header__dropdown-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-brand-light);
}

.header__dropdown-link {
  display: block;
  padding: 7px 0;
  color: var(--color-body);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
  white-space: nowrap;
}

.header__dropdown-link:hover,
.header__dropdown-link:focus {
  color: var(--color-brand);
  font-weight: 500;
  padding-left: 6px;
  text-decoration: none;
}

/* Structure sub-group in mega menu */
.header__dropdown-group {
  position: relative;
}

.header__dropdown-link--parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.header__dropdown-expand {
  font-size: 12px;
  color: var(--color-muted);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.header__dropdown-sub {
  display: none;
  padding-left: 12px;
  border-left: 2px solid var(--color-brand);
  margin: 2px 0 4px;
}

.header__dropdown-group:hover .header__dropdown-sub,
.header__dropdown-group.is-open .header__dropdown-sub {
  display: block;
}

.header__dropdown-group:hover .header__dropdown-expand {
  transform: rotate(90deg);
  color: var(--color-brand);
}

.header__dropdown-sublink {
  display: block;
  padding: 7px 0;
  color: var(--color-body);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
  white-space: nowrap;
}

.header__dropdown-sublink:hover,
.header__dropdown-sublink:focus {
  color: var(--color-brand);
  font-weight: 500;
  padding-left: 6px;
  text-decoration: none;
}

/* Mobile sub-group (Structure › Béton/Métal) */
.header__mobile-subgroup {
  margin: 2px 0;
}

.header__mobile-subgroup-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.header__mobile-subgroup-arrow {
  font-size: 14px;
  transition: transform 0.15s ease;
}

.header__mobile-subdropdown {
  display: none;
  padding-left: 16px;
  border-left: 2px solid rgba(255,255,255,0.3);
  margin-bottom: 4px;
}

.header__mobile-subdropdown.is-open {
  display: block;
}

/* Mobile : dropdown services en accordéon */
.header__nav-mobile .header__nav-item--dropdown {
  width: 100%;
}

.header__nav-mobile .header__nav-item--dropdown > .header__nav-link {
  justify-content: space-between;
  width: 100%;
}

.header__mobile-dropdown {
  display: none;
  padding: 0 16px 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.header__mobile-dropdown.is-open {
  display: block;
}

.header__mobile-dropdown-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 12px 0 6px;
}

.header__mobile-dropdown-link {
  display: block;
  padding: 8px 0;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header__mobile-dropdown-link:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Menu burger mobile */
.header__burger {
  display: block;
  background: none;
  border: none;
  padding: 16px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  position: relative;
}

@media (min-width: 1024px) {
  .header__burger {
    display: none;
  }
}

.header__burger:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.header__burger-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-brand);
  position: relative;
  transition: background 0.15s ease;
}

.header__burger-icon::before,
.header__burger-icon::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--color-brand);
  left: 0;
  transition: transform 0.15s ease;
}

.header__burger-icon::before {
  top: -8px;
}

.header__burger-icon::after {
  bottom: -8px;
}

.header__burger[aria-expanded="true"] .header__burger-icon {
  background: transparent;
}

.header__burger[aria-expanded="true"] .header__burger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.header__burger[aria-expanded="true"] .header__burger-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* Menu mobile */
.header__nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-brand);
  visibility: hidden;
  box-shadow: 0 8px 24px rgba(15,30,45,0.18);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out;
}

@media (min-width: 1024px) {
  .header__nav-mobile {
    display: none; /* Cache complètement le menu mobile sur desktop */
  }
}

.header__nav-mobile .header__nav-list {
  padding: 24px;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

@media (min-width: 768px) {
  .header__nav-mobile .header__nav-list {
    padding: 0;
    flex-direction: row;
  }
}

.header__nav-mobile .header__nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (min-width: 768px) {
  .header__nav-mobile .header__nav-item {
    border-bottom: none;
  }
}

.header__nav-mobile .header__nav-item:last-child {
  border-bottom: none;
}

.header__nav-mobile .header__nav-link {
  padding: 18px 24px;
  color: rgba(255,255,255,0.9);
  border-bottom: none;
}

.header__nav-mobile .header__nav-link:hover,
.header__nav-mobile .header__nav-link:focus {
  color: #ffffff;
}

.header__nav-mobile .header__nav-link--active {
  color: #ffffff;
  font-weight: 700;
  border-bottom: none;
}

.header__nav-mobile[aria-hidden="false"] {
  max-height: 500px;
  visibility: visible;
}

/* Footer */
.footer {
  background: #0d1e30;
  color: #ffffff;
  padding: 56px 0 0;
  margin-top: 96px;
}

.footer__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .footer__container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.footer__content {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 40px 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

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

.footer__section {
  min-width: 0;
}

.footer__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 10px 0 18px;
}

.footer__address {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  font-style: normal;
}

.footer__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin: 0 0 14px;
}

.footer__link {
  color: rgba(255,255,255,0.78);
  display: block;
  margin-bottom: 9px;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.footer__link:hover,
.footer__link:focus {
  color: #ffffff;
}

/* Agences footer */
.footer__agencies {
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__agencies-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);  /* ~5.2:1 RGAA AA ✓ */
  margin: 0 0 20px;
}

.footer__agencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px 32px;
}

.footer__agency-country {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.60);  /* ~5.2:1 RGAA AA ✓ */
  margin: 0 0 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.flag-icon {
  display: inline-block;
  width: 16px;
  height: 12px;
  margin-right: 6px;
  vertical-align: middle;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
}

.flag-icon--fr {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MCA2MCI+PHJlY3Qgd2lkdGg9IjMwIiBoZWlnaHQ9IjYwIiBmaWxsPSIjMDAyMzk1Ii8+PHJlY3QgeD0iMzAiIHdpZHRoPSIzMCIgaGVpZ2h0PSI2MCIgZmlsbD0iI2ZmZmZmZiIvPjxyZWN0IHg9IjYwIiB3aWR0aD0iMzAiIGhlaWdodD0iNjAiIGZpbGw9IiNFRDI5MzkiLz48L3N2Zz4=");
}

.flag-icon--ma {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA5MCA2MCI+PHJlY3Qgd2lkdGg9IjkwIiBoZWlnaHQ9IjYwIiBmaWxsPSIjQzEyNzJEIi8+PHBvbHlnb24gcG9pbnRzPSI0NSwxMCA0OS43MCwyMy41MyA2NC4wMiwyMy44MiA1Mi42MSwzMi40NyA1Ni43Niw0Ni4xOCA0NSwzOCAzMy4yNCw0Ni4xOCAzNy4zOSwzMi40NyAyNS45OCwyMy44MiA0MC4zMCwyMy41MyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDA2MjMzIiBzdHJva2Utd2lkdGg9IjMiLz48L3N2Zz4=");
}

.footer__agency-city {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin: 0 0 5px;
}

.footer__agency-address {
  font-size: 12px;
  color: rgba(255,255,255,0.62);  /* ~5.3:1 RGAA AA ✓ */
  line-height: 1.65;
  font-style: normal;
}

.footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

@media (min-width: 640px) {
  .footer__bottom {
    justify-content: space-between;
  }
}

.footer__social {
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -10px;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer__social:hover,
.footer__social:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Section */
.section {
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

.section--alt {
  background: var(--color-surface);
}

.section--compact {
  padding-top: 16px;
  padding-bottom: 48px;
}

/* Grid responsive */
.grid {
  display: grid;
  gap: 32px;
}

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

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

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

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

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

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

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

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

/* === COMPONENTS === */
/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  min-height: 48px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
  letter-spacing: 0.01em;
}

.btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
}

.btn--primary:hover,
.btn--primary:focus {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn--secondary:hover,
.btn--secondary:focus {
  background: var(--color-brand);
  color: #ffffff;
  text-decoration: none;
}

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

.btn--outline:hover,
.btn--outline:focus {
  background: var(--color-brand);
  color: #ffffff;
  text-decoration: none;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* Hero */
/* Fond de base pour les pages internes (fluides, thermique, cvc, etc.) qui
   utilisent .hero seul, sans modificateur --photo/--split/--flat : sans ce
   fond, .hero__title/.hero__subtitle (texte blanc) devenaient illisibles
   sur le fond blanc de la page. */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-mid) 55%, var(--color-brand-dark) 100%);
  color: #ffffff;
}

.hero--photo {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  /* Le header est fixed (flottant sur la photo) sur cette page : le hero
     occupe donc la pleine hauteur d'écran, le header se pose par-dessus. */
  min-height: 100vh;
  min-height: 100dvh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0f2d4a;
}

.hero__bg-track {
  position: relative;
  width: 100%;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero__bg-slide.is-active {
  opacity: 1;
}

.hero__bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Aucun assombrissement global : les images gardent leur lumière naturelle.
     La lisibilité du texte est assurée par le halo flou localisé
     (.hero__content::before), pas par la photo. */
  filter: saturate(0.97);
}

/* Slide résidentielle : scène de nuit, déjà sombre — on remonte même
   légèrement sa luminosité pour compenser, les bandeaux LED étant gérés
   par le halo flou derrière le texte. */
.hero__bg-slide--residential img {
  filter: saturate(0.9) brightness(0.92);
}

/* Slide santé : recadrage pour repousser la signature du bâtiment
   ("سيف") hors de la zone du header, en montrant davantage le bas
   de l'image (parvis, personnes) plutôt que le haut. */
.hero__bg-slide--sante img {
  object-position: 50% 78%;
  filter: saturate(0.95);
}

/* Le recadrage seul ne suffit pas à masquer l'enseigne du bâtiment
   ("Centre Hospitalier Provincial de Guercif") : bande d'assombrissement
   ciblée sur sa zone, à bords doux, en plus du recadrage. */
.hero__bg-slide--sante::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 28%;
  height: 26%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(6,16,28,0.6) 30%,
    rgba(6,16,28,0.6) 70%,
    transparent 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
}

/* Bande légère et uniforme réservée au header uniquement (logo, nav,
   téléphone protégés de la même façon sur toute la largeur). Flou léger
   + teinte réduite plutôt qu'une simple opacité sombre — plus clair,
   toujours lisible. Le texte du hero a son propre scrim localisé
   (voir .hero__content::before), complètement séparé de cette bande. */
.hero__overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(6,16,28,0.13) 0%, rgba(6,16,28,0.13) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .hero__overlay::before {
    backdrop-filter: blur(10px) saturate(0.94);
    -webkit-backdrop-filter: blur(10px) saturate(0.94);
  }
}

.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 2px 14px rgba(0,0,0,0.4);
}

.hero__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  /* padding-top >= hauteur du header fixed (60px) + marge de respiration */
  padding: 88px 24px 96px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero__container {
    /* padding-top >= hauteur du header fixed (80px) + marge de respiration */
    padding: 128px 32px 120px;
  }
}

/* Écrans bas (mobile en paysage, petits laptops) : on resserre l'espacement
   vertical pour éviter que le hero ne fasse plusieurs fois la hauteur d'écran */
@media (max-height: 560px) {
  .hero__container {
    padding: 88px 24px 56px;
  }

  .hero__eyebrow {
    margin-bottom: 8px;
  }

  .hero__title {
    margin-bottom: 12px;
  }

  .hero__subtitle {
    margin-bottom: 20px;
  }

  .hero__trust {
    margin-top: 16px;
  }

  .hero__nav {
    display: none;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* Scrim localisé, uniquement derrière le bloc de texte. Le flou
   (backdrop-filter) fait l'essentiel du travail de lisibilité — il
   supprime les détails nets de la photo qui gênent la lecture — donc la
   teinte elle-même reste légère (visuel plus clair, moins "assombri"). */
.hero__content::before {
  content: '';
  position: absolute;
  z-index: -1;
  /* Resserré au plus près du bloc de texte : ne remonte plus vers le
     header et ne déborde plus inutilement à droite/en bas. */
  top: -24px;
  left: -28px;
  right: -36px;
  bottom: -24px;
  background: radial-gradient(ellipse 100% 105% at 40% 45%,
    rgba(8,20,34,0.3) 0%,
    rgba(8,20,34,0.25) 35%,
    rgba(8,20,34,0.18) 55%,
    rgba(8,20,34,0.1) 70%,
    rgba(8,20,34,0.04) 82%,
    rgba(8,20,34,0.01) 92%,
    transparent 100%);
  /* Le masque estompe aussi le FLOU vers les bords (pas seulement la
     teinte), pour éviter tout rectangle de flou à bord visible. */
  -webkit-mask-image: radial-gradient(ellipse 100% 105% at 40% 45%, #000 0%, #000 55%, transparent 98%);
  mask-image: radial-gradient(ellipse 100% 105% at 40% 45%, #000 0%, #000 55%, transparent 98%);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .hero__content::before {
    backdrop-filter: blur(12px) saturate(0.92);
    -webkit-backdrop-filter: blur(12px) saturate(0.92);
  }
}

@media (max-width: 1023px) {
  .hero__content {
    max-width: 520px;
  }
}

.hero__title {
  font-size: clamp(28px, 3.4vw + 12px, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 20px;
  overflow-wrap: break-word;
  text-shadow: 0 2px 4px rgba(0,0,0,0.55), 0 4px 20px rgba(0,0,0,0.4);
}

.hero__subtitle {
  font-size: clamp(15px, 1vw + 11px, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  font-weight: 400;
  max-width: 560px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 2px 14px rgba(0,0,0,0.35);
}

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

@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn,
  .hero__cta .btn--hero-outline {
    text-align: center;
  }
}

.hero .btn--primary {
  background: #ffffff;
  color: var(--color-brand);
  border-color: #ffffff;
  font-weight: 700;
}

.hero .btn--primary:hover,
.hero .btn--primary:focus {
  background: var(--color-brand-light);
  border-color: var(--color-brand-light);
  color: var(--color-brand-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}

.btn--hero-outline {
  /* Fallback pour navigateurs sans backdrop-filter : fond navy translucide
     nettement plus opaque qu'un simple contour, reste lisible sans flou. */
  background: rgba(10,26,44,0.55);
  border: 2px solid rgba(255,255,255,0.75);
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 15px;
  min-height: 48px;
  letter-spacing: 0.01em;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .btn--hero-outline {
    /* Effet verre dépoli : la photo derrière le bouton est floutée, le texte
       blanc reste lisible quel que soit le contenu de l'image à cet endroit. */
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.btn--hero-outline:hover,
.btn--hero-outline:focus {
  background: rgba(255,255,255,0.24);
  border-color: #ffffff;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero__nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(6,16,28,0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease;
  z-index: 2;
}

.hero__nav:hover,
.hero__nav:focus-visible {
  background: rgba(6,16,28,0.7);
  outline-color: #ffffff;
}

.hero__nav--prev {
  left: 16px;
}

.hero__nav--next {
  right: 16px;
}

@media (max-width: 640px) {
  .hero__nav {
    display: none;
  }
}

.hero__caption-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: rgba(6,16,28,0.88);
}

@media (min-width: 768px) {
  .hero__caption-bar {
    padding: 18px 32px;
  }
}

.hero__playpause {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hero__playpause:hover,
.hero__playpause:focus-visible {
  background: rgba(255,255,255,0.15);
  outline-color: #ffffff;
}

.hero__caption-text {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 0;
  flex: 1;
}

.hero__caption-count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
}

.hero__caption-title {
  font-weight: 600;
  color: #ffffff;
}

.hero__caption-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.hero__caption-link:hover,
.hero__caption-link:focus {
  text-decoration: underline;
}

/* ============================================
   HERO — variantes de test A/B (comparaison)
   Direction commune : fond institutionnel sobre,
   zéro glassmorphism, un seul CTA fort + un lien
   secondaire, texte jamais posé sur photo sans
   scrim plat mesurable.
   ============================================ */

.hero__eyebrow,
.hero__title,
.hero__subtitle {
  font-family: var(--font-primary);
}

.hero__proof {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.01em;
}

.btn--hero-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--hero-navy);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #ffffff;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.btn--hero-solid:hover,
.btn--hero-solid:focus-visible {
  background: var(--color-brand-light);
  border-color: var(--color-brand-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.hero__link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 4px;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.hero__link-secondary:hover,
.hero__link-secondary:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.hero__link-secondary svg,
.hero__link-secondary span {
  transition: transform 0.15s ease;
}

.hero__link-secondary:hover span {
  transform: translateX(3px);
}

/* --- Hero A : "hero--split" — panneau texte plein, image cadrée --- */

.hero--split {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--hero-navy);
}

.hero--split .hero__split-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 40px;
  padding: 120px 24px 64px;
}

@media (min-width: 1024px) {
  .hero--split .hero__split-row {
    flex-direction: row;
    align-items: center;
    gap: 72px;
    padding: 140px 40px 80px;
  }
}

.hero--split .hero__split-text {
  flex: 1 1 50%;
  max-width: 560px;
}

.hero--split .hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-text-muted);
  margin-bottom: 16px;
}

.hero--split .hero__title {
  font-size: clamp(28px, 3vw + 12px, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero--split .hero__subtitle {
  font-size: clamp(15px, 0.6vw + 12px, 17px);
  line-height: 1.6;
  color: var(--hero-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero--split .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

@media (max-width: 480px) {
  .hero--split .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero--split .hero__cta .btn--hero-solid {
    text-align: center;
  }
}

.hero--split .hero__split-media {
  flex: 1 1 44%;
  width: 100%;
  max-width: 560px;
}

.hero--split .hero__split-card {
  display: block;
  width: 100%;
  aspect-ratio: 605 / 332;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero--split .hero__split-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero--split .hero__split-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--hero-text-muted);
  letter-spacing: 0.01em;
}

/* --- Hero B : "hero--flat" — photo plein cadre, scrim plat --- */

.hero--flat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--hero-navy);
}

.hero--flat .hero__flat-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-navy);
}

.hero--flat .hero__flat-track {
  position: relative;
  width: 100%;
  height: 100%;
  list-style: none;
}

.hero--flat .hero__flat-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero--flat .hero__flat-slide.is-active {
  opacity: 1;
}

.hero--flat .hero__flat-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Un seul contrôle, discret, en bas à droite — pas de flèches, pas de
   compteur, pas de titre par diapositive : le texte du hero ne change
   jamais, seule la photo de fond respire lentement en fondu. */
/* === HERO CAPTION PROJET (style OTE) === */
.hero__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 28, 48, 0.60);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero__caption-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero__caption-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: opacity 0.35s ease;
}

.hero__caption-actions {
  transition: opacity 0.35s ease;
}

.hero__caption-project {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.hero__caption-archi {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.60);
  font-weight: 400;
}

.hero__caption-archi::before {
  content: '©\00a0';
  opacity: 0.5;
}

.hero__caption-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.hero__caption-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.hero__caption-link svg {
  transition: transform 0.15s ease;
}

.hero__caption-link:hover svg {
  transform: translateX(3px);
}

/* Le bouton pause fait partie de la même ligne que le lien "Ouvrir le
   projet" (flex, pas de positionnement absolu) : il ne peut plus jamais
   chevaucher le texte de légende, quelle que soit sa longueur ou le
   nombre de lignes sur lesquelles elle s'étale en mobile. */
.hero__caption-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero__caption-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 16px;
  }
  .hero__caption-actions {
    align-self: flex-end;
  }
}

/* === HERO PAUSE BUTTON === */
.hero--flat .hero__flat-pause {
  position: absolute;
  top: 72px;
  right: 20px;
  z-index: 4;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.hero--flat .hero__flat-pause:hover,
.hero--flat .hero__flat-pause:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

.hero--flat .hero__flat-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    rgba(11, 35, 56, 0.86) 0%,
    rgba(11, 35, 56, 0.68) 30%,
    rgba(11, 35, 56, 0.32) 58%,
    rgba(11, 35, 56, 0.12) 78%,
    rgba(11, 35, 56, 0.05) 100%);
}

.hero--flat .hero__flat-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 140px 24px 80px;
}

@media (min-width: 768px) {
  .hero--flat .hero__flat-container {
    padding: 140px 40px 96px;
  }
}

.hero--flat .hero__flat-content {
  max-width: 560px;
}

.hero--flat .hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.hero--flat .hero__title {
  font-size: clamp(28px, 3.2vw + 12px, 52px);
  font-weight: 700;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero--flat .hero__subtitle {
  font-size: clamp(15px, 0.7vw + 12px, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero--flat .hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
}

@media (max-width: 480px) {
  .hero--flat .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero--flat .hero__cta .btn--hero-solid {
    text-align: center;
  }
}

/* Bandeau de comparaison A/B — retiré en un clic une fois le test terminé */
.hero-test-banner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 10px 20px;
  background: #fff3cd;
  color: #664d03;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.hero-test-banner a {
  color: #664d03;
  text-decoration: underline;
}

/* Le header n'étant volontairement plus flottant/transparent sur les pages
   de test (cf. commentaire HTML), il occupe déjà sa propre hauteur réelle
   au-dessus du hero : on réduit le padding-top interne du hero, prévu à
   l'origine pour compenser un header fixed superposé, pour éviter un vide
   double en haut de page. */
body:has(.hero-test-banner) .hero__split-row {
  padding-top: 32px;
}

body:has(.hero-test-banner) .hero__flat-container {
  padding-top: 32px;
}

@media (min-width: 1024px) {
  body:has(.hero-test-banner) .hero__split-row {
    padding-top: 48px;
  }
}

@media (min-width: 768px) {
  body:has(.hero-test-banner) .hero__flat-container {
    padding-top: 48px;
  }
}

/* Teaser expertises (accueil) — photo + pitch court + un seul CTA,
   renvoie vers la page dédiée pages/expertises.html plutôt que d'afficher
   les 13 domaines directement sur l'accueil. */
.expertise-teaser {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .expertise-teaser {
    flex-direction: row;
    gap: 64px;
    align-items: center;
  }

  .expertise-teaser__photo {
    flex: 0 0 50%;
    height: 560px;
  }

  .expertise-teaser__content {
    flex: 1;
  }
}

.expertise-teaser__photo {
  position: relative;
  width: 100%;
  height: 380px;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.expertise-teaser__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
}

.expertise-teaser__title {
  font-size: clamp(24px, 2vw + 14px, 34px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.expertise-teaser__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 480px;
  margin-bottom: 28px;
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30,83,129,0.18);
}

.card__header {
  margin-bottom: 20px;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-brand);
}

.card__body {
  flex: 1;
  margin-bottom: 24px;
}

.card__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.card__link {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease;
}

.card__link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.15s ease;
}

.card__link:hover {
  color: var(--color-brand-dark);
  text-decoration: none;
}

.card__link:hover::after {
  transform: translateX(4px);
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
  cursor: pointer;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--color-brand);
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  margin: -28px -32px 20px;
  background: linear-gradient(135deg, var(--color-brand-light) 0%, #dbe7f4 100%);
  color: var(--color-brand);
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__icon svg {
  flex-shrink: 0;
}

.service-card__list {
  list-style: none;
  padding-left: 0;
  margin-top: 24px;
}

.service-card__list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 16px;
}

.service-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-brand);
  font-weight: 700;
}

/* Intro */
.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.intro__title {
  margin-bottom: 24px;
}

/* Section Pourquoi Ductiam */
.why__title {
  font-size: clamp(22px, 2vw + 14px, 32px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 32px;
  text-align: center;
}

.why__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

.why__stat {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--color-border);
}

.why__stat:last-child {
  border-right: none;
}

@media (max-width: 640px) {
  .why__stats { grid-template-columns: repeat(3, 1fr); }
  .why__stat { padding: 16px 8px; }
  .why__stat-number { font-size: clamp(20px, 5vw, 28px); }
  .why__stat-label { font-size: 11px; }
  .why__stat-icon svg { width: 20px; height: 20px; }
}

.why__stat-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--color-brand);
}

.why__stat-number {
  font-size: clamp(26px, 2.5vw + 14px, 36px);
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 4px;
  line-height: 1;
}

.why__stat-label {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
}

.why__args {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 740px;
  margin: 0 auto;
}

.why__arg {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.why__arg:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(30,83,129,0.2);
}

.why__arg-bar {
  width: 3px;
  min-height: 44px;
  background: var(--color-brand);
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 2px;
}

.why__arg-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 4px;
}

.why__arg-text {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}

.intro__text {
  font-size: clamp(16px, 16px + 2 * 1vw, 18px);
  color: var(--color-muted);
  margin-bottom: 40px;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq__question {
  width: 100%;
  background: #ffffff;
  border: none;
  padding: 20px 28px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  transition: background 0.15s ease;
}

.faq__question:hover,
.faq__question:focus {
  background: var(--color-surface);
}

.faq__question:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.faq__question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--color-brand);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq__question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 32px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out, padding 0.2s ease-in-out;
}

.faq__answer[aria-hidden="false"] {
  padding: 24px 32px 32px;
  max-height: 1000px;
}

/* Breadcrumb */
/* ── Réalisations ───────────────────────────────────────────── */
.intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.intro__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 16px;
}
.intro__text {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.section-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Filtres */
.real-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  justify-content: center;
}
.real-filter {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  font-family: inherit;
}
.real-filter:hover,
.real-filter:focus {
  border-color: var(--color-brand);
  color: var(--color-brand);
  outline: none;
}
.real-filter.is-active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

/* Section header avec lien aligné à droite */
.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-text);
  margin: 0 0 6px;
}
.section__sub {
  font-size: 1rem;
  color: var(--color-muted);
  margin: 0;
}

/* Preview grid accueil */
.real-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .real-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .real-preview-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

.real-preview-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.real-preview-card:hover {
  box-shadow: 0 8px 28px rgba(10,28,48,0.13);
  transform: translateY(-3px);
}
.real-preview-card__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #e8edf2;
}
.real-preview-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.real-preview-card:hover .real-preview-card__img {
  transform: scale(1.04);
}
.real-preview-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.real-preview-card__tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-brand);
}
.real-preview-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}
.real-preview-card__archi {
  font-size: 12px;
  color: var(--color-muted);
  margin: 0;
}

/* Grille projets */
.real-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 1024px) {
  .real-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .real-grid { grid-template-columns: 1fr; }
}

/* Carte projet */
.real-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.real-card:hover {
  box-shadow: 0 8px 32px rgba(10,28,48,0.12);
  transform: translateY(-2px);
}
.real-card__img-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-brand-dark, #0a1c30);
}
.real-card__img {
  transition: transform 0.3s ease;
}
.real-card:hover .real-card__img {
  transform: scale(1.04);
}
.real-card__img-wrap--placeholder {
  background: #e8edf2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.real-card__img-ph {
  color: #a0b0c0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.real-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.real-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.real-card__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand);
}
.real-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
}
.real-card__title-link {
  color: inherit;
  text-decoration: none;
}
.real-card__title-link:hover,
.real-card__title-link:focus-visible {
  text-decoration: underline;
}
.real-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-brand);
  text-decoration: none;
}
.real-card__link:hover,
.real-card__link:focus-visible {
  text-decoration: underline;
}
.real-card__link span {
  transition: transform 0.15s ease;
}
.real-card__link:hover span {
  transform: translateX(3px);
}
.real-card__meta {
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.real-card__meta-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
}
.real-card__meta-row dt {
  color: var(--color-muted);
  font-weight: 600;
}
.real-card__meta-row dd {
  color: var(--color-text);
  margin: 0;
}

/* ── Page détail d'une réalisation (style éditorial, inspiré OTE) ── */
.real-detail {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
}

@media (min-width: 900px) {
  .real-detail {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
  }
  .real-detail__main {
    flex: 1 1 55%;
    min-width: 0;
  }
  .real-detail__photo,
  .real-detail__photos {
    flex: 0 0 40%;
  }
}

.real-detail__title {
  font-size: clamp(24px, 2.2vw + 14px, 36px);
  font-weight: 700;
  color: var(--color-text);
  margin: 8px 0 20px;
  line-height: 1.2;
}

.real-detail__intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-muted);
  margin-bottom: 32px;
  max-width: 640px;
}

.real-detail__subheading {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin: 0 0 12px;
}

.real-detail__list {
  margin: 0 0 32px;
  padding-left: 20px;
  color: var(--color-body);
  font-size: 15px;
  line-height: 1.6;
}

.real-detail__list li {
  margin-bottom: 6px;
}

.real-detail__photo {
  margin: 0;
}

.real-detail__photo--secondary {
  margin-top: 20px;
}

.real-detail__photo-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-muted);
}

/* Ratio fixe quelle que soit l'orientation de la source (certaines photos
   sont des recadrages très étroits/portrait) : évite qu'une image domine
   tout l'écran en mobile, et réserve l'espace immédiatement (les attributs
   width/height du <img> évitent aussi le saut de mise en page au chargement). */
.real-detail__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.real-detail__info-bar {
  margin-top: 48px;
  background: var(--color-brand);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  color: #ffffff;
}

@media (max-width: 767px) {
  .real-detail__info-bar {
    grid-template-columns: 1fr;
  }
}

.real-detail__info-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 10px;
}

.real-detail__info-col p {
  font-size: 14px;
  line-height: 1.55;
  color: #ffffff;
  margin: 0 0 4px;
}

.real-detail__pager {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .real-detail__pager {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.real-detail__pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  max-width: 320px;
}

.real-detail__pager-link--next {
  text-align: right;
  margin-left: auto;
}

.real-detail__pager-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-brand);
}

.real-detail__pager-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.real-detail__pager-link:hover .real-detail__pager-title,
.real-detail__pager-link:focus-visible .real-detail__pager-title {
  text-decoration: underline;
}

.real-detail__pager-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-brand);
  text-decoration: none;
  white-space: nowrap;
}

.real-detail__pager-all:hover,
.real-detail__pager-all:focus-visible {
  text-decoration: underline;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--color-muted);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 6px;
  align-items: center;
}

.breadcrumb__item::after {
  content: '/';
  margin-left: 6px;
  color: var(--color-border);
}

.breadcrumb__item:last-child::after {
  display: none;
}

.breadcrumb__link {
  color: var(--color-muted);
  text-decoration: none;
}

.breadcrumb__link:hover,
.breadcrumb__link:focus {
  color: var(--color-brand);
}

.breadcrumb__current {
  color: var(--color-body);
  font-weight: 500;
}

/* Article Card */
.article-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.article-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
}

.article-card__meta {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.article-card__title {
  font-size: 17px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-card__title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-card__title a:hover,
.article-card__title a:focus {
  color: var(--color-brand);
}

.article-card__excerpt {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.65;
}

.article-card__link {
  color: var(--color-brand);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease;
}

.article-card__link::after {
  content: '→';
  transition: transform 0.15s ease;
}

.article-card__link:hover,
.article-card__link:focus {
  color: var(--color-brand-dark);
  text-decoration: none;
}

.article-card__link:hover::after {
  transform: translateX(4px);
}

/* Form */
.form {
  max-width: 600px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-body);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--color-body);
  border: 1.5px solid #5e7b96;
  border-radius: var(--radius);
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(30,83,129,0.12);
}

.form__textarea {
  min-height: 130px;
  resize: vertical;
}

.form__help {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 6px;
}

.form__error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 6px;
}

.form__status {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.form__status--success {
  background: #eaf6ec;
  border: 1px solid #a9d8b1;
  color: #1e7e34;
}

.form__status--error {
  background: #fdecea;
  border: 1px solid #f1a8a2;
  color: #c0392b;
}

/* Table of Contents */
.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-brand);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.toc__list {
  list-style: none;
  padding-left: 0;
}

.toc__item {
  margin-bottom: 6px;
}

.toc__link {
  color: var(--color-body);
  text-decoration: none;
  padding: 5px 0;
  display: block;
  font-size: 14px;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.toc__link:hover,
.toc__link:focus {
  color: var(--color-brand);
  padding-left: 4px;
  text-decoration: none;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-muted);
}

.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mt-sm { margin-top: 16px; }
.mb-sm { margin-bottom: 16px; }
.mt-md { margin-top: 24px; }
.mb-md { margin-bottom: 24px; }
.mt-lg { margin-top: 32px; }
.mb-lg { margin-bottom: 32px; }
.mt-xl { margin-top: 48px; }
.mb-xl { margin-bottom: 48px; }
.mt-2xl { margin-top: 64px; }

.content-body {
  max-width: 900px;
  margin: 0 auto;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.75;
}

.article-header {
  margin-bottom: 48px;
}

.article-meta {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.article-description {
  font-size: 17px;
  color: var(--color-muted);
  margin-top: 12px;
  line-height: 1.65;
}

.article-nav {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.article-nav__links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.section-cta {
  margin-top: 48px;
  text-align: center;
}

/* Citations experts */
.expert-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.expert-quote {
  margin: 0;
  padding: 28px 32px;
  background: var(--color-surface);
  border-left: 4px solid var(--color-brand);
  border-radius: 0 10px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.expert-quote__text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  font-style: italic;
  margin: 0;
}
.expert-quote__footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.expert-quote__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-brand);
}
.expert-quote__role {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.4;
}

.related-services {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.contact-info__item {
  margin-bottom: 32px;
}

/* === ACCORDION SERVICES MOBILE === */
.services-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.services-group + .services-group {
  margin-top: 48px;
}

.services-group__toggle {
  display: none;
}

.services-group__content {
  display: block;
}

@media (max-width: 768px) {
  .services-accordion {
    gap: 12px;
  }

  .services-group__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: var(--color-brand);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s ease;
    margin-bottom: 8px;
  }

  .services-group__toggle:hover {
    background: var(--color-brand-dark);
  }

  .services-group__toggle:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
  }

  .services-group__toggle svg {
    flex-shrink: 0;
    transition: transform 0.22s ease;
  }

  .services-group__toggle[aria-expanded="false"] svg {
    transform: rotate(-90deg);
  }

  .services-group__content[hidden] {
    display: none;
  }
}

/* === PAGE EXPERTISES — photo + accordéon (style éditorial, inspiré des
   sites d'ingénierie institutionnels : peu d'éléments visibles à la fois,
   catégories repliées par défaut, tailles de police généreuses). === */

/* Le fil d'Ariane a déjà son propre padding : le padding-top standard de
   .section (48-64px) s'additionnait par-dessus et créait un vide trop
   important avant le H1. */
.expertises-intro {
  padding-top: 8px;
}

@media (min-width: 768px) {
  .expertises-intro {
    padding-top: 16px;
  }
}

.expertises-intro h1 {
  margin-bottom: 16px;
}

.expertises-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .expertises-layout {
    flex-direction: row;
    gap: 64px;
  }

  .expertises-photo {
    flex: 0 0 42%;
    position: sticky;
    top: 100px;
  }

  .expertises-categories {
    flex: 1;
    min-width: 0;
  }
}

.expertises-photo {
  width: 100%;
  margin: 0;
}

.expertises-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Accordéon actif à toutes les tailles d'écran (contrairement à
   .services-group__toggle, replié par défaut uniquement sur mobile ailleurs
   sur le site) : ici les catégories restent repliées par défaut partout. */
.expertise-accordion .services-group__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 2px;
  background: none;
  border: none;
  border-bottom: 2px solid var(--color-border);
  border-radius: 0;
  font-family: var(--font-primary);
  font-size: clamp(17px, 1.3vw + 11px, 24px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-brand);
  cursor: pointer;
  text-align: left;
  margin-bottom: 0;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.expertise-accordion .services-group__toggle:hover {
  color: var(--color-brand-dark);
  border-bottom-color: var(--color-brand);
}

.expertise-accordion .services-group__toggle:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.expertise-accordion .services-group__toggle svg {
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.expertise-accordion .services-group__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.expertise-accordion .services-group + .services-group {
  margin-top: 0;
}

.expertise-accordion .services-group__content {
  padding: 8px 0 12px;
}

.expertise-accordion .services-group__content[hidden] {
  display: none;
}

.expertise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.expertise-list__link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: padding-left 0.15s ease, background 0.15s ease;
}

.expertise-list__link:hover,
.expertise-list__link:focus-visible {
  padding-left: 12px;
  background: var(--color-surface);
}

.expertise-list li:last-child .expertise-list__link {
  border-bottom: none;
}

.expertise-list__title {
  font-weight: 700;
  color: var(--color-text);
  font-size: 16px;
}

.expertise-list__desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* === LOGICIELS & NORMES BAR === */
.section--tools {
  background: #0d1e30;
  padding: 20px 0;
}

.tools__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  text-align: center;
}

.tools__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: center;
  align-items: center;
}

.tools__item {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tools__item + .tools__item {
  position: relative;
}

/* === MINI-FORMULAIRE HOMEPAGE === */
.section--quickform {
  background: var(--color-brand-light);
}

.quickform__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

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

.quickform__title {
  font-size: clamp(22px, 2vw + 12px, 30px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.quickform__sub {
  font-size: 16px;
  color: var(--color-body);
  line-height: 1.65;
  margin-bottom: 24px;
}

.quickform__promises {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quickform__promises li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-body);
  font-weight: 500;
}

.quickform__promises li svg {
  color: var(--color-brand);
  flex-shrink: 0;
}

.quickform__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

.quickform__phone:hover {
  color: var(--color-brand-dark);
  text-decoration: none;
}

.quickform__phone:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.quickform__form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quickform__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quickform__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.quickform__input,
.quickform__select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--color-body);
  border: 1.5px solid #7a94a8;
  border-radius: var(--radius);
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.quickform__input:focus,
.quickform__select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(30,83,129,0.12);
}

.quickform__legal {
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
  margin: -4px 0 0;
  line-height: 1.5;
}

/* === HEADER PHONE === */
.header__phone {
  display: none;
}

@media (min-width: 1200px) {
  .header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-brand);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 0;
    margin-left: 16px;
    transition: color 0.15s ease;
    flex-shrink: 0;
  }

  .header__phone:hover {
    color: var(--color-brand-dark);
    text-decoration: none;
  }

  .header__phone:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: 4px;
  }

  .header__phone svg {
    flex-shrink: 0;
  }
}

/* === HERO TRUST BADGES === */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  justify-content: flex-start;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 2px 12px rgba(0,0,0,0.35);
}

.hero__trust-item svg {
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

/* === SECTEURS D'INTERVENTION === */
.sectors__intro {
  max-width: 620px;
  margin-bottom: 40px;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.sector-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sector-card:hover {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-md);
}

.sector-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-brand-light);
  border-radius: 50%;
  margin: 0 auto 14px;
  color: var(--color-brand);
}

.sector-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 6px;
}

.sector-card__detail {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

.sectors__note {
  margin-top: 32px;
  padding: 16px 24px;
  background: var(--color-brand-light);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--color-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sectors__note svg {
  color: var(--color-brand);
  flex-shrink: 0;
}

/* === EQUIPE / POLES (a-propos) === */
.team-intro {
  max-width: 620px;
  margin-bottom: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.team-pole {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border-top: 3px solid var(--color-brand);
}

.team-pole__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-brand-light);
  border-radius: 50%;
  margin-bottom: 16px;
  color: var(--color-brand);
}

.team-pole__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
}

.team-pole__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-pole__list li {
  font-size: 13px;
  color: var(--color-muted);
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.5;
}

.team-pole__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-brand);
  font-weight: 700;
}

.team__note {
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--color-surface);
  border-left: 3px solid var(--color-brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--color-body);
  line-height: 1.6;
}
