/* ==========================================================================
   AUBIN GROUP — couche « pro » additive : fiches produit / formation /
   réalisations, galerie, onglets, accordéons, animations.
   Ne remplace aucune règle existante (chargée après digency.css).
   ========================================================================== */

/* ---------- Animations d'apparition ---------- */
.js .rv { opacity: 1; transform: translateY(18px); transition: transform .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

.sh-flex { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.page-head .accent { color: #ff7d83; }
.page-head.slim { padding: 22px 0; }
.page-head.slim .dg-crumbs { margin: 0; font-size: 14px; }
.page-head.slim::after { display: none; }
.chip { display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; background: var(--navy-soft); color: var(--navy); margin: 0 6px 6px 0; }
.chip.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.chip.hot { background: var(--red); color: #fff; }

/* ---------- Cartes produit (améliorées) ---------- */
.product { overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product .pic { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; text-decoration: none; }
.product .pic img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.product:hover .pic img { transform: scale(1.08); }
.pic-view { position: absolute; left: 0; right: 0; bottom: 0; padding: 11px; text-align: center; background: linear-gradient(0deg, rgba(7,44,74,.92), rgba(7,44,74,.0)); color: #fff; font-size: 13px; font-weight: 700; transform: translateY(100%); transition: transform .35s; }
.product:hover .pic-view { transform: none; }
.product h3 a { color: inherit; text-decoration: none; } .product h3 a:hover { color: var(--red); }
.product-tag.promo { background: var(--red); }
.price .old { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 8px; }
.card-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--red); text-decoration: none; }
.card-more i { transition: transform .25s; margin-left: 4px; } .card-more:hover i { transform: translateX(5px); }

/* ---------- Galerie ---------- */
.gal-main { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; cursor: zoom-in; padding: 0; }
.gal-main img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .5s, opacity .25s; }
.gal-main:hover img { transform: scale(1.05); }
.gal-main.gal-empty { display: flex; align-items: center; justify-content: center; font-size: 110px; background: var(--soft-blue); cursor: default; }
.gal-zoom { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(7,44,74,.85); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.gal-main:hover .gal-zoom { opacity: 1; }
.gal-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gal-th { width: 74px; height: 74px; padding: 0; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; transition: border-color .2s, transform .2s; }
.gal-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-th:hover { transform: translateY(-2px); } .gal-th.on { border-color: var(--red); }

/* Visionneuse plein écran */
.lb { position: fixed; inset: 0; z-index: 9999; background: rgba(4,23,38,.94); display: none; align-items: center; justify-content: center; padding: 30px; }
.lb.open { display: flex; animation: lbin .25s; }
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }
.lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; transition: background .2s; }
.lb button:hover { background: var(--red); }
.lb .x { top: 18px; right: 18px; } .lb .pv { left: 18px; top: 50%; } .lb .nx { right: 18px; top: 50%; }

/* ---------- Fiche produit ---------- */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.pd-grid > div:first-child { position: sticky; top: 100px; }
.pd-info h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 8px 0 12px; }
.pd-lead { font-size: 16px; line-height: 1.7; color: var(--ink-light); }
.pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 8px; }
.pd-price b { font-family: 'Outfit', sans-serif; font-size: 38px; color: var(--navy); line-height: 1; }
.pd-price b small { font-size: 16px; font-weight: 700; }
.pd-price s { color: var(--muted); font-size: 18px; }
.pd-price .save { background: #ecfdf5; color: #047857; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.pd-stock { font-weight: 800; font-size: 14px; margin-bottom: 18px; } .pd-stock.ok { color: var(--ok, #059669); } .pd-stock.no { color: var(--danger, #dc2626); }
.pd-hl { list-style: none; padding: 18px 20px; margin: 0 0 22px; background: var(--soft-blue); border-radius: var(--radius); display: grid; gap: 10px; }
.pd-hl li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.pd-hl i { color: var(--red); margin-top: 3px; }
.pd-buy { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; }
.primary.big { padding: 14px 30px; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 12px; }
.pd-buy .primary.big { flex: 1 1 220px; }
.pd-buy .primary:disabled { opacity: .5; cursor: not-allowed; }
.qty { display: inline-flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { width: 44px; border: 0; background: var(--soft); font-size: 20px; font-weight: 700; color: var(--navy); cursor: pointer; transition: background .2s; }
.qty button:hover { background: var(--red); color: #fff; }
.qty input { width: 52px; text-align: center; border: 0; font-weight: 800; font-size: 16px; color: var(--navy); background: #fff; padding: 0; }
.pd-alt { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.pd-alt .secondary { padding: 9px 18px; font-size: 13px; }
.pd-meta { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.pd-meta li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd-meta span { color: var(--muted); } .pd-meta b { color: var(--navy); text-align: right; }
.pd-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.pd-trust div { text-align: center; padding: 14px 8px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s; }
.pd-trust div:hover { border-color: var(--red); transform: translateY(-3px); }
.pd-trust i { display: block; font-size: 22px; color: var(--red); margin-bottom: 6px; }
.pd-trust b { display: block; font-size: 13px; color: var(--navy); } .pd-trust span { font-size: 12px; color: var(--muted); }

/* Onglets */
.tabs { margin-top: 64px; }
.tab-nav { display: flex; gap: 6px; border-bottom: 2px solid var(--line); overflow-x: auto; }
.tab-nav button { border: 0; background: none; padding: 14px 22px; font-weight: 800; font-size: 15px; color: var(--muted); cursor: pointer; white-space: nowrap; position: relative; font-family: inherit; }
.tab-nav button::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .3s; }
.tab-nav button.on { color: var(--navy); } .tab-nav button.on::after { transform: scaleX(1); }
.tab-pane { display: none; padding: 32px 0 0; animation: tabin .4s; } .tab-pane.on { display: block; }
@keyframes tabin { from { opacity: 1; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.spec-table { width: 100%; border-collapse: collapse; max-width: 860px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; font-size: 14.5px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 32%; color: var(--navy); background: var(--soft-blue); font-weight: 800; }
.spec-table tr:hover td { background: var(--soft); }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.tick-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 30px; }
.tick-list li { position: relative; padding-left: 30px; line-height: 1.55; font-size: 15px; color: var(--ink-light); }
.tick-list li::before { content: '\f00c'; font-family: FontAwesome; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--red-light); color: var(--red); font-size: 10px; text-align: center; line-height: 21px; }
.dg-prose { max-width: 820px; font-size: 15.5px; line-height: 1.85; }
.dg-prose h3 { margin: 22px 0 8px; }

/* Barre d'achat fixe (mobile + scroll) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 3px solid var(--red); box-shadow: 0 -8px 24px rgba(7,44,74,.14); transform: translateY(110%); transition: transform .35s; }
.buybar.show { transform: none; }
.buybar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.buybar span { font-size: 14px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Fiche formation / réalisation ---------- */
.fd-hero { position: relative; color: #fff; padding: 70px 0 60px; background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, var(--navy-light)); overflow: hidden; }
.fd-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(184,34,40,.35), transparent 45%); }
.fd-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; filter: saturate(.8); transform: scale(1.04); animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.14); } }
.fd-in { position: relative; max-width: 900px; margin-left: auto; margin-right: auto; }
.fd-hero .dg-crumbs { margin: 0 0 18px; font-size: 14px; }
.fd-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.1; margin: 10px 0 14px; }
.fd-hero p { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.88); max-width: 720px; }
.fd-facts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.fd-facts div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); border-radius: 14px; padding: 12px 18px; min-width: 130px; }
.fd-facts i { color: #ff7d83; margin-right: 6px; } .fd-facts span { font-size: 12px; opacity: .75; display: block; } .fd-facts b { font-size: 15px; }
.fd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.fd-block { margin-bottom: 46px; }
.fd-block h2 { font-size: 26px; margin: 0 0 18px; position: relative; padding-bottom: 12px; }
.fd-block h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--red); border-radius: 3px; }
.fd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.fd-side { position: sticky; top: 100px; }
.fd-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.fd-card .primary, .fd-card .secondary { display: flex; justify-content: center; margin-top: 14px; width: 100%; text-align: center; }
.fd-price span { color: var(--muted); font-size: 13px; display: block; } .fd-price b { font-family: 'Outfit', sans-serif; font-size: 34px; color: var(--navy); }
.fd-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.photo-grid a { display: block; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; } .photo-grid a:hover img { transform: scale(1.1); }
.course-pic { display: block; margin: -2px -2px 16px; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.course-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; } .course:hover .course-pic img { transform: scale(1.07); }
.course h3 a { color: inherit; text-decoration: none; } .course h3 a:hover { color: var(--red); }
.course-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; } .course-actions .primary, .course-actions .secondary { padding: 8px 18px; font-size: 13px; }
.course.rv:hover { transform: translateY(-5px); }

