/* =====================================================================
   SolidCreativity - habillage v2 (inspiré de solidz.eu)
   Mise en page de la home. Chargé par components/head.php quand
   $layout === 'v2', après css/sc-v2-chrome.css (variables, menu, hero).
   ===================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.v2 { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.v2.v2-noscroll { overflow: hidden; }
.v2 img { max-width: 100%; height: auto; }
.v2 a { color: var(--green-dk); }
.v2 a:hover { color: var(--green-dkr); }
.v2 h1, .v2 h2, .v2 h3, .v2 h4 { font-family: var(--font); color: var(--ink); }
.v2 h2 { font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.35rem); line-height: 1.18; letter-spacing: -.015em; margin: 12px 0 16px; }
.v2 h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.3; margin: 0 0 8px; }
.v2 p { margin: 0 0 12px; }
.v2 button { font: inherit; }

/* Utilitaires repris de Bootstrap pour les fragments partagés */
.v2 .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.v2 .visually-hidden-focusable a { position: absolute; left: -9999px; }
.v2 .visually-hidden-focusable a:focus { left: 16px; top: 80px; z-index: 200; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow-h); }
.v2 .skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.v2 .skip-link:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; padding: .5rem 1rem; background: #fff; color: #000; z-index: 9999; outline: 2px solid var(--green); }
.v2 .text-center { text-align: center; }
.v2 .list-unstyled { list-style: none; padding: 0; margin: 0; }
.v2 .container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.v2 .row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.v2 .row > [class*="col-"] { padding: 0 10px; width: 100%; }
@media (min-width: 768px) {
  .v2 .row > .col-sm-3 { width: 25%; } .v2 .row > .col-sm-4 { width: 33.333%; }
  .v2 .row > .col-sm-5 { width: 41.666%; } .v2 .row > .col-sm-6 { width: 50%; }
}
@media (min-width: 992px) {
  .v2 .row > .col-md-2 { width: 16.666%; } .v2 .row > .col-md-3 { width: 25%; }
}
.v2 .row > .col-xs-6 { width: 50%; }
@media (min-width: 768px) { .v2 .row > .col-xs-6.col-sm-4 { width: 33.333%; } }
@media (min-width: 992px) { .v2 .row > .col-xs-6.col-sm-4.col-md-2 { width: 16.666%; } }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Boutons ---------- */
.v2-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s, color .2s; }
.v2-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .2s; }
.v2-btn:hover svg { transform: translateX(3px); }
.v2-btn-line-dk { border: 1.5px solid var(--green-dk); color: var(--green-dk); background: #fff; }
.v2-btn-line-dk:hover, .v2-btn-line-dk:focus { background: var(--green-dk); color: #fff; text-decoration: none; }
.v2-more { text-align: center; margin: 22px 0 0; }
.v2 .v2-btn-primary { background: var(--green-dk); color: #fff; }
.v2 .v2-btn-primary:hover { background: var(--green-dkr); color: #fff; box-shadow: 0 10px 24px rgba(79,122,10,.3); transform: translateY(-1px); text-decoration: none; }
.v2 .v2-btn-light { background: #fff; color: var(--ink); }
.v2 .v2-btn-light:hover { background: var(--green-dk); color: #fff; transform: translateY(-1px); text-decoration: none; }
.v2 .v2-btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.v2 .v2-btn-line:hover { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255,255,255,.1); text-decoration: none; }

/* ---------- Hero ---------- */
.v2-hero { position: relative; min-height: min(86vh, 740px); display: flex; align-items: flex-end; color: #fff; background-color: #1a1c20; background-repeat: no-repeat; background-size: cover; background-position: center 35%; isolation: isolate; overflow: hidden; }
.v2-hero.hero-societe { background-image: url(/images-innovation/hero-societe.webp); }
.v2-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,12,16,.86) 0%, rgba(10,12,16,.55) 45%, rgba(10,12,16,.12) 100%), linear-gradient(0deg, rgba(10,12,16,.6), transparent 55%); }
.v2-hero .v2-wrap { width: 100%; padding-top: 140px; padding-bottom: 120px; }
.v2-hero-txt { max-width: 720px; }
.v2 .v2-hero h1 { color: #fff; font-weight: 700; font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; margin: 16px 0 22px; }
.v2-hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 620px; margin: 0; }
.v2-hero-lead strong { font-weight: 500; }
.v2-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.v2-hero-txt > * { animation: v2-rise .9s cubic-bezier(.2,.7,.2,1) both; }
.v2-hero-txt > :nth-child(2) { animation-delay: .1s; } .v2-hero-txt > :nth-child(3) { animation-delay: .2s; } .v2-hero-txt > :nth-child(4) { animation-delay: .3s; }
/* H1 et accroche visibles dès le premier rendu (LCP) : seul le mouvement est animé */
@keyframes v2-rise { from { transform: translateY(18px); } to { transform: none; } }

/* ---------- Sur-titre, en-têtes de section ---------- */
.v2-eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-dk); }
.v2-hero .v2-eyebrow { color: var(--green-lt); }
.v2-sec { padding: 96px 0 24px; }
.v2-sec-head { max-width: 860px; margin-bottom: 44px; }
.v2-sec-head h2 + .v2-lead { margin-top: 14px; }
.v2-lead, .v2-lead p { font-size: 1.06rem; color: var(--ink-2); }

/* ---------- Bandeau preuves ---------- */
.v2-proof { position: relative; z-index: 2; margin-top: -64px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-h); }
.v2-proof-nums { display: grid; grid-template-columns: repeat(4, 1fr); }
.v2-stat { padding: 28px 28px 24px; border-left: 1px solid var(--line); }
.v2-stat:first-child { border-left: 0; }
.v2-stat b { display: block; font-size: 2.1rem; line-height: 1; color: var(--green-dk); margin-bottom: 8px; }
.v2-stat span { font-size: .9rem; color: var(--ink-2); }
.v2-proof-clients { border-top: 1px solid var(--line); padding: 16px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-size: .86rem; color: var(--muted); }
.v2-proof-clients strong { font-size: 1rem; color: var(--ink-2); letter-spacing: .02em; }
.v2 .v2-proof-clients a { margin-left: auto; font-weight: 600; text-decoration: none; }

