/* MAGC Pro — feuille de style unique du thème (aucune dépendance à Elementor ni à Zikzag).
   Identité conservée : bordeaux #7C1C27, blanc, noir, logo d'origine. */

:root {
  --m: #7C1C27;          /* bordeaux de la marque */
  --m-dark: #5a1119;     /* même teinte, plus sombre */
  --m-tint: #f8f2f2;     /* même teinte, très claire */
  --ink: #17171a;
  --body: #3c4047;
  --muted: #6a6f77;
  --line: #e7e1e2;
  --white: #fff;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --sans: Roboto, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.75; color: var(--body);
  background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--m); text-decoration: none; }
a:hover { color: var(--m-dark); }
:focus-visible { outline: 2px solid var(--m); outline-offset: 3px; }
::selection { background: var(--m); color: #fff; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--m); color: #fff; padding: 10px 16px; z-index: 3000; }
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; background: var(--m); color: #fff; border: 0; border-radius: 2px; cursor: pointer;
  font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 17px 30px;
  transition: background .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { background: var(--m-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(90, 17, 25, .8); }
.btn--sm { padding: 13px 20px; font-size: 12px; }
.btn--light { background: #fff; color: var(--m); }
.btn--light:hover { background: var(--m-tint); color: var(--m-dark); }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--m-dark); color: rgba(255, 255, 255, .85); font-size: 13px; line-height: 1; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar a { color: inherit; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__lang, .nav__lang { display: flex; gap: 4px; }
.lang { font-size: 12px; font-weight: 600; letter-spacing: .1em; padding: 6px 8px; border-radius: 2px; opacity: .7; }
.lang:hover, .lang.is-current { opacity: 1; background: rgba(255, 255, 255, .14); color: #fff; }
.nav__lang { display: none; }
@media (max-width: 720px) { .topbar__contact a:last-child { display: none; } }

/* ---------- En-tête et navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease);
}
body.is-scrolled .site-header { box-shadow: 0 10px 30px -18px rgba(40, 10, 14, .4); }
body.admin-bar .site-header { top: 32px; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand img { width: 168px; height: auto; transition: width .3s var(--ease); }
body.is-scrolled .brand img { width: 140px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list a { display: block; padding: 30px 14px; font-size: 14px; font-weight: 500; color: var(--ink); letter-spacing: .01em; position: relative; }
.nav__list > li > a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 22px; height: 2px; background: var(--m);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list > li:hover > a, .nav__list > li:focus-within > a, .nav__list .current-menu-item > a, .nav__list .current-menu-ancestor > a { color: var(--m); }
.nav__list > li:hover > a::after, .nav__list > li:focus-within > a::after, .nav__list .current-menu-item > a::after, .nav__list .current-menu-ancestor > a::after { transform: scaleX(1); }
.nav__list .menu-item-has-children > a { padding-right: 24px; }
.nav__list .menu-item-has-children > a::before {
  content: ''; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6;
}
.sub-menu {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; top: 100%; min-width: 250px;
  background: #fff; border-top: 2px solid var(--m); box-shadow: 0 24px 48px -20px rgba(30, 8, 12, .45);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
li:hover > .sub-menu, li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { padding: 11px 22px; font-size: 14.5px; font-weight: 400; }
.sub-menu a:hover { background: var(--m-tint); color: var(--m); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1099px) {
  :root { --header-h: 72px; }
  .brand img, body.is-scrolled .brand img { width: 132px; }
  .burger { display: block; }
  /* backdrop-filter ferait de l'en-tête le repère des éléments fixes : le menu serait écrasé à sa hauteur */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--header-h) + 1px); bottom: 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px var(--gut) 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s; z-index: 1001;
  }
  body.admin-bar .nav { top: calc(var(--header-h) + 33px); }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__list > li > a::after, .nav__list .menu-item-has-children > a::before { display: none; }
  .nav__list .menu-item-has-children > a { padding-right: 0; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; display: none; }
  li.is-open > .sub-menu { display: block; }
  .sub-menu a { font-size: 15.5px; padding: 12px 0; color: var(--body); }
  .nav__cta { margin-top: 24px; text-align: center; }
  .nav__lang { display: flex; margin-top: 18px; justify-content: center; }
  .nav__lang .lang { color: var(--m); background: var(--m-tint); opacity: 1; }
  .nav__lang .lang.is-current { background: var(--m); color: #fff; }
  .topbar__lang { display: none; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Diaporama d'accueil ---------- */
.hero { position: relative; height: clamp(420px, 68vh, 680px); background: var(--m-dark); overflow: hidden; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease; display: flex; align-items: flex-end; }
.hero__slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(40, 6, 12, .78) 0%, rgba(90, 17, 25, .35) 45%, rgba(0, 0, 0, .1) 100%); }
.hero__slide.is-active { opacity: 1; }
.hero__slide .wrap { position: relative; padding-bottom: clamp(72px, 12vh, 120px); }
.hero__word {
  margin: 0; font: 700 clamp(40px, 7.5vw, 96px)/1 var(--serif); letter-spacing: -.02em; color: #fff; text-transform: none;
  transform: translateY(24px); opacity: 0; transition: transform 1s var(--ease) .2s, opacity 1s ease .2s;
}
.hero__word::after { content: ''; display: block; width: 72px; height: 3px; background: #fff; margin-top: 22px; }
.hero__slide.is-active .hero__word { transform: none; opacity: 1; }
.hero__ui { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; align-items: center; gap: 22px; }
.hero__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); color: #fff;
  cursor: pointer; display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s;
}
.hero__arrow:hover { background: #fff; color: var(--m); border-color: #fff; }
.hero__prev .ico { transform: scaleX(-1); }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 34px; height: 3px; border: 0; padding: 0; background: rgba(255, 255, 255, .4); cursor: pointer; transition: background .3s; }
.hero__dot.is-active { background: #fff; }

/* ---------- Bandeau de titre ---------- */
.banner {
  position: relative; isolation: isolate; color: #fff; background: var(--m-dark) var(--bg, none) center / cover;
  padding: clamp(56px, 9vw, 104px) 0 clamp(44px, 7vw, 78px);
}
.banner::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(60, 10, 17, .94) 0%, rgba(124, 28, 39, .78) 50%, rgba(20, 20, 24, .42) 100%);
}
.banner h1 { color: #fff; font-size: clamp(32px, 5vw, 56px); margin: 0; }
.banner h1::after { content: ''; display: block; width: 64px; height: 3px; background: #fff; margin-top: 22px; opacity: .9; }
.crumb { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; color: rgba(255, 255, 255, .72); display: flex; flex-wrap: wrap; gap: 0; }
.crumb a { color: rgba(255, 255, 255, .72); }
.crumb a:hover { color: #fff; }
.crumb > * + *::before { content: '/'; margin: 0 10px; opacity: .5; }
.crumb [aria-current] { color: #fff; }

/* ---------- Sections ---------- */
.blk { padding: clamp(32px, 5vw, 56px) 0; }
.blk + .blk { padding-top: 0; }
.blk:has(.cols), .blk:has(.cards), .blk:has(.logos-wrap) { padding-top: clamp(28px, 4vw, 44px); }
.sec-title { text-align: center; max-width: 760px; margin: 0 auto clamp(8px, 2vw, 24px); }
.sec-title h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.sec-title h2::after { content: ''; display: block; width: 56px; height: 3px; background: var(--m); margin: 22px auto 0; }
.sec-title__eyebrow, .sec-title.is-eyebrow h2 {
  font: 600 13px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--m);
}
.sec-title.is-eyebrow h2 { margin: 0; }
.sec-title.is-eyebrow h2::after { margin-top: 18px; }
.cols .sec-title { text-align: left; margin-left: 0; margin-bottom: 14px; }
.cols .sec-title h2::after { margin-left: 0; }
.wtitle { font-size: clamp(24px, 2.6vw, 32px); color: var(--m); margin: 0 0 .9em; padding-bottom: 14px; position: relative; }
.wtitle::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--m); opacity: .6; }
.col--main > .wtitle:not(:first-child), .prose + .wtitle { margin-top: 1.4em; }

/* ---------- Texte ---------- */
.prose { max-width: 78ch; }
.cols .prose, .page .blk .wrap > .prose:only-child { max-width: none; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); color: var(--m); margin: 1.6em 0 .6em; }
.prose h3 { font-size: clamp(20px, 2vw, 25px); color: var(--m); margin: 1.6em 0 .5em; padding-top: .4em; }
.prose h4 { font-size: 19px; margin: 1.4em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--m); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(124, 28, 39, .35); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose img { border-radius: 3px; margin: 0 0 1.4em; box-shadow: 0 20px 40px -26px rgba(30, 8, 12, .55); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.prose th { background: var(--m-tint); color: var(--ink); }
.media { margin: 0 0 1.6em; }
.media img { border-radius: 3px; box-shadow: 0 20px 40px -26px rgba(30, 8, 12, .55); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.embed iframe, .map iframe { width: 100%; border: 0; display: block; }
.embed { aspect-ratio: 16 / 9; } .embed iframe { height: 100%; }

/* Plan du site en colonnes de listes (même rendu que le widget « plan du site » du FR) */
.cols--4 .prose h2, .cols--4 .prose h3, .cols--4 .prose h4 { font-size: 20px; color: var(--m); margin: 0 0 .5em; padding-top: 0; }
.cols--4 .prose ul { list-style: none; padding: 0; margin: 0; }
.cols--4 .prose li { padding: 6px 0; border-bottom: 1px solid var(--line); margin: 0; }
.cols--4 .prose li::marker { content: ''; }
.cols--4 .prose a { text-decoration: none; }

/* ---------- Colonnes ---------- */
.cols { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols--side { grid-template-columns: 270px minmax(0, 1fr); }
.col--main { min-width: 0; }
.col--main > * + .prose, .col--main > * + .profiles, .col--main > * + .cols { margin-top: 1.2em; }
.main--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.main__side { position: sticky; top: calc(var(--header-h) + 24px); }
.main__side .media { margin: 0; }
.main__side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
@media (max-width: 880px) { .main--split { grid-template-columns: 1fr; } .main__side { position: static; order: -1; max-width: 360px; } }
@media (max-width: 880px) { .cols--2, .cols--3, .cols--4, .cols--side { grid-template-columns: 1fr; } }
.sidenav-wrap { position: sticky; top: calc(var(--header-h) + 24px); }
.sidenav { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.sidenav a { display: block; padding: 11px 18px; margin-left: -2px; border-left: 2px solid transparent; color: var(--body); font-size: 15.5px; transition: color .2s, border-color .2s, background .2s; }
.sidenav a:hover { color: var(--m); background: var(--m-tint); }
.sidenav .current-menu-item > a { color: var(--m); font-weight: 600; border-left-color: var(--m); }
.cols--side .wtitle { margin-bottom: 18px; }
@media (max-width: 880px) { .sidenav-wrap { position: static; } .sidenav { display: flex; flex-wrap: wrap; gap: 8px; border: 0; } .sidenav a { border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; margin: 0; } .sidenav .current-menu-item > a { background: var(--m); color: #fff; border-color: var(--m); } }

/* ---------- Cartes (services, valeurs) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.cards:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards:has(> :nth-child(4):last-child), .cards:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 880px) { .cards, .cards:has(> :nth-child(3):last-child) { grid-template-columns: 1fr; } .cards:has(> :nth-child(4):last-child) { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; color: var(--body); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
a.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(60, 10, 17, .5); border-color: transparent; color: var(--body); }
.card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--m-tint); }
.card__img--portrait { aspect-ratio: 4 / 5; }
.card__img--portrait img { object-position: center top; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
a.card:hover .card__img img { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 26px 28px 28px; flex: 1; position: relative; }
.page { counter-reset: card; }
.cards--num .card__n::before { counter-increment: card; content: counter(card, decimal-leading-zero); }
.card__n { font: 600 12px/1 var(--sans); letter-spacing: .2em; color: var(--m); opacity: .8; }
.card h3 { font-size: 23px; margin: 0; color: var(--ink); transition: color .25s; }
a.card:hover h3 { color: var(--m); }
.card__desc { font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.card__more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--m); }
.card__more .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
a.card:hover .card__more .ico { transform: translateX(5px); }

.profiles { display: grid; gap: 24px; }
.profile { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; box-shadow: 0 30px 50px -36px rgba(60, 10, 17, .45); }
.profile__photo { margin: 0; background: var(--m-tint); }
.profile__photo img { width: 100%; height: 100%; min-height: 280px; max-height: 360px; object-fit: cover; object-position: center top; }
.profile__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.profile__role { margin: 0; font: 600 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--m); }
.profile__name { margin: 0 0 8px; font-size: clamp(24px, 2.6vw, 32px); }
.profile__contact { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.profile__contact li { display: flex; align-items: center; gap: 12px; }
.profile__contact a { color: var(--body); }
.profile__contact a:hover { color: var(--m); }
.profile__ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--m-tint); color: var(--m); display: grid; place-items: center; }
.profile__ico .ico { width: 17px; height: 17px; }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; } .profile__photo img { max-height: 320px; } }

/* ---------- Références clients : bande défilante (JS) ou défilement horizontal (sans JS) ---------- */
.logos-wrap { overflow-x: auto; scrollbar-width: thin; margin-top: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.logos { list-style: none; margin: 0; padding: 6px 0; display: flex; gap: 16px; width: max-content; }
.logos li { flex: none; width: 190px; height: 112px; background: #fff; border: 1px solid var(--line); border-radius: 3px; display: grid; place-items: center; padding: 18px 22px; transition: border-color .3s, box-shadow .3s; }
.logos li:hover { border-color: transparent; box-shadow: 0 18px 36px -22px rgba(60, 10, 17, .5); }
.logos img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.logos li:hover img { transform: scale(1.06); }
.logos-wrap.is-marquee { overflow: hidden; }
.logos-wrap.is-marquee .logos { animation: marquee var(--dur, 90s) linear infinite; }
.logos-wrap.is-marquee:hover .logos { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.is-home .blk:has(.sec-title.is-eyebrow) { border-top: 1px solid var(--line); margin-top: clamp(24px, 4vw, 48px); padding-top: clamp(36px, 5vw, 56px); padding-bottom: 0; }
.is-home .blk:has(.logos-wrap) { padding-top: 28px; padding-bottom: clamp(48px, 6vw, 72px); }

/* Mur de logos (page des références) : grille, logos en couleur */
.blk--wall { background: var(--m-tint); padding-bottom: clamp(36px, 5vw, 64px); }
.blk--wall .sec-title { margin-bottom: 28px; }
.logos-wall .logos { width: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; padding: 0; }
.logos-wall .logos li { width: auto; height: 108px; }

/* Références par secteur : cartes toujours visibles */
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.sector { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--m); border-radius: 3px; padding: 26px 28px 22px; transition: box-shadow .35s, transform .35s var(--ease); }
.sector:hover { box-shadow: 0 26px 46px -30px rgba(60, 10, 17, .5); transform: translateY(-3px); }
.sector header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sector h3 { font-size: 21px; margin: 0; color: var(--ink); }
.sector__n { flex: none; font: 600 12px/1 var(--sans); letter-spacing: .12em; color: var(--m); background: var(--m-tint); border-radius: 100px; padding: 6px 10px; }
.sector ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; font-size: 15.5px; line-height: 1.5; }
.sector li { break-inside: avoid; padding: 6px 0 6px 16px; position: relative; color: var(--body); }
.sector li::before { content: ''; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--m); opacity: .7; }
@media (max-width: 520px) { .sector ul { columns: 1; } }

/* ---------- Coordonnées, formulaires, carte ---------- */
.info { display: flex; align-items: center; gap: 18px; padding: 12px 0; color: var(--body); }
a.info:hover { color: var(--m); }
.info__ico { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--m-tint); color: var(--m); display: grid; place-items: center; transition: background .3s, color .3s; }
a.info:hover .info__ico { background: var(--m); color: #fff; }
.info__txt { line-height: 1.55; }
.info__txt p { margin: 0; }
.info a, .info__txt a { color: inherit; text-decoration: none; }
.col--form .wtitle { margin-bottom: 20px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 50px -34px rgba(60, 10, 17, .45); margin-bottom: 24px; }
.col--form .prose { font-size: 14px; line-height: 1.65; color: var(--muted); }
.map { margin-top: clamp(24px, 4vw, 40px); border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { height: 380px; }

.elementor-form-fields-wrapper, .wpcf7-form .row { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.elementor-field-group { flex: 1 1 100%; margin: 0; }
.elementor-field-group.elementor-col-50 { flex: 1 1 calc(50% - 7px); }
.elementor-field-group.elementor-col-33 { flex: 1 1 calc(33% - 10px); }
.wpcf7-form .row > div { flex: 1 1 100%; }
.wpcf7-form .row > .wgl_col-6 { flex: 1 1 calc(50% - 7px); }
@media (max-width: 560px) { .elementor-field-group.elementor-col-50, .wpcf7-form .row > .wgl_col-6 { flex-basis: 100%; } }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=tel], .form-card input[type=password], .form-card input[type=file],
.form-card select, .form-card textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid #d6cdce; border-radius: 2px;
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s;
}
.form-card textarea { min-height: 150px; resize: vertical; }
.form-card ::placeholder { color: #8c9097; opacity: 1; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--m); box-shadow: 0 0 0 3px rgba(124, 28, 39, .14); }
.form-card label { font-size: 14.5px; color: var(--body); }
.form-card .elementor-field-type-acceptance label, .form-card .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; }
.form-card input[type=checkbox] { accent-color: var(--m); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form-card .elementor-button, .form-card .wpcf7-submit, .form-card button[type=submit] {
  background: var(--m); color: #fff; border: 0; border-radius: 2px; cursor: pointer; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 17px 30px; width: 100%; transition: background .25s, transform .25s var(--ease);
}
.form-card .elementor-button:hover, .form-card .wpcf7-submit:hover { background: var(--m-dark); transform: translateY(-2px); }
.form-card .elementor-button[disabled], .form-card .wpcf7-submit[disabled] { opacity: .6; cursor: progress; }
.form-card .elementor-field-type-submit { flex: 1 1 100%; }
.form-card .elementor-field-group.elementor-error input, .form-card .wpcf7-not-valid { border-color: #b3261e; }
.form-card .elementor-message-danger, .form-card .wpcf7-not-valid-tip, .form-card .elementor-help-inline { color: #b3261e; font-size: 13.5px; display: block; margin-top: 4px; }
.form-card .elementor-message-success { color: #1f6a3a; background: #eef7f1; border-left: 3px solid #1f6a3a; padding: 12px 16px; margin-top: 14px; }
.form-card .elementor-message-danger:not(.elementor-help-inline) { background: #fbeeed; border-left: 3px solid #b3261e; padding: 12px 16px; margin-top: 14px; }
.form-card .wpcf7-response-output { margin: 14px 0 0; font-size: 14.5px; }
.form-card .wpcf7-spinner { display: none; }
.form-card a { text-decoration: underline; }

/* ---------- Accordéon, plan du site, bandeau ---------- */
.acc { max-width: 78ch; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 700 19px/1.35 var(--serif); color: var(--ink); transition: color .2s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 28px/1 var(--sans); color: var(--m); transition: transform .3s var(--ease); }
.acc details[open] > summary { color: var(--m); }
.acc details[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.acc details > .prose { padding: 0 0 20px; }
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.sitemap h3 { font-size: 20px; color: var(--m); }
.sitemap ul { list-style: none; margin: 0; padding: 0; }
.sitemap li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.banner-card { position: relative; display: block; border-radius: 3px; overflow: hidden; color: #fff; }
.banner-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; font: 700 24px/1.2 var(--serif); background: linear-gradient(0deg, rgba(60, 10, 17, .9), transparent); }
.notfound { text-align: center; padding-block: 40px; }
.notfound h2 { font-size: 32px; }

/* ---------- Appel à l'action ---------- */
.cta { background: var(--m-tint); border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0; }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.cta h2 { color: var(--ink); margin: 0; font-size: clamp(24px, 3vw, 34px); }
.cta .btn--light { background: var(--m); color: #fff; }
.cta .btn--light:hover { background: var(--m-dark); color: #fff; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--m); color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.7; margin-top: 0; }
.site-footer__cols { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 40px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 56px); }
@media (max-width: 960px) { .site-footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .site-footer__cols { grid-template-columns: 1fr; } }
.fcol h2 { font: 600 13px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #fff; margin: 0 0 22px; padding-bottom: 14px; position: relative; }
.fcol h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: rgba(255, 255, 255, .55); }
.fcol p { margin: 0 0 10px; }
.fcol a { color: rgba(255, 255, 255, .86); }
.fcol a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.fcol ul { list-style: none; margin: 0; padding: 0; }
.site-footer__bar { background: #0a0f1f; font-size: 13px; color: rgba(255, 255, 255, .55); text-align: center; padding: 18px 0; }
.site-footer__bar p { margin: 0; letter-spacing: .03em; }

/* ---------- Retour en haut ---------- */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--m); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(40, 6, 12, .7); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s, background .2s; }
.totop .ico { transform: rotate(-90deg); }
.totop:hover { background: var(--m-dark); }
body.is-scrolled-far .totop { opacity: 1; visibility: visible; transform: none; }
body:has(.cky-consent-container:not(.cky-hide)) .totop { bottom: 96px; }

/* ---------- Apparition douce ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Bandeau cookies ---------- */
.cky-consent-container { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; background: #fff; border-top: 3px solid var(--m); box-shadow: 0 -20px 50px -30px rgba(0, 0, 0, .5); font-size: 14px; line-height: 1.6; color: var(--body); }
.cky-consent-container.cky-hide { display: none; }
.cky-consent-bar { max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 18px var(--gut); }
.cky-notice-group { display: flex; gap: 12px 32px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cky-notice-des { flex: 1 1 520px; }
.cky-notice-des p { margin: 0; }
.cky-notice-btn-wrapper { display: flex; gap: 10px; flex-wrap: wrap; }
.cky-title:empty { display: none; }
.cky-btn { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 13px 20px; border-radius: 2px; cursor: pointer; border: 1px solid var(--m); background: #fff; color: var(--m); transition: background .2s, color .2s; }
.cky-btn:hover { background: var(--m-tint); }
.cky-btn-accept { background: var(--m); color: #fff; }
.cky-btn-accept:hover { background: var(--m-dark); color: #fff; }
.cky-preference-wrapper { display: none; }
.cky-consent-bar-expand .cky-preference-wrapper { display: block; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 18px var(--gut); max-height: 70vh; overflow-y: auto; }
.cky-consent-bar-expand .cky-consent-bar { display: none; }
.cky-preference-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cky-preference-title { font: 700 20px/1.3 var(--serif); color: var(--ink); }
.cky-btn-close { background: none; border: 0; cursor: pointer; padding: 6px; }
.cky-btn-close img { width: 16px; height: 16px; }
.cky-show-desc-btn { background: none; border: 0; color: var(--m); cursor: pointer; font-weight: 600; padding: 0 0 0 6px; }
.cky-accordion { border-top: 1px solid var(--line); padding: 12px 0; }
.cky-accordion-item { display: flex; gap: 10px; align-items: flex-start; }
.cky-accordion-chevron { display: none; }
.cky-accordion-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.cky-accordion-btn { background: none; border: 0; font: 600 15px var(--sans); color: var(--ink); cursor: pointer; padding: 0; }
.cky-always-active { font-size: 12px; font-weight: 600; color: #1f6a3a; }
.cky-accordion-header-des p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.cky-accordion-body { display: none; padding-left: 0; }
.cky-accordion-active .cky-accordion-body { display: block; }
.cky-footer-wrapper { padding-top: 14px; border-top: 1px solid var(--line); }
.cky-prefrence-btn-wrapper { display: flex; gap: 10px; flex-wrap: wrap; }
.cky-footer-shadow { display: none; }
.cky-btn-revisit-wrapper { position: fixed; left: 16px; bottom: 16px; z-index: 1900; }
.cky-btn-revisit-wrapper.cky-revisit-hide { display: none; }
.cky-btn-revisit { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--m); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.cky-btn-revisit img { width: 22px; height: 22px; filter: brightness(0) invert(1); }

/* Bandeau cookies : le gabarit d'origine porte ses couleurs en ligne (rouge foncé, boutons verts) ; on harmonise */
.cky-consent-container, .cky-consent-bar, .cky-preference-wrapper, .cky-preference-center, .cky-preference { background: #fff !important; color: var(--body) !important; }
.cky-consent-container { border-top: 3px solid var(--m) !important; }
.cky-notice-des, .cky-notice-des p, .cky-preference-content-wrapper, .cky-preference-content-wrapper p, .cky-accordion-header-des p, .cky-always-active { color: var(--body) !important; }
.cky-preference-title, .cky-accordion-btn, .cky-title { color: var(--ink) !important; }
.cky-policy, .cky-notice-des a, .cky-show-desc-btn { color: var(--m) !important; background: none !important; text-decoration: underline !important; }
.cky-btn { color: var(--m) !important; background: #fff !important; border: 1px solid var(--m) !important; }
.cky-btn:hover { background: var(--m-tint) !important; }
.cky-btn.cky-btn-accept { background: var(--m) !important; color: #fff !important; border-color: var(--m) !important; }
.cky-btn.cky-btn-accept:hover { background: var(--m-dark) !important; }
.cky-footer-wrapper, .cky-footer-shadow { background: #fff !important; }
.cky-btn-revisit-wrapper { background: var(--m) !important; border-radius: 50% !important; }