/* Accordéon */
.acc-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: #fff; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.acc-item.open { border-color: var(--navy); box-shadow: var(--shadow); }
.acc-h { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; border: 0; background: none; padding: 18px 20px; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 16px; color: var(--navy); }
.acc-n { background: var(--navy); color: #fff; border-radius: 10px; padding: 3px 9px; font-size: 13px; }
.acc-item.open .acc-n { background: var(--red); }
.acc-t { flex: 1; } .acc-h i { font-size: 22px; transition: transform .3s; } .acc-item.open .acc-h i { transform: rotate(180deg); }
.acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc-item.open .acc-b { grid-template-rows: 1fr; }
.acc-b > div { overflow: hidden; } .acc-b > div > * { margin: 0 20px 18px; } .acc-b p { color: var(--ink-light); line-height: 1.7; }

/* Étude de cas */
.cs { background: var(--soft-blue); border-radius: var(--radius-lg); padding: 26px; position: relative; } .cs.c2 { background: var(--navy); } .cs.c2 h2, .cs.c2 p, .cs.c2 h3 { color: #fff; }
.cs > span { position: absolute; right: 18px; top: 8px; font-family: 'Outfit'; font-size: 54px; font-weight: 800; opacity: .12; }
.cs h2 { font-size: 22px; } .cs h2::after { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; } .tags span { border: 1.5px solid var(--navy); color: var(--navy); border-radius: 999px; padding: 6px 15px; font-weight: 700; font-size: 13.5px; transition: .2s; } .tags span:hover { background: var(--navy); color: #fff; }
.pn { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 30px; }
.pn a { display: block; flex: 1; max-width: 48%; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: .25s; } .pn a.r { text-align: right; margin-left: auto; }
.pn a:hover { border-color: var(--red); transform: translateY(-3px); } .pn small { color: var(--muted); display: block; } .pn b { color: var(--navy); }

/* ---------- Catalogue des réalisations ---------- */
.rstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; }
.rstats div { text-align: center; padding: 22px 10px; border-radius: var(--radius-lg); background: var(--navy); color: #fff; }
.rstats div:nth-child(2) { background: var(--red); }
.rstats b { display: block; font-family: 'Outfit'; font-size: 38px; line-height: 1; } .rstats span { font-size: 13px; opacity: .85; }
.rfilter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; justify-content: center; }
.rfilter button { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 20px; font-weight: 800; font-size: 14px; color: var(--navy); cursor: pointer; font-family: inherit; transition: .25s; }
.rfilter button i { font-style: normal; font-size: 11px; background: var(--soft); border-radius: 999px; padding: 2px 7px; margin-left: 4px; }
.rfilter button:hover { border-color: var(--navy); } .rfilter button.on { background: var(--navy); border-color: var(--navy); color: #fff; } .rfilter button.on i { background: var(--red); color: #fff; }
.rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 270px; grid-auto-flow: dense; gap: 18px; }
.rgrid.three { grid-auto-rows: 300px; }
.rtile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); text-decoration: none; color: #fff; isolation: isolate; }
.rtile.big { grid-column: span 2; grid-row: span 2; }
.rtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); z-index: -2; }
.rtile:hover img { transform: scale(1.1); }
.rtile-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 60px; opacity: .25; z-index: -2; }
.rtile-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4,23,38,.92) 0%, rgba(4,23,38,.35) 45%, rgba(4,23,38,0) 70%); transition: background .4s; }
.rtile:hover .rtile-shade { background: linear-gradient(0deg, rgba(4,23,38,.96) 0%, rgba(7,44,74,.78) 100%); }
.rtile-cat { position: absolute; left: 16px; top: 16px; background: var(--red); padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; }
.rtile-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 4px; }
.rtile-info b { font-family: 'Outfit'; font-size: 20px; line-height: 1.2; } .rtile.big .rtile-info b { font-size: 28px; }
.rtile-info small { opacity: .8; font-size: 13px; }
.rtile-info em { font-style: normal; font-size: 13.5px; line-height: 1.5; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .4s, max-height .4s; }
.rtile:hover .rtile-info em, .rtile.big .rtile-info em { opacity: .9; max-height: 80px; }
.rtile-go { font-weight: 800; font-size: 13px; color: #ff9a9f; transform: translateY(8px); opacity: 0; transition: .35s; }
.rtile:hover .rtile-go { transform: none; opacity: 1; }
.rtile.hide { display: none; }
.rempty { text-align: center; color: var(--muted); padding: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; } .pd-grid > div:first-child, .fd-side { position: static; }
  .fd-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rgrid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tick-list.two, .fd-two { grid-template-columns: minmax(0, 1fr); }
  .rgrid, .rgrid.three { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 250px; } .rtile.big { grid-column: auto; grid-row: auto; }
  .rtile-info em { opacity: .9; max-height: 60px; } .rtile-go { opacity: 1; transform: none; }
  .rstats b { font-size: 28px; } .pd-trust { grid-template-columns: 1fr; } .pn { flex-direction: column; } .pn a { max-width: 100%; }
  .spec-table th { width: 40%; } .tab-nav button { padding: 12px 14px; }
  body.has-buybar { padding-bottom: 60px; }
}
.js .rv.in.product:hover { transform: translateY(-6px); }
.js .rv.in.course:hover { transform: translateY(-5px); }
.js .rv.product, .js .rv.course { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; transition-delay: var(--d, 0s), 0s, 0s, 0s; }
.footer b { color: #fff !important; }
.dg-hero-art .b1.has-photo{padding:0;overflow:hidden}.dg-hero-art .b1.has-photo img{width:100%;max-width:none;height:100%;object-fit:cover}

/* ---------- Bannière d'accueil animée (diaporama) ---------- */
.dg-slider { position: relative; min-height: 600px; height: 78vh; max-height: 760px; overflow: hidden; background: var(--navy-dark, #041726); color: #fff; }
.dg-slider .sl { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s; display: flex; align-items: center; }
.dg-slider .sl.on { opacity: 1; visibility: visible; z-index: 2; }
.sl-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy-dark, #041726), var(--navy, #072C4A) 60%, var(--navy-light, #0d4470)); background-size: cover; background-position: center; transform: scale(1.02); }
.sl.on .sl-bg { animation: slzoom 9s ease-out forwards; }
@keyframes slzoom { from { transform: scale(1.02); } to { transform: scale(1.16); } }
.sl-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,23,38,.88) 0%, rgba(4,23,38,.55) 55%, rgba(4,23,38,.15) 100%); }
.sl-in { position: relative; z-index: 3; max-width: 1200px; width: 100%; padding-top: 40px; padding-bottom: 40px; }
.sl-in > * { max-width: 720px; }
.sl-eye { display: inline-block; background: var(--red); color: #fff; padding: 6px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.sl-h { color: #fff !important; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; font-weight: 700; margin: 0 0 18px; }
.sl-h em { font-style: normal; color: #ff7d83; }
.sl-p { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.9); margin: 0 0 28px; }
.sl-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.secondary.light { color: #fff; border-color: #fff; } .secondary.light:hover { background: #fff; color: var(--navy); }
.sl .sl-eye, .sl .sl-h, .sl .sl-p, .sl .sl-btns { opacity: 1; transform: translateY(18px); }
.sl.on .sl-eye, .sl.on .sl-h, .sl.on .sl-p, .sl.on .sl-btns { animation: slup .9s cubic-bezier(.2,.7,.2,1) forwards; }
.sl.on .sl-eye { animation-delay: .25s; } .sl.on .sl-h { animation-delay: .45s; } .sl.on .sl-p { animation-delay: .7s; } .sl.on .sl-btns { animation-delay: .95s; }
@keyframes slup { from { transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sl-nav { position: absolute; top: 50%; z-index: 5; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); background: rgba(7,44,74,.4); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; transition: .25s; backdrop-filter: blur(4px); }
.sl-nav:hover { background: var(--red); border-color: var(--red); } .sl-prev { left: 22px; } .sl-next { right: 22px; }
.sl-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 10px; }
.sl-dots button { width: 11px; height: 11px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: .3s; }
.sl-dots button.on { width: 34px; background: var(--red); }
.sl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.15); z-index: 5; }
.sl-bar i { display: block; height: 100%; width: 0; background: var(--red); }
.sl-bar i.run { animation: slbar var(--iv, 6.5s) linear forwards; } @keyframes slbar { to { width: 100%; } }
.hc-img img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.map-box { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-box iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 18px; background: #fff; border-top: 3px solid var(--red); }
.map-bar b { color: var(--navy); } .map-bar span { color: var(--muted); font-size: 14px; }
.pg-hero-img { max-width: 1000px; margin: 0 auto 36px; } .pg-hero-img img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.pg-cta { text-align: center; margin-top: 40px; }
@media (max-width: 700px) {
  .dg-slider { min-height: 560px; height: 86vh; } .sl-nav { display: none; } .sl-p { font-size: 16px; }
  .sl-shade { background: linear-gradient(0deg, rgba(4,23,38,.9), rgba(4,23,38,.5)); } .map-box iframe { height: 320px; }
}

/* ====== v5 : images domaines / services / témoignages, badges état produit ====== */
.dg-item.has-pic { padding-top: 0; overflow: hidden; }
.dg-item .dg-pic { margin: 0 -1px 18px; height: 160px; overflow: hidden; }
.dg-item .dg-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.dg-item:hover .dg-pic img { transform: scale(1.06); }
.tile .t-img { margin: -26px -26px 16px; height: 150px; overflow: hidden; }
.tile .t-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tile:hover .t-img img { transform: scale(1.06); }
.tile.dom.has-img h3, .tile.dom.has-img p, .tile.dom.has-img .d-num, .tile.dom.has-img .d-meta { color: #fff; }
.card.has-pic { overflow: hidden; }
.card .card-pic { margin: -26px -26px 14px; height: 150px; overflow: hidden; }
.card .card-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-head.has-bg { background-image: linear-gradient(110deg, rgba(7,44,74,.92), rgba(7,44,74,.7)), var(--ph-img); background-size: cover; background-position: center; }
.page-head.has-bg h1, .page-head.has-bg p, .page-head.has-bg .eyebrow { color: #fff; }
.dg-testi .t-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 10px; border: 3px solid #fff; box-shadow: 0 6px 18px rgba(7,44,74,.2); }
.product-cond { position: absolute; left: 12px; bottom: 12px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; z-index: 2; }
.product-cond.new { background: #16a34a; } .product-cond.used { background: #d97706; }

/* ===== v5 : styles de bannières (inactifs par défaut) ===== */
body.bn-centered .page-head{text-align:center}
body.bn-centered .page-head p{margin-left:auto;margin-right:auto}
body.bn-centered .page-head h1::after{content:"";display:block;width:70px;height:4px;border-radius:4px;background:#b82228;margin:14px auto 0}
body.bn-centered .page-head .dg-crumbs{justify-content:center}
body.bn-navy .page-head,body.bn-gradient .page-head,body.bn-pattern .page-head{color:#fff;border-bottom:0}
body.bn-navy .page-head{background:#072C4A}
body.bn-gradient .page-head{background:linear-gradient(120deg,#072C4A 0%,#0b3d63 55%,#b82228 130%)}
body.bn-pattern .page-head{background:radial-gradient(rgba(255,255,255,.14) 1.4px,transparent 1.6px) 0 0/22px 22px,linear-gradient(135deg,#072C4A,#0b3d63)}
body.bn-navy .page-head h1,body.bn-gradient .page-head h1,body.bn-pattern .page-head h1,body.bn-photo .page-head h1,
body.bn-navy .page-head p,body.bn-gradient .page-head p,body.bn-pattern .page-head p,body.bn-photo .page-head p,
body.bn-navy .page-head .eyebrow,body.bn-gradient .page-head .eyebrow,body.bn-pattern .page-head .eyebrow,body.bn-photo .page-head .eyebrow,
body.bn-navy .page-head .dg-crumbs,body.bn-gradient .page-head .dg-crumbs,body.bn-pattern .page-head .dg-crumbs,body.bn-photo .page-head .dg-crumbs,
body.bn-navy .page-head .dg-crumbs a,body.bn-gradient .page-head .dg-crumbs a,body.bn-pattern .page-head .dg-crumbs a,body.bn-photo .page-head .dg-crumbs a{color:#fff}
body.bn-navy .page-head .accent,body.bn-gradient .page-head .accent,body.bn-pattern .page-head .accent,body.bn-photo .page-head .accent{color:#ff9aa0}
body.bn-photo:not(.bn-img) .page-head{background:linear-gradient(135deg,#072C4A,#0b3d63);color:#fff;border-bottom:0}
body.bn-img .page-head:not(.has-bg){background-image:linear-gradient(110deg,rgba(7,44,74,.9),rgba(7,44,74,.55)),var(--bn-img);background-size:cover;background-position:center;border-bottom:0}
body.bn-img .page-head:not(.has-bg) h1,body.bn-img .page-head:not(.has-bg) p,body.bn-img .page-head:not(.has-bg) .eyebrow,body.bn-img .page-head:not(.has-bg) .dg-crumbs,body.bn-img .page-head:not(.has-bg) .dg-crumbs a{color:#fff}
body.bn-img .page-head:not(.has-bg) .accent{color:#ff9aa0}
/* accueil */
body.hero-centered .dg-hero .wrap{grid-template-columns:1fr;text-align:center}
body.hero-centered .dg-hero .dg-hero-art{display:none}
body.hero-centered .dg-hero p{margin-left:auto;margin-right:auto}
body.hero-centered .dg-hero .actions-row{justify-content:center}
body.hero-dark .dg-hero{background:linear-gradient(135deg,#072C4A,#0b3d63)}
body.hero-gradient .dg-hero{background:linear-gradient(120deg,#072C4A 0%,#0b3d63 55%,#b82228 140%)}
body.hero-photo .dg-hero{background:linear-gradient(110deg,rgba(7,44,74,.92),rgba(7,44,74,.55)),var(--hero-img,linear-gradient(135deg,#072C4A,#0b3d63));background-size:cover;background-position:center}
body.hero-photo .dg-hero .wrap{grid-template-columns:1fr}
body.hero-photo .dg-hero .dg-hero-art{display:none}
body.hero-dark .dg-hero h1,body.hero-gradient .dg-hero h1,body.hero-photo .dg-hero h1,body.hero-dark .dg-hero p,body.hero-gradient .dg-hero p,body.hero-photo .dg-hero p{color:#fff}
body.hero-dark .dg-hero h1 em,body.hero-gradient .dg-hero h1 em,body.hero-photo .dg-hero h1 em{color:#ff9aa0}
body.hero-dark .dg-hero .secondary,body.hero-gradient .dg-hero .secondary,body.hero-photo .dg-hero .secondary{color:#fff;border-color:rgba(255,255,255,.55);background:transparent}
/* publicités encadrées */
.ad-slot{padding:22px 0}
.ad-wrap{display:grid;gap:16px}
.ad-frame{position:relative;display:block;overflow:hidden;background:#fff;border:1px solid #dbe3ec;border-radius:16px;box-shadow:0 8px 28px rgba(7,44,74,.1);transition:transform .25s,box-shadow .25s;text-decoration:none}
a.ad-frame:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(7,44,74,.16)}
.ad-frame img{display:block;width:100%;height:auto;object-fit:cover;aspect-ratio:16/4.5}
.ad-label{position:absolute;top:10px;left:10px;z-index:2;background:rgba(7,44,74,.88);color:#fff;font-size:10.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;padding:3px 10px;border-radius:99px}
.ad-wide{border-radius:6px}.ad-wide img{aspect-ratio:21/5}
.ad-compact{max-width:760px;margin:0 auto;width:100%}.ad-compact img{aspect-ratio:16/5}
.ad-framed{border:4px solid #072C4A;border-radius:10px;box-shadow:none}
.ad-framed::after{content:"";position:absolute;right:0;bottom:0;width:46px;height:46px;background:linear-gradient(135deg,transparent 50%,#b82228 50%)}
@media(max-width:640px){.ad-frame img,.ad-wide img,.ad-compact img{aspect-ratio:16/8}.ad-slot{padding:14px 0}}

/* ===== v5 : WiFi Zone — livraison des tickets & gestion MikroTik ===== */
.wz-deliver{display:flex;gap:18px;align-items:center;background:linear-gradient(120deg,#072C4A,#0b3d63);color:#fff;border-radius:18px;padding:22px 26px;box-shadow:0 14px 36px rgba(7,44,74,.18)}
.wz-deliver h3{margin:0 0 4px;color:#fff;font-size:20px}.wz-deliver p{margin:0;color:#dbe7f3;max-width:760px}.wz-ic{font-size:40px}
.wz-feats{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin-top:22px}
.wz-feats>div{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:18px;box-shadow:0 6px 20px rgba(7,44,74,.05);transition:transform .25s}
.wz-feats>div:hover{transform:translateY(-3px)}.wz-feats b{display:block;color:#072C4A;margin-bottom:4px}.wz-feats span{color:#475569;font-size:14px}
.wz-sub{text-align:center;margin:34px 0 14px;color:#072C4A}
.wz-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.wz-plan{position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:24px;display:flex;flex-direction:column;box-shadow:0 8px 26px rgba(7,44,74,.07)}
.wz-plan.pop{border:2px solid #b82228;box-shadow:0 16px 40px rgba(184,34,40,.15)}
.wz-plan h4{margin:0;color:#072C4A;font-size:20px}.wz-price b{font-size:32px;color:#b82228}.wz-price small{color:#64748b}
.wz-plan ul{padding-left:18px;margin:8px 0 18px;flex:1;line-height:1.8;font-size:14px}.wz-plan p{color:#64748b;font-size:14px}
.wz-rib{position:absolute;top:-12px;left:50%;transform:translateX(-50%);background:#b82228;color:#fff;font-size:11px;font-weight:700;padding:4px 14px;border-radius:99px;letter-spacing:.06em}
@media(max-width:640px){.wz-deliver{flex-direction:column;text-align:center}}

/* ---- Avis clients, inscriptions aux formations (v2.2) ---- */
.rv-stars{display:inline-flex;gap:1px;color:#d5dbe5;font-size:16px;letter-spacing:0;vertical-align:middle}
.rv-stars i{font-style:normal}.rv-stars i.on{color:#f5a623}.rv-stars i.half{color:#f9c46b}
.rv-sum{font-size:14px;font-weight:600;color:var(--muted);margin-left:10px;white-space:nowrap}.rv-sum b{color:var(--navy)}
.rv-list{display:grid;gap:14px;margin:14px 0 22px}
.rv-item{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.rv-head{display:flex;gap:12px;align-items:center;margin-bottom:6px}
.rv-av{width:40px;height:40px;border-radius:50%;background:var(--navy);color:#fff;display:inline-flex;align-items:center;justify-content:center;font:800 14px Outfit,sans-serif;flex:none}
.rv-ver{font-size:11px;font-weight:700;color:#128c4a;background:#e3f7ec;padding:2px 8px;border-radius:99px;margin-left:6px}
.rv-item p{margin:6px 0 0;color:var(--ink-light,#334155)}
.rv-reply{margin-top:10px;background:var(--soft,#f8fafc);border-left:3px solid var(--red);padding:10px 14px;border-radius:0 10px 10px 0;font-size:14px}
.rv-form{background:var(--soft,#f8fafc);border:1px solid var(--line);border-radius:14px;padding:20px}
.rv-form h3{margin:0 0 10px;color:var(--navy)}
.rv-pick{display:inline-flex;flex-direction:row-reverse;gap:2px;margin-bottom:10px}
.rv-pick input{position:absolute;opacity:0;pointer-events:none}
.rv-pick label{font-size:30px;line-height:1;color:#d5dbe5;cursor:pointer;transition:color .15s}
.rv-pick label:hover,.rv-pick label:hover~label,.rv-pick input:checked~label{color:#f5a623}
.rv-pick input:focus-visible+label{outline:2px solid var(--navy);border-radius:4px}
.fd-seats{background:#eef4f8;color:var(--navy);font-weight:800;font-size:14px;text-align:center;padding:10px;border-radius:10px;margin:14px 0 4px}
.fd-seats.low{background:#fff4e5;color:#b45309}.fd-seats.no{background:#fdecec;color:#b82228}
.reg-card h3{font-family:Outfit,sans-serif}
.reg-ok{text-align:center}.reg-ok span{font-size:42px}.reg-ok h3{margin:6px 0;color:var(--navy)}