/* ---------- Grilles ---------- */
.v2-grid { display: grid; gap: 24px; }
.v2-g2 { grid-template-columns: repeat(2, 1fr); }
.v2-g3 { grid-template-columns: repeat(3, 1fr); }

/* Cartes « approches » */
.v2-approche { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px 28px 26px; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.v2-approche:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.v2-approche-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: var(--bg); color: var(--ink-2); font-size: 22px; transition: background .3s, color .3s; }
/* Couleurs historiques des 3 approches, au survol seulement (vert ASIT, bleu Agile, orange Motivation) */
.v2-approche { position: relative; display: flex; flex-direction: column; }
.v2-approche-asit { --ac: #7cb810; } .v2-approche-agile { --ac: #02aaff; } .v2-approche-motiv { --ac: #FF5722; }
.v2-approche:hover .v2-approche-icon, .v2-approche:focus-within .v2-approche-icon { background: var(--ac); color: #fff; }
.v2-approche h3 a { color: inherit; text-decoration: none; }
.v2-approche h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.v2-approche h3 a:focus-visible { outline: none; }
.v2-approche:has(h3 a:focus-visible) { outline: 2px solid var(--green-dk); outline-offset: 3px; }
.v2-approche .v2-arrow { margin-top: auto; padding-top: 18px; }
.v2-approche:hover .v2-arrow::after { transform: translateX(4px); }
.v2-approche ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); }
.v2-approche li { position: relative; padding-left: 24px; }
.v2-approche li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Cartes image (services) */
.v2 .v2-card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.v2 .v2-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); color: var(--ink); text-decoration: none; }
.v2-media { position: relative; display: block; aspect-ratio: 5 / 3; overflow: hidden; background: #d9d9d6; }
.v2-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.v2-card:hover .v2-media img { transform: scale(1.05); }
.v2-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,12,16,.72)); pointer-events: none; }
.v2-lbl { position: absolute; left: 24px; bottom: 18px; z-index: 1; color: #fff; font-weight: 700; font-size: 1.55rem; line-height: 1.1; }
.v2-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 24px 28px 28px; }
.v2-body p { color: var(--ink-2); font-size: .97rem; }
.v2-arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--green-dk); }
.v2-arrow::after { content: "→"; transition: transform .2s; }
.v2-card:hover .v2-arrow::after { transform: translateX(4px); }

