/* Accueil : style des blocs de la page « Accueil » (chargé uniquement sur la page d'accueil). */
main :where(.wp-block-group,figure,.wp-block-buttons,.wp-block-button){margin:0}
main :where(.wp-block-heading){margin:0}

/* Boutons de blocs : « bt-o » = principal orange, « bt-g » = secondaire contour blanc, « bt-wa » = icône WhatsApp */
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:12px}
.wp-block-button__link{display:inline-flex;align-items:center;gap:10px;font:inherit;font-size:17px;line-height:1.6;text-decoration:none;border-radius:8px;cursor:pointer;transition:background-color .2s,border-color .2s}
.bt-o .wp-block-button__link{background:var(--orange);color:var(--navy);font-weight:700;padding:17px 28px;border:0}
.bt-o .wp-block-button__link:hover{background:var(--orange-hover)}
.bt-g .wp-block-button__link{background:transparent;color:#fff;font-weight:600;padding:15.5px 26.5px;border:1.5px solid rgba(255,255,255,.6)}
.bt-g .wp-block-button__link:hover{background:rgba(255,255,255,.1);border-color:#fff}
.bt-wa .wp-block-button__link::before{content:"";width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.5-4.5A8 8 0 1 1 8.5 18.5z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.5-4.5A8 8 0 1 1 8.5 18.5z'/%3E%3C/svg%3E") center/contain no-repeat}

/* ===== S1 HERO ===== */
#s1-hero{position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:max(720px,100svh);color:#fff;background:var(--navy) url(../img/transmed-hero-poster.webp) center/cover no-repeat}
#s1-hero video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#s1-hero::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  background:linear-gradient(90deg,rgba(10,24,48,.92) 0%,rgba(10,24,48,.76) 36%,rgba(10,24,48,.22) 72%,rgba(10,24,48,.08) 100%),
             linear-gradient(0deg,rgba(10,24,48,.8) 0%,rgba(10,24,48,0) 42%),
             linear-gradient(180deg,rgba(10,24,48,.55) 0%,rgba(10,24,48,0) 22%)}
.hero-body{position:relative;z-index:2;flex:1;width:100%;display:flex;flex-direction:column;justify-content:flex-end;padding-top:120px;padding-bottom:104px}
.eyebrow{margin:0 0 22px;font-size:16px;font-weight:600;color:var(--orange-soft)}
.hero-body h1{margin:0;max-width:10em;font-size:clamp(46px,6.2vw,92px);line-height:1;letter-spacing:-.035em}
.hero-body .lead{margin:30px 0 0;max-width:32em;font-size:19px;line-height:1.55;color:var(--on-dark)}
.hero-body .ctas{margin-top:38px}
.vctl{position:absolute;z-index:3;right:clamp(16px,3vw,40px);bottom:36px;display:flex;align-items:center;gap:10px;background:rgba(10,24,48,.55);color:#fff;border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:10px 18px 10px 14px;min-height:44px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.vctl svg{width:18px;height:18px}
@media (max-width:900px){
  #s1-hero video,.vctl{display:none}
  #s1-hero{min-height:0}
  .hero-body{min-height:560px;padding-bottom:64px}
  #s1-hero::before{background:linear-gradient(0deg,rgba(10,24,48,.95) 0%,rgba(10,24,48,.72) 60%,rgba(10,24,48,.5) 100%)}
}

/* ===== S2 BANDEAU DES PORTS ===== */
#s2-ports{background:var(--orange);color:var(--navy);border-top:2px solid var(--navy);border-bottom:2px solid var(--navy);overflow:hidden}
#s2-ports .wp-block-list{list-style:none;margin:0;padding:18px var(--gutter);display:flex;flex-wrap:wrap;gap:8px 32px;font-family:"Funnel Display",system-ui,sans-serif;font-weight:700;font-size:24px;line-height:1.2}
#s2-ports .wp-block-list li{margin:0}
.tick{display:flex;width:max-content;animation:tick 55s linear infinite;font-size:30px;line-height:1;padding:20px 0;white-space:nowrap}
#s2-ports:hover .tick{animation-play-state:paused}
.tick>span{display:flex;align-items:center;gap:44px;padding-right:44px}
.tick i{width:10px;height:10px;background:var(--navy);flex:none}
@keyframes tick{to{transform:translateX(-50%)}}

/* ===== S3 SERVICES ===== */
#s3-services{padding:128px 0;overflow:hidden}
.sec-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:48px}
.h2{margin:0;font-size:clamp(40px,4.6vw,68px);line-height:1.02;letter-spacing:-.035em}
.sec-sub{margin:14px 0 0;max-width:30em;color:var(--muted);font-size:18px}
.arrows{display:flex;gap:10px}
.arrows button{width:52px;height:52px;border-radius:50%;border:1.5px solid var(--navy);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity .2s}
.arrows .prev{background:#fff;color:var(--navy)}.arrows .next{background:var(--navy);color:#fff}
.arrows button[aria-disabled="true"]{opacity:.35;cursor:default}
.arrows svg{width:22px;height:22px}
.rail{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(260px,21vw,300px);gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;
  padding:0 var(--gutter) 6px max(var(--gutter),calc((100% - var(--wrap))/2 + 48px));scroll-padding-left:max(var(--gutter),calc((100% - var(--wrap))/2 + 48px))}
.rail::-webkit-scrollbar{display:none}
.card{position:relative;overflow:hidden;height:520px;border-radius:12px;display:flex;flex-direction:column;justify-content:flex-end;padding:28px;color:#fff;background:var(--navy);scroll-snap-align:start}
.card.dark{background:var(--navy-2)}
.card.orange{background:var(--orange);color:var(--navy)}
.card-img{position:absolute;inset:0}
.card .card-img img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.card:nth-child(1) .card-img img{object-position:30% 40%}
.card:nth-child(3) .card-img img{object-position:20% 30%}
.card:nth-child(5) .card-img img{object-position:10% 50%}
.card-img::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(10,24,48,.96) 0%,rgba(10,24,48,.8) 34%,rgba(10,24,48,.05) 70%)}
.card.dark .card-img::after{background:linear-gradient(0deg,rgba(10,24,48,.96) 0%,rgba(10,24,48,.8) 34%,rgba(10,24,48,.5) 100%)}
.card.orange .card-img::after{background:linear-gradient(0deg,rgba(255,154,31,.97) 0%,rgba(255,154,31,.9) 42%,rgba(255,154,31,.62) 100%)}
.card:hover .card-img img{transform:scale(1.04)}
.card .bot{position:relative;z-index:1;min-height:216px;display:flex;flex-direction:column;gap:12px}
.card .ct{margin:0;font-size:32px;line-height:1.04}
.card .ct a{color:inherit;text-decoration:none}
.card .ct a::after{content:"";position:absolute;inset:0;z-index:2}
.card .cd{margin:0;color:#DCE4EF;font-size:16px;line-height:1.55}
.card.orange .cd{color:#2A1A05}
.card::after{content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");position:absolute;top:28px;right:28px;z-index:1;width:44px;height:44px;border-radius:50%;border:1.5px solid rgba(255,255,255,.5);display:flex;align-items:center;justify-content:center;transition:background-color .2s,border-color .2s}
.card.orange::after,.card:hover::after{content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230A1830' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E")}
.card.orange::after{border-color:rgba(10,24,48,.55)}
.card:hover::after{background:var(--orange);border-color:var(--orange)}
.card.icon-doc::before,.card.icon-wh::before{content:"";position:absolute;top:28px;left:28px;z-index:1;width:40px;height:40px;background:var(--orange);-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center}
.card.orange::before{background:var(--navy)}
.card.icon-doc::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M10 14l2 2 4-4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M10 14l2 2 4-4'/%3E%3C/svg%3E")}
.card.icon-wh::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6v11H3z'/%3E%3Cpath d='M7 21v-7h10v7'/%3E%3Cpath d='M7 17h10'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6v11H3z'/%3E%3Cpath d='M7 21v-7h10v7'/%3E%3Cpath d='M7 17h10'/%3E%3C/svg%3E")}
/* Grand écran : les 5 cartes tiennent côte à côte (pas de carrousel) */
@media (min-width:1280px){
  #s3-services .arrows{display:none}
  #s3-services .wrap{max-width:none;padding-left:clamp(16px,2.2vw,40px);padding-right:clamp(16px,2.2vw,40px)}
  .rail{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;overflow:visible;scroll-snap-type:none;margin:0;padding:0 clamp(16px,2.2vw,40px)}
  .card{padding:24px}
  .card .ct{font-size:clamp(23px,1.8vw,32px)}
  .card .bot{min-height:268px}
}

/* ===== S4 VOYAGE DU NAVIRE ===== */
#s4-voyage{background:var(--navy);color:#fff}
#s4-voyage>.wrap{padding-top:128px;padding-bottom:128px}
#s4-voyage .h2{max-width:16em;margin-bottom:18px}
#s4-voyage .sec-sub{color:var(--on-dark-2);margin:0 0 72px;max-width:34em}
.voyage-src .step{margin:0 0 32px;max-width:36em}
.voyage-src .step-label{font-size:14px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--orange-soft);margin:0 0 4px}
.voyage-src .step-title{font-size:26px;line-height:1.1;margin:0 0 8px;color:#fff}
.voyage-src .step-text{margin:0;color:#DCE4EF}
.voyage-src .step-img{display:none}
#s4-voyage.is-live .voyage-src{display:none}
.sea{position:relative;height:76px;margin-bottom:10px}
.sea .dash{position:absolute;left:10%;right:10%;top:52px;border-top:2px dashed var(--line-dark)}
.sea .fill{position:absolute;left:10%;top:52px;height:2px;background:var(--orange);transition:width .6s ease}
.sea .ship{position:absolute;top:0;width:112px;height:52px;margin-left:-56px;transition:left .6s ease;animation:bob 3s ease-in-out infinite}@keyframes bob{50%{transform:translateY(-2px)}}
.stages{list-style:none;margin:0;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}
.stages button{width:100%;height:100%;min-height:64px;background:transparent;border:1.5px solid var(--line-dark);border-radius:10px;padding:20px 12px;color:#fff;font:inherit;cursor:pointer;transition:background-color .25s,border-color .25s}
.stages button .t{display:block;font-size:22px;line-height:1.15}
.stages button.past{border-color:#8A5A1E}
.stages button[aria-pressed="true"]{background:var(--orange);border-color:var(--orange);color:var(--navy)}
.stage-panel{margin-top:32px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.7fr);background:var(--navy-2);border-radius:12px;overflow:hidden}
.sp-text{padding:clamp(26px,3vw,44px);align-self:center}
.stage-panel .t{margin:0 0 16px;font-size:32px;line-height:1.05;color:var(--orange-soft)}
.stage-panel .sp-p{margin:0;font-size:19px;color:#DCE4EF}
.sp-img{min-height:280px;transition:opacity .2s}.sp-img.swap{opacity:0}
.sp-img img{width:100%;height:100%;object-fit:cover}
@media (max-width:760px){.stages{grid-auto-flow:row}.sea{display:none}.stage-panel{grid-template-columns:minmax(0,1fr)}.sp-img{order:-1;min-height:0;height:200px}}

/* ===== S5 DOCUMENTS ===== */
#s5-documents{background:#fff}
#s5-documents>.wrap{display:flex;flex-wrap:wrap;gap:48px 96px;padding-top:128px;padding-bottom:128px}
.docs-intro{flex:1 1 380px;min-width:0}
.docs-intro h2{margin:0 0 20px;font-size:clamp(38px,4vw,56px);line-height:1.04;letter-spacing:-.035em}
.docs-intro p{margin:0 0 32px;color:var(--muted);max-width:27em;font-size:18px}
.docs-intro>p:last-child{margin:32px 0 0}
.docs-intro>p:last-child a{font-weight:700;color:var(--navy);text-decoration:underline;text-decoration-color:var(--orange);text-decoration-thickness:2px;text-underline-offset:6px}
.seg{display:inline-grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;background:#EEF1F5;padding:5px;border-radius:999px}
.seg button{font:inherit;font-size:16px;font-weight:700;border:0;border-radius:999px;min-height:48px;padding:0 30px;cursor:pointer;background:transparent;color:#33425A;transition:background-color .2s}
.seg button[aria-pressed="true"]{background:var(--navy);color:#fff}
.docs-sets{flex:1 1 560px;min-width:0}
.docs-set+.docs-set{margin-top:32px}
.docs-set h3{font-size:24px;margin:0 0 12px}
#s5-documents.is-live .docs-set h3{display:none}
.docs-set .wp-block-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.docs-set li{display:flex;gap:14px;align-items:flex-start;margin:0;background:var(--tile);border:1px solid var(--tile-line);border-radius:16px;padding:20px;font-size:16px;font-weight:600;line-height:1.45}
.docs-set li::before{content:"";width:22px;height:22px;flex:none;margin-top:1px;background:#D97706;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") center/contain no-repeat}
@media (max-width:620px){.docs-set .wp-block-list{grid-template-columns:minmax(0,1fr)}}

/* ===== S6 APPEL À L'ACTION ===== */
#s6-cta{position:relative;overflow:hidden;color:#fff;background:var(--navy) url(../img/transmed-port-nuit.webp) center 40%/cover no-repeat}
#s6-cta::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,24,48,.9) 0%,rgba(10,24,48,.72) 60%,rgba(10,24,48,.6) 100%)}
#s6-cta>.wrap{position:relative;padding-top:136px;padding-bottom:136px}
#s6-cta h2{margin:0 0 32px;max-width:13em;font-size:clamp(40px,5vw,76px);line-height:1.02;letter-spacing:-.035em}
.cta-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:28px 40px}
.cta-row p{flex:1 1 420px;margin:0;max-width:32em;font-size:19px;color:var(--on-dark)}

@media (max-width:560px){.hero-body .wp-block-buttons .wp-block-button,.cta-row .wp-block-button{flex:1 1 100%}.wp-block-button__link{width:100%;justify-content:center}.tick{font-size:24px;padding:16px 0}}
@media (max-width:760px){#s3-services{padding:80px 0}#s4-voyage>.wrap,#s5-documents>.wrap{padding-top:80px;padding-bottom:80px}#s4-voyage .sec-sub{margin-bottom:40px}#s6-cta>.wrap{padding-top:96px;padding-bottom:96px}.card{height:460px}}
@media (prefers-reduced-motion:reduce){.tick{animation:none}.card-img img,.sea .fill,.sea .ship,.sp-img{transition:none}.sea .ship{animation:none}}

/* Brief éditorial 2026-11 : bandeau de confiance, liens des cartes, arguments, note documents, présentation */
#s2-confiance{background:var(--orange);color:var(--navy);border-top:2px solid var(--navy);border-bottom:2px solid var(--navy)}
.ports-band{padding-top:22px;padding-bottom:22px}
.ports-label{margin:0 0 10px;font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.ports-band .wp-block-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 0;font-family:"Funnel Display",system-ui,sans-serif;font-weight:700;font-size:clamp(14px,1.12vw,18px);line-height:1.2;letter-spacing:.01em;text-transform:uppercase}
.ports-band .wp-block-list li{margin:0;display:flex;align-items:center}
.ports-band .wp-block-list li+li::before{content:"";width:6px;height:6px;margin:0 clamp(9px,1.05vw,17px);background:var(--navy);flex:none}
@media (max-width:760px){.ports-band .wp-block-list{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;padding-bottom:6px;-webkit-overflow-scrolling:touch}.ports-band .wp-block-list li{flex:none}}
.card .cd-link{margin:4px 0 0;font-size:15px;font-weight:700;color:var(--orange-soft)}
.card.orange .cd-link{color:var(--navy);text-decoration:underline;text-underline-offset:4px}
#s4b-pourquoi{background:var(--bg)}
#s4b-pourquoi>.wrap{padding-top:128px;padding-bottom:128px}
#s4b-pourquoi .h2{max-width:18em;margin-bottom:18px}
#s4b-pourquoi .sec-sub{max-width:40em;margin:0 0 56px}
.why-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.why-item{background:#fff;border:1px solid var(--tile-line);border-top:4px solid var(--orange);border-radius:12px;padding:28px}
.why-item h3{margin:0 0 12px;font-size:26px;line-height:1.1}
.why-item p{margin:0;color:var(--muted);font-size:16px}
.docs-note{margin:24px 0 0;max-width:46em;font-size:14px;line-height:1.55;color:var(--muted)}
#s7-entreprise{background:var(--bg)}
#s7-entreprise>.wrap{padding-top:112px;padding-bottom:112px}
.about-home{display:flex;flex-wrap:wrap;gap:40px 96px;align-items:flex-start}
.about-home .h2{flex:1 1 380px;min-width:0;max-width:12em}
.about-body{flex:1 1 480px;min-width:0}
.about-body p{margin:0 0 20px;max-width:36em;color:var(--muted);font-size:18px}
.about-body .wp-block-buttons{margin-top:32px}
@media (max-width:1000px){.trust-grid,.why-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.trust-grid,.why-grid{grid-template-columns:minmax(0,1fr)}#s4b-pourquoi>.wrap,#s7-entreprise>.wrap{padding-top:80px;padding-bottom:80px}}
/* Bandeau des ports : défilement continu, ancre devant chaque nom (la liste d'origine reste pour les lecteurs d'écran) */
.ports-band.is-live{padding-top:0;padding-bottom:0}
.ports-band.is-live .wp-block-list,.ports-band.is-live .ports-label{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ptick-wrap{overflow:hidden;padding:11px 0}
.ptick{display:flex;width:max-content;animation:ptick 45s linear infinite;white-space:nowrap}
.ptick>span{display:flex;align-items:center}
.ptick .p{display:flex;align-items:center;gap:12px;padding-right:44px;font-family:"Funnel Display",system-ui,sans-serif;font-weight:700;font-size:clamp(15px,1.15vw,18px);letter-spacing:.03em;text-transform:uppercase;line-height:1}
.ptick svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#s2-confiance:hover .ptick{animation-play-state:paused}
@keyframes ptick{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.ptick{animation:none}.ptick-wrap{overflow-x:auto}}