/* DIRINA — Site vitrine : polices locales (aucun appel externe, RGPD) et règles responsives */
@font-face { font-family: "Oswald"; font-weight: 300; font-display: swap; src: url("fonts/oswald-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 400; font-display: swap; src: url("fonts/oswald-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("fonts/open-sans-latin-700-normal.woff2") format("woff2"); }
html { scroll-behavior: smooth; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
input:focus, textarea:focus { outline: none; border-color: #38B6FF !important; box-shadow: 0 0 0 4px rgba(56,182,255,.2); }
a:focus-visible, button:focus-visible { outline: 3px solid #38B6FF; outline-offset: 3px; }

body{margin:0;background:#ffffff}

a{color:#111111;text-decoration:none}a:hover{color:#0b7fc2}
.only-wide{display:block}
.bento{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.span2{grid-column:span 2}
@media (max-width: 1000px){.bento{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 620px){.bento{grid-template-columns:minmax(0,1fr)}.span2{grid-column:auto}}
@media (max-width: 760px){.only-wide{display:none}.big-title{font-size:52px !important}.mid-title{font-size:36px !important}}

/* ---------- Adaptation téléphone ---------- */
.only-mobile { display: none; }
@media (max-width: 760px) {
  .only-mobile { display: block; }
  .hero-text { padding-bottom: 28px !important; }
  .band { justify-content: center !important; gap: 6px 16px !important; font-size: 15px !important; padding: 14px 18px !important; }
  .band-dot { display: none; }
  .avant-stage { height: 300px !important; }
  .paper { width: 140px !important; height: 180px !important; padding: 14px !important; }
  .paper-1 { left: 0 !important; }
  .paper-2 { left: 30% !important; }
  .paper p { margin-top: 44px !important; font-size: 17px !important; }
  .sticky { width: 130px !important; height: 130px !important; right: 0 !important; top: 40px !important; font-size: 12.5px !important; padding: 12px !important; }
  .mailchip { left: 0 !important; right: 0 !important; bottom: 0 !important; }
  .price-featured { transform: none !important; }
  section > div { padding-left: 18px !important; padding-right: 18px !important; }
  #avant-apres, #services > div, #portail > div, #tarifs > div, #contact > div { padding-top: 72px !important; padding-bottom: 72px !important; }
  form { padding: 24px !important; }
  h2 { word-break: normal; overflow-wrap: anywhere; }
}

/* ==========================================================================
   ANIMATIONS — discrètes, fluides (GPU), désactivées si l'utilisateur
   a demandé « réduire les animations » dans son système.
   ========================================================================== */

/* Bandeau défilant */
.marquee { overflow: hidden; padding: 18px 0; font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 20px; text-transform: uppercase; letter-spacing: .06em; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-dot { width: 7px; height: 7px; border-radius: 50%; background: #0c0d10; flex: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 14px)); } }

/* La pieuvre : flotte, ses bras ondulent, le D respire */
.octo { animation: octo-float 7s ease-in-out infinite; }
@keyframes octo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.tentacles path { transform-box: fill-box; animation: sway 5.5s ease-in-out infinite; }
.tentacles path:nth-child(1) { transform-origin: 100% 85%; animation-delay: -0.4s; }
.tentacles path:nth-child(2) { transform-origin: 100% 0%;  animation-delay: -1.6s; animation-duration: 6.2s; }
.tentacles path:nth-child(3) { transform-origin: 75% 0%;   animation-delay: -2.4s; animation-duration: 5s; }
.tentacles path:nth-child(4) { transform-origin: 25% 0%;   animation-delay: -0.9s; animation-duration: 5.4s; }
.tentacles path:nth-child(5) { transform-origin: 0% 0%;    animation-delay: -3.1s; animation-duration: 6.4s; }
.tentacles path:nth-child(6) { transform-origin: 0% 85%;   animation-delay: -2s; }
@keyframes sway { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } } /* transform (et non rotate) : fiable sur Safari iPhone */
.d-halo { opacity: 0; animation: d-halo 4s ease-in-out infinite; }
@keyframes d-halo { 0%, 100% { opacity: 0; } 50% { opacity: .85; } } /* halo flouté en SVG : identique sur iPhone, Android et ordinateur */

/* Les cartes tenues par les bras : apparition en cascade puis flottement */
.held-card { animation: card-pop .7s cubic-bezier(.2,.9,.3,1.25) backwards, card-bob 5s ease-in-out infinite; }
.held-1 { animation-delay: .5s, 1.2s; }
.held-2 { animation-delay: .8s, 2.4s; animation-duration: .7s, 5.6s; }
.held-3 { animation-delay: 1.1s, 1.8s; animation-duration: .7s, 6s; }
.held-4 { animation-delay: 1.4s, 3s; animation-duration: .7s, 5.3s; }
@keyframes card-pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes card-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
/* Sur téléphone la pieuvre est plus bas dans la page : les cartes n'apparaissent qu'au moment où on la voit */
.js-octo .octo:not(.is-in) .held-card { animation-play-state: paused; }

/* Titre d'accueil : montée en douceur */
.hero-in > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) backwards; }
.hero-in > *:nth-child(1) { animation-delay: .05s; }
.hero-in > *:nth-child(2) { animation-delay: .15s; }
.hero-in > *:nth-child(3) { animation-delay: .3s; }
.hero-in > *:nth-child(4) { animation-delay: .45s; }
.hero-in > *:nth-child(5) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
.mobile-stack > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) backwards; }
.mobile-stack > *:nth-child(1) { animation-delay: .7s; }
.mobile-stack > *:nth-child(2) { animation-delay: .9s; }
.mobile-stack > *:nth-child(3) { animation-delay: 1.1s; }

/* Flèche du bouton principal */
.nudge { transition: translate .25s; }
a:hover > .nudge { translate: 5px 0; }

/* Apparition au défilement (ajoutée par site.js) */
.reveal { opacity: 0; translate: 0 34px; transition: opacity .8s cubic-bezier(.2,.8,.2,1), translate .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; translate: 0 0; }

/* Avant : le post-it tremble, c'est le bazar */
.wobble { animation: wobble 3.2s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { translate: 0 0; } 25% { translate: 2px -3px; } 50% { translate: -2px 1px; } 75% { translate: 1px 2px; } }
/* Après : la barre se remplit, les coches apparaissent */
.fill-bar { transform-origin: left; scale: 0 1; transition: scale 1.6s cubic-bezier(.2,.8,.2,1) .3s; }
.is-visible .fill-bar { scale: 1 1; }
.pop-check { scale: 0; transition: scale .5s cubic-bezier(.2,.9,.3,1.5); }
.is-visible .pop-check { scale: 1; }
.is-visible div:nth-of-type(3) > .pop-check { transition-delay: .9s; }
.is-visible div:nth-of-type(4) > .pop-check { transition-delay: 1.3s; }
.is-visible div:nth-of-type(5) > .pop-check { transition-delay: 1.7s; }

/* Les 8 bras : survol, barres qui poussent, alertes qui clignotent */
.bento > article { transition: translate .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, opacity .8s cubic-bezier(.2,.8,.2,1); }
.bento > article:hover { translate: 0 -6px; box-shadow: 0 22px 44px rgba(12,13,16,.12); }
.bento > article.reveal { transition: opacity .8s cubic-bezier(.2,.8,.2,1), translate .8s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.bars > span { transform-origin: bottom; scale: 1 .08; transition: scale .9s cubic-bezier(.2,.8,.2,1); }
.is-visible .bars > span { scale: 1 1; }
.is-visible .bars > span:nth-child(2) { transition-delay: .1s; }
.is-visible .bars > span:nth-child(3) { transition-delay: .2s; }
.is-visible .bars > span:nth-child(4) { transition-delay: .3s; }
.is-visible .bars > span:nth-child(5) { transition-delay: .4s; }
.pulse-red { animation: pulse-red 1.8s ease-in-out infinite; }
@keyframes pulse-red { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pulse-ring { animation: pulse-ring 2s ease-out infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(56,182,255,.55); } 100% { box-shadow: 0 0 0 12px rgba(56,182,255,0); } }

/* Contact : la grande pieuvre nage en fond */
.swim { animation: swim 14s ease-in-out infinite; }
@keyframes swim { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 30px -24px; rotate: 6deg; } }

/* Accessibilité : aucun mouvement si l'utilisateur l'a demandé */
/* « Réduire les animations » (souvent activé par le mode économie d'énergie sur Android / Samsung) :
   on coupe tout ce qui déplace la page (apparitions, rebonds, transitions)
   mais on garde la pieuvre vivante et le bandeau, en plus lent et plus doux. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1 !important; translate: none !important; }
    .fill-bar, .bars > span, .pop-check { scale: 1 !important; }
    .octo { animation: octo-float 10s ease-in-out infinite !important; }
    .tentacles path { animation: sway 7s ease-in-out infinite !important; }
    .d-halo { animation: d-halo 6s ease-in-out infinite !important; }
    .held-card { opacity: 1 !important; }
    .marquee-track { animation: marquee 70s linear infinite !important; }
}

/* Partenaires */
.partners-wrap > .partner + .partner { border-left: 1px solid #e2e5ea; }
.partner { transition: background .35s; }
.partner .partner-logo img { transition: scale .45s cubic-bezier(.2,.8,.2,1); }
.partner .partner-link { transition: background .3s, color .3s; }
a.partner:hover { background: #eceff3; color: #111111; }
a.partner:hover .partner-logo img { scale: 1.06; }
a.partner:hover .partner-link { background: #0c0d10; color: #ffffff; }
@media (max-width: 760px) {
  #partenaires > div { padding-top: 72px !important; padding-bottom: 72px !important; }
  .partners-wrap > .partner + .partner { border-left: 0; border-top: 1px solid #e2e5ea; }
  .partner { padding: 40px 24px 36px !important; }
}

/* Menu téléphone */
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #ffffff; cursor: pointer; place-items: center; }
.burger path { transition: d .3s, opacity .2s, translate .3s, rotate .3s; transform-box: fill-box; transform-origin: center; }
.burger[aria-expanded="true"] .burger-top { translate: 0 5px; rotate: 45deg; }
.burger[aria-expanded="true"] .burger-mid { opacity: 0; }
.burger[aria-expanded="true"] .burger-bot { translate: 0 -5px; rotate: -45deg; }
.mobile-menu { position: relative; z-index: 5; margin: 0 18px 18px; padding: 10px; border-radius: 22px; background: #16181d; border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; animation: menu-in .3s cubic-bezier(.2,.8,.2,1); }
.mobile-menu[hidden] { display: none; }
.mobile-menu > a { padding: 14px 16px; border-radius: 12px; color: #ffffff; font-family: 'Oswald', sans-serif; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; }
.mobile-menu > a:hover, .mobile-menu > a:focus-visible { background: rgba(255,255,255,.06); color: #38B6FF; }
.mobile-menu-ctas { display: flex; flex-direction: column; gap: 10px; padding: 10px 6px 6px; }
.mobile-menu-ctas a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 99px; font-weight: 700; }
.mm-primary { background: #38B6FF; color: #0c0d10; }
.mm-secondary { border: 1px solid rgba(255,255,255,.25); color: #ffffff; }
@keyframes menu-in { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 760px) { .burger { display: inline-grid; } }
@media (min-width: 761px) { .mobile-menu { display: none !important; } }

/* FAQ */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { transition: rotate .3s cubic-bezier(.2,.8,.2,1), background .3s; }
.faq-item[open] .faq-plus { rotate: 45deg; background: #38B6FF !important; color: #0c0d10 !important; }
.faq-item summary:hover span:first-child { color: #0b7fc2; }
.faq-item[open] p { animation: rise .4s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 760px) { #faq > div { padding-top: 72px !important; padding-bottom: 72px !important; gap: 32px !important; } .faq-item { padding: 0 18px !important; } .faq-item summary { font-size: 16px !important; } }

/* En-tête fixe : toujours visible, se teinte en verre fumé au défilement */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(12,13,16,0); transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.site-header nav { transition: padding .35s; }
.site-header.is-scrolled, .site-header.menu-open { background: rgba(12,13,16,.88); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.site-header.is-scrolled nav { padding-top: 12px !important; padding-bottom: 12px !important; }
.hero { padding-top: 88px; }
section[id] { scroll-margin-top: 76px; }
.site-header .mobile-menu { max-height: calc(100vh - 90px); overflow-y: auto; }
@media (max-width: 760px) { .hero { padding-top: 80px; } }

/* Bandeau cookies */
.cookie-banner { position: fixed; z-index: 9999; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; width: min(760px, calc(100% - 32px)); display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #0f172a; color: #e2e8f0; border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 23, 42, .35); font-size: 13.5px; line-height: 1.5; transition: opacity .25s ease, transform .25s ease; }
.cookie-banner.is-visible { opacity: 1; transform: translate(-50%, 0); }
.cookie-banner p { margin: 0; flex: 1; }
.cookie-banner strong { color: #fff; }
.cookie-banner a { color: #7dd3fc; text-decoration: underline; text-underline-offset: 2px; }
.cookie-icon { font-size: 24px; flex: none; }
.cookie-ok { flex: none; border: 0; cursor: pointer; background: #fff; color: #0f172a; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 10px; white-space: nowrap; }
.cookie-ok:hover { background: #e0f2fe; }
@media (max-width: 640px) { .cookie-banner { flex-wrap: wrap; bottom: 12px; } .cookie-icon { display: none; } .cookie-ok { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }
.cookie-banner[hidden] { display: none; }
.cookie-banner, .cookie-ok { font-family: "Open Sans", system-ui, sans-serif; }

/* ---------- v2.5 : la pieuvre et les animations aussi sur téléphone ---------- */
/* Sur ordinateur, l'enveloppe est transparente : la scène garde sa taille réelle. */
.stage-wrap { display: contents; }
@media (max-width: 760px) {
  .stage-wrap { --s: .56; display: block; position: relative; width: 100%; overflow: visible; }
  .stage-octo { height: calc(600px * var(--s)); margin: -16px 0 36px; }
  .stage-devices { height: calc(470px * var(--s)); margin-top: 8px; }
  .stage-wrap > .stage { position: absolute !important; left: 50%; top: 0; margin-left: -300px; transform: scale(var(--s)); transform-origin: top center; }
  .stage-devices > .stage { margin-left: -270px; } /* l'écran fait 540 px de large : on le centre */
  .swim-octo { width: 300px !important; height: 300px !important; left: -110px !important; bottom: -110px !important; }
}
@media (max-width: 400px) { .stage-wrap { --s: .52; } }
@media (max-width: 360px) { .stage-wrap { --s: .48; } }

/* Confort iPhone / Android */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, summary { -webkit-tap-highlight-color: rgba(56, 182, 255, .18); }
@media (max-width: 760px) {
  input, select, textarea { font-size: 16px !important; } /* pas de zoom automatique sur iPhone */
  .site-header .mobile-menu { max-height: calc(100dvh - 90px); }
}

/* ---------- v2.7 : site en plusieurs pages ---------- */
.site-nav a { color: rgba(255,255,255,0.82); position: relative; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #ffffff; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: #38B6FF; }
.mobile-menu a[aria-current="page"] { color: #38B6FF; }
.home-card { transition: transform .25s ease, box-shadow .25s ease; }
.home-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(12, 13, 16, .08); }
@media (max-width: 760px) {
  .page-hero > div { padding: 124px 24px 52px !important; }
  .page-hero h1 { font-size: 40px !important; }
  #portail > div, #contact > div { padding-top: 124px !important; }
}