/* ---------- Vignettes vidéo et études de cas (fragments iCardsIndex / iMatriceRef) ---------- */
.v2 .v2-wrap .container { padding-left: 0; padding-right: 0; }
.v2 .cards-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; margin: 0; }
.v2 .card-video { position: relative; border-radius: var(--r-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.v2 .card-video:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.v2 .card-video a { display: block; }
.v2 .card-video a, .v2 .card-video a:hover, .v2 .card-video a:focus, .v2 .card-video a:visited { color: inherit; text-decoration: none; outline: none; }
.v2 .card-video a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.v2 .card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.v2 .card-poster, .v2 .card-video-player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v2 .card-poster { filter: grayscale(.75) contrast(1.05) brightness(.97); transition: opacity .3s, filter .6s; }
.v2 .card-video-player { opacity: 0; transition: opacity .3s; }
.v2 .card-video:hover .card-video-player { opacity: 1; }
.v2 .card-video:hover .card-poster { opacity: 0; }
.v2 .card-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2em 1em .8em; font-weight: 600; font-size: 1.05em; color: #fff; text-align: left; background: linear-gradient(180deg, transparent, rgba(10,12,16,.72)); }
@media (pointer: coarse) { .v2 .card-video-player { display: none; } .v2 .card-video:hover .card-poster { opacity: 1; } }

.v2 .cards-matrix:has(.card-static) { gap: 16px; grid-auto-rows: 1fr; }
.v2 .card-static { border: 1px solid var(--line); box-shadow: none; }
.v2 .card-static:hover { transform: none; box-shadow: var(--shadow); border-color: var(--green); }
.v2 .card-static a { display: flex; align-items: center; gap: 14px; padding: 12px; height: 100%; }
.v2 .card-static .card-media { flex: 0 0 120px; width: 120px; height: 80px; aspect-ratio: auto; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.v2 .card-static .card-poster, .v2 .card-static:hover .card-poster { filter: none; opacity: 1; }
.v2 .card-static .card-label { position: static; padding: 0; background: none; color: var(--ink); font-size: .9em; line-height: 1.4; }
.v2 .card-static .card-label i { display: block; margin-top: 3px; color: var(--ink-2); font-weight: 400; }
.v2 .card-static .card-label br { display: none; }
.v2 .cards-matrix + p { margin-top: 18px !important; font-size: .85rem; }

/* ---------- Blocs CTA (fragment iCTA) ---------- */
.v2 .cta-block { margin-top: 48px !important; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 30px 34px 18px; }
.v2 .cta-block > h3 { margin: 0 0 6px; font-size: 1.35rem; }
.v2 .cta-block > p { color: var(--ink-2); margin-bottom: 20px; }
.v2 .btn-formation { display: block; margin-bottom: 14px; padding: 14px 20px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 1.02rem; text-align: center; text-decoration: none; transition: transform .2s, box-shadow .2s, color .2s, background .2s; }
.v2 .btn-formation i { margin-right: 8px; }
.v2 .btn-formation small { display: block; margin-top: 3px; font-size: .72em; font-weight: 400; opacity: .85; }
.v2 .btn-formation:hover { transform: translateY(-2px); color: var(--green-dk); box-shadow: inset 0 0 0 1.5px var(--green); text-decoration: none; }
.v2 .btn-formation.btn-vert { background: var(--green-dk); color: #fff; box-shadow: none; }
.v2 .btn-formation.btn-vert small { opacity: 1; }
.v2 .btn-formation.btn-vert:hover { background: var(--green-dkr); color: #fff; box-shadow: 0 10px 24px rgba(79,122,10,.28); }

/* ---------- Plus d'informations (fragment iBoutonsRonds) ---------- */
#informations-complementaires { padding-bottom: 0; }
#informations-complementaires h2 { margin-top: 10px; }
#informations-complementaires .row > [class*="col-"] { margin-bottom: 18px; color: var(--ink-2); font-size: .95rem; line-height: 1.35; }
.v2 .btn-circle.btn-xl { width: 84px; height: 84px; padding: 0; margin-bottom: 10px; font-size: 30px; line-height: 84px; border-radius: 50%; background: #fff; color: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; transition: transform .3s, border-color .3s, color .3s, box-shadow .3s; }
.v2 .btn-circle.btn-xl:hover, .v2 .btn-circle.btn-xl:focus-visible { color: var(--green-dk); border-color: var(--green); transform: translateY(-4px); box-shadow: var(--shadow-h); }
.v2 .anchor-ref { scroll-margin-top: 90px; }

/* ---------- FAQ ---------- */
.v2-faq { display: grid; gap: 12px; max-width: 900px; }
.v2-faq details { background: var(--card); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 4px 26px; }
.v2-faq summary { cursor: pointer; list-style: none; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.v2-faq summary::-webkit-details-marker { display: none; }
.v2-faq summary h3 { margin: 0; font-size: 1.04rem; font-weight: 600; }
.v2-faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--green-dk); transition: transform .25s; }
.v2-faq details[open] summary::after { transform: rotate(45deg); }
.v2-faq-a { padding: 0 0 12px; color: var(--ink-2); }
.v2-faq-a a { font-weight: 600; text-decoration: none; }
.v2 .v2-faq-cta { margin: 32px 0 0; }
#faq-section { padding-bottom: 48px; }

/* ---------- Bande contact ---------- */
.v2-contact { margin-top: 96px; background: linear-gradient(120deg, var(--green-dkr), var(--green-dk) 60%, #5e900f); color: #fff; }
.v2-contact .v2-wrap { padding-top: 64px; padding-bottom: 64px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.v2 .v2-contact h2 { margin: 0 0 8px; color: #fff; }
.v2-contact p { margin: 0; color: rgba(255,255,255,.88); }

/* ---------- Pied de page (fragment foot.php) ---------- */
.v2-foot { background: var(--night); color: rgba(255,255,255,.72); font-size: .92rem; }
.v2-foot .first-footer { padding: 56px 0 24px; }
.v2-foot h2 { color: #fff; font-size: 1.15rem; letter-spacing: .02em; margin: 0 10px 18px; width: 100%; }
.v2-foot h3 { color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 12px 0 12px; }
.v2-foot nav { display: block; }
.v2-foot li { margin: 0 0 7px; }
.v2-foot a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
.v2-foot a:hover { color: var(--green-lt); }
.v2-foot .fa-star { color: rgba(255,255,255,.72) !important; }
.v2-foot .second-footer { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; font-size: .8rem; color: rgba(255,255,255,.55); }
.v2-foot .second-footer .row { align-items: center; }
.v2-foot .second-footer p { margin: 0; }
.v2-foot .brand-img img { opacity: .9; }
.v2-foot .btn-socials { display: flex; justify-content: flex-end; gap: 14px; margin: 0; font-size: 1.7rem; }
.v2-foot .btn-social a { color: rgba(255,255,255,.6); }
.v2-foot .btn-social a:hover { color: var(--green-lt); }

/* ---------- Boutons flottants ---------- */
.v2-float { position: fixed; right: 26px; z-index: 90; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: transform .2s, background .2s; }
.v2 .v2-float-contact { bottom: 26px; height: 52px; min-width: 52px; padding: 0 16px; background: var(--green-dk); color: #fff; font-weight: 600; font-size: 1.2rem; }
.v2-float-contact span { display: none; font-size: .95rem; }
.v2 .v2-float-contact:hover { background: var(--green-dkr); color: #fff; }
.v2-float-contact:hover span, .v2-float-contact:focus-visible span { display: inline; }
.v2-float-lang { bottom: 92px; width: 52px; height: 52px; background: #fff; }
.v2-float-lang img { width: 26px; height: auto; border-radius: 2px; }

/* ---------- Apparition au défilement (seulement si JS actif) ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.v2-grid .rv:nth-child(2) { transition-delay: .08s; } .v2-grid .rv:nth-child(3) { transition-delay: .16s; } .v2-grid .rv:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .js .rv { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .v2-g2, .v2-g3 { grid-template-columns: 1fr; }
  .v2-proof-nums { grid-template-columns: 1fr 1fr; }
  .v2-stat:nth-child(3) { border-left: 0; }
  .v2-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .v2 .v2-proof-clients a { margin-left: 0; }
  .v2 .cards-matrix { grid-template-columns: repeat(2, 1fr); }
  .v2-foot .btn-socials { justify-content: flex-start; margin-top: 14px; }
}
@media (max-width: 560px) {
  .v2 .container { padding: 0 18px; }
  .v2-hero .v2-wrap { padding-top: 120px; padding-bottom: 100px; }
  .v2-hero::after { background: linear-gradient(0deg, rgba(10,12,16,.9) 10%, rgba(10,12,16,.45)); }
  .v2-sec { padding-top: 72px; }
  .v2-stat { padding: 20px 18px; } .v2-stat b { font-size: 1.7rem; }
  .v2-body { padding: 22px; }
  .v2 .cards-matrix:has(.card-static) { grid-template-columns: 1fr; }
  .v2 .cta-block { padding: 24px 18px 10px; }
  .v2-hero-cta .v2-btn { width: 100%; justify-content: center; }
}
