/* Team Fisher — direction éditoriale, novembre 2026.
 * Couleurs et polices issues des tokens existants. Couche publique isolée.
 */
.tf-design {
  --radius-cards: 12px;
  --shadow-card: 0 2px 8px rgba(0,0,80,.045);
  --shadow-card-hover: 0 8px 20px rgba(0,0,80,.09);
  --section-padding-y: clamp(2.75rem,6vw,5.5rem);
  -webkit-font-smoothing: antialiased;
}
.tf-design .container { max-width:1200px; padding-inline:clamp(1rem,3vw,2rem); }
.tf-design main { overflow-wrap:break-word; }
.tf-design main [id] { scroll-margin-top:90px; }
.tf-design :is(h1,h2,h3) { letter-spacing:-.025em; text-wrap:balance; }
.tf-design :is(p,li) { line-height:1.7; }
.tf-design :is(button,input,select,textarea) { font-family:inherit; }
.tf-design :focus-visible { outline:3px solid var(--tf-blue-light); outline-offset:4px; }
.tf-design :is(.inst-nav,.inst-footer,.inst-utility) :focus-visible { outline-color:var(--tf-gold-accent); }
/* Un bandeau de marque calme ; toute la navigation reste disponible. */
.tf-design .inst-utility-inner { min-height:44px; }
.tf-design .inst-utility a { font-weight:500; }
.tf-design .inst-social { min-width:32px; min-height:32px; }
.tf-design .lang-btn { min-height:32px; min-width:36px; }
.tf-design .inst-masthead-inner { padding-block:1.25rem; gap:1rem; }
.tf-design .inst-brand img { height:58px; width:auto; object-fit:contain; border:0; border-radius:8px; box-shadow:none; }
.tf-design .inst-brand-text { border-left:1px solid var(--tf-gray-200); padding-left:1.25rem; }
.tf-design .inst-brand-title { font-size:1.5rem; letter-spacing:-.02em; }
.tf-design .inst-brand-sub { text-transform:none; letter-spacing:0; font-weight:400; font-size:.85rem; color:var(--tf-gray-600); }
.tf-design .inst-search { box-shadow:none; border-width:1px; }
.tf-design .inst-search button { min-height:40px; min-width:44px; }
.tf-design .inst-nav { box-shadow:none; border-bottom-width:3px; }
.tf-design .inst-nav-link { text-transform:none; letter-spacing:0; font-size:.92rem; font-weight:600; padding-inline:1rem; }
.tf-design .inst-nav-link.active { color:var(--tf-gold-accent); background:var(--tf-blue-dark); }
.tf-design .inst-nav-cta a { text-transform:none; letter-spacing:0; font-weight:600; min-height:40px; box-shadow:none; }
.tf-design .inst-dropdown { border-radius:12px; box-shadow:var(--shadow-card-hover); }
.tf-design .inst-dropdown a { min-height:44px; }
.tf-design .inst-flash-label::before,.tf-design .tf-flash-dot { animation:none; background:var(--tf-blue-primary); }
.tf-design .tf-flash-bar { border-bottom:1px solid var(--tf-gray-200); }
.tf-design .tf-flash-badge { letter-spacing:0; }
/* Titres et rythme : moins de filets, davantage de hiérarchie. */
.tf-design .inst-section-alt { border:0; background:var(--tf-gray-50); }
.tf-design .inst-head { border:0; margin-bottom:2rem; align-items:center; gap:1rem 2rem; }
.tf-design .inst-head h2 { text-transform:none; font-size:clamp(1.55rem,3vw,2.25rem); font-weight:600; letter-spacing:-.035em; border:0; padding-bottom:0; margin:0; line-height:1.2; }
.tf-design .inst-head-link { padding-block:.5rem; color:var(--tf-blue-primary); font-weight:500; text-decoration:underline; text-decoration-color:var(--tf-gray-300); text-underline-offset:5px; white-space:normal; }
.tf-design .inst-head-link:hover { color:var(--tf-blue-light); text-decoration-color:currentColor; transform:none; }
.tf-design .inst-head--actions-spotlight .section-heading-content { width:100%; justify-content:space-between; align-items:center; }
.tf-design .inst-head--actions-spotlight h2 { border-bottom:0 !important; white-space:normal; text-transform:none; font-size:clamp(1.55rem,3vw,2.25rem); }
.tf-design .inst-head-sub { margin-top:0; max-width:68ch; }
/* À la une : photographie lisible et cartouche bleu, sans texte sur les visages. */
.tf-design main > .inst-section:first-of-type { padding-top:clamp(2rem,4vw,3.5rem); }
.tf-design .inst-une { grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:2rem; }
.tf-design .inst-une-main { min-height:0; justify-content:flex-start; border:0; border-radius:12px; box-shadow:none; background:var(--tf-blue-dark); }
.tf-design .inst-une-main img.inst-une-cover { position:relative; inset:auto; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; object-position:center 25%; }
.tf-design .inst-une-overlay { margin-top:0; padding:clamp(1.25rem,3vw,2rem); background:var(--tf-blue-dark); flex:1; }
.tf-design #homeUne .inst-une-title { font-size:clamp(1.3rem,2.3vw,1.85rem); font-weight:600; line-height:1.3; }
.tf-design .inst-badge { font-size:.75rem; letter-spacing:0; font-weight:600; }
.tf-design .inst-badge-cat { backdrop-filter:none; background:transparent; border-color:rgba(255,255,255,.35); }
.tf-design .inst-une-cta { font-weight:600; font-size:.875rem; box-shadow:none; min-height:44px; }
.tf-design .inst-une-meta-row { font-weight:400; gap:.6rem 1.25rem; }
.tf-design .inst-une-side { border:0; box-shadow:none; border-radius:12px; background:var(--tf-gray-50); }
.tf-design .inst-une-side-head h3 { text-transform:none; letter-spacing:0; font-size:1.1rem; font-weight:600; background:transparent; padding:1.4rem; }
.tf-design .inst-une-list a { padding:1.2rem 1.4rem; }
.tf-design .inst-une-list a:hover { padding-left:1.4rem; }
.tf-design .inst-une-list strong { font-weight:600; font-size:.98rem; line-height:1.5; }
.tf-design .inst-une-list .inst-meta { color:var(--tf-gray-600); font-size:.8rem; margin-bottom:.45rem; }
.tf-design .inst-une-side-foot { padding:1.2rem 1.4rem; background:transparent; }
/* Huit accès pratiques, compacts et lisibles. */
.tf-design .inst-services { grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.tf-design .inst-service { flex-direction:row; justify-content:flex-start; text-align:left; min-height:104px; padding:1.2rem; gap:.85rem; border:0; border-radius:12px; box-shadow:var(--shadow-card); }
.tf-design .inst-service-icon { width:40px; height:40px; flex-shrink:0; border-radius:10px; box-shadow:none; }
.tf-design .inst-service-label { font-size:.88rem; font-weight:600; }
.tf-design .inst-service:hover .inst-service-icon { transform:none; box-shadow:none; }
/* Dossiers, actualités, annuaire et médiathèque partagent la même finition. */
.tf-design :is(.inst-dossier,.card-action,.action-card,.news-card,.event-card,.mediatheque-card,.search-card,.form-card,.contact-card,.sitemap-card,.perspective-card,.comment-form-box) { border-radius:12px; box-shadow:var(--shadow-card); }
.tf-design .inst-dossier { border:0; }
.tf-design .inst-dossier-body { padding:1.5rem; border-top:0; }
.tf-design .inst-dossier-body h3 { font-size:1.2rem; font-weight:600; }
.tf-design .inst-dossier-body p { font-size:.95rem; }
.tf-design .inst-dossier-more { text-transform:none; letter-spacing:0; font-weight:600; }
.tf-design .inst-dossier:hover .inst-dossier-more { color:var(--tf-blue-primary); }
.tf-design .inst-dossier-visual { height:auto; aspect-ratio:16/10; }
.tf-design .inst-dossier-badge-icon { box-shadow:none; backdrop-filter:none; border:0; }
.tf-design :is(.inst-dossier,.inst-service,.card-action,.action-card,.news-card,.event-card,.mediatheque-card) { transition:transform .22s ease,box-shadow .22s ease; }
.tf-design .inst-agenda-item { border:0; border-radius:12px; padding:1.5rem; box-shadow:var(--shadow-card); }
.tf-design .inst-agenda-date { background:var(--tf-blue-primary); box-shadow:none; width:68px; min-height:78px; }
.tf-design .inst-agenda-actions :is(a,button) { min-height:44px; }
/* Les chiffres conservent leurs valeurs et leur chargement officiel. */
.tf-design .inst-chiffres { background:var(--tf-blue-dark); border:0; padding-block:clamp(3rem,6vw,5rem); }
.tf-design .inst-chiffres .inst-head h2 { color:var(--tf-white); }
.tf-design .inst-chiffre { border:0; border-left:1px solid rgba(255,255,255,.22); border-radius:0; padding:0 1.5rem; background:transparent; backdrop-filter:none; }
.tf-design .inst-chiffre:hover { transform:none; background:transparent; box-shadow:none; }
.tf-design .inst-chiffre .biztop-counter-number { text-shadow:none; font-weight:600; font-size:clamp(2.5rem,5vw,3.75rem); }
.tf-design .inst-chiffre-label { font-size:1rem; font-weight:500; }
.tf-design .inst-leader { gap:clamp(2rem,5vw,4.5rem); }
.tf-design .inst-leader blockquote { font-size:clamp(1.15rem,2vw,1.5rem); font-style:normal; line-height:1.65; border-left-width:3px; padding-left:1.5rem; }
.tf-design .inst-leader-name { font-size:1.15rem; font-weight:600; }
.tf-design .inst-leader-portrait { border:0; border-radius:12px; box-shadow:var(--shadow-card); }
.tf-design .inst-territoire { border:0; border-top:3px solid var(--tf-blue-primary); border-radius:12px; box-shadow:var(--shadow-card); padding:2rem; }
.tf-design .inst-territoire:nth-child(2) { border-top-color:var(--tf-gold-accent); }
.tf-design .inst-territoire h3 { font-weight:600; }
.tf-design .inst-doc { border:0; border-radius:12px; box-shadow:var(--shadow-card); }
/* Boutons, formulaires et pages intérieures. */
.tf-design .btn { font-weight:600; min-height:44px; box-shadow:none; transition:background-color .18s ease,color .18s ease,transform .18s ease; }
.tf-design .btn-primary { background:var(--tf-gold-accent); color:var(--tf-blue-dark); border-color:var(--tf-gold-accent); }
.tf-design .btn-primary:hover { background:var(--tf-gold-hover); border-color:var(--tf-gold-hover); box-shadow:none; }
.tf-design .btn-outline { border-width:1px; }
.tf-design .home-actions-cta { animation:none; will-change:auto; background:var(--tf-blue-primary); box-shadow:none; border:0; font-weight:600; min-height:44px; white-space:normal; }
.tf-design .home-actions-cta:hover { background:var(--tf-blue-light); box-shadow:none; }
.tf-design :is(.form-input,.form-select,.form-textarea) { border-radius:8px; border-color:var(--tf-gray-300); box-shadow:none; font-size:1rem; }
.tf-design :is(.hero,.page-header) { background:var(--tf-blue-dark); }
.tf-design .hero::before { display:none; }
.tf-design .hero::after { height:3px; }
.tf-design .hero h1 { max-width:24ch; font-size:clamp(2rem,4.8vw,3.5rem); font-weight:600; }
.tf-design .hero p { max-width:68ch; }
.tf-design .inst-footer-cols h4 { text-transform:none; letter-spacing:0; font-size:1rem; font-weight:600; border:0; }
.tf-design .inst-footer-brand span { text-transform:none; letter-spacing:0; }
.tf-design .inst-footer-cols a { display:inline-block; padding-block:.25rem; }
.tf-design .mobile-nav { background:var(--tf-white); backdrop-filter:none; height:100dvh; }
/* Réponses aux interactions et une seule entrée douce de la une. */
@keyframes tf-editorial-enter { from { opacity:.4; transform:translateY(10px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion:no-preference) {
  .tf-design .inst-une-main { animation:tf-editorial-enter .38s ease-out both; }
}
@media (hover:hover) {
  .tf-design :is(.inst-dossier,.inst-service,.card-action,.action-card,.news-card,.mediatheque-card):hover { transform:translateY(-2px); box-shadow:var(--shadow-card-hover); }
  .tf-design .inst-une-main:hover { transform:none; box-shadow:none; }
  .tf-design .inst-une-main:hover img.inst-une-cover { transform:none; }
}
@media (max-width:1023px) {
  .tf-design .inst-services { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tf-design .inst-une { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:1.25rem; }
  .tf-design .inst-nav-link { padding-inline:.7rem; font-size:.85rem; }
}
@media (max-width:767px) {
  .tf-design .inst-une { grid-template-columns:minmax(0,1fr); }
  .tf-design .inst-une-main { min-height:0; }
  .tf-design .inst-une-overlay { padding:1.4rem; }
  .tf-design .inst-masthead-inner { padding-block:1rem; flex-wrap:wrap; }
  .tf-design .inst-brand img { height:44px; }
  .tf-design .inst-brand-text { padding-left:.75rem; }
  .tf-design .inst-brand-title { font-size:1.15rem; }
  .tf-design .inst-brand-sub { font-size:.72rem; }
  .tf-design .inst-masthead-tools { min-width:0; }
  .tf-design .inst-head { margin-bottom:1.5rem; gap:.5rem; }
  .tf-design .inst-service { padding:1rem; gap:.65rem; flex-direction:column; align-items:flex-start; }
  .tf-design .inst-service-label { font-size:.87rem; }
  .tf-design .inst-services { gap:.75rem; }
  .tf-design .inst-chiffres-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem 1rem; }
  .tf-design .inst-chiffre { padding-left:1rem; padding-right:0; }
  .tf-design .inst-chiffre-label { font-size:.9rem; }
  .tf-design .inst-chiffre-desc { font-size:.8rem; }
  .tf-design .inst-leader-portrait { max-width:320px; }
  .tf-design .inst-territoire { padding:1.5rem; }
  .tf-design .inst-head--actions-spotlight .section-heading-content { align-items:flex-start; }
}
@media (max-width:420px) {
  .tf-design .inst-brand { gap:.5rem; flex:1; }
  .tf-design .inst-brand img { height:34px; }
  .tf-design .inst-brand-text { padding-left:.5rem; }
  .tf-design .inst-brand-title { font-size:1rem; }
  .tf-design .inst-brand-sub { font-size:.66rem; }
  .tf-design .inst-footer-cols { grid-template-columns:minmax(0,1fr); }
  .tf-design .inst-utility-inner { gap:.5rem; }
  .tf-design .inst-utility-left,.tf-design .inst-utility-right { gap:.25rem; }
  .tf-design .inst-utility-left a { font-size:.7rem; padding-inline:0; }
}
@media (prefers-reduced-motion:reduce) {
  .tf-design,.tf-design *,.tf-design *::before,.tf-design *::after { scroll-behavior:auto !important; animation:none !important; transition:none !important; }
}

/* Lecture des pages intérieures et champs étroits. */
.tf-design .section-alt { background:var(--tf-gray-50); }
.tf-design .biztop-hero { background:var(--tf-blue-dark); }
.tf-design .biztop-hero::before,.tf-design .biztop-hero::after { display:none; }
.tf-design .biztop-hero-title { font-weight:600; letter-spacing:-.035em; }
.tf-design .biztop-hero-tag { background:var(--tf-blue-primary, #00007f); color:var(--tf-gold-accent, #fec301); border:1px solid rgba(254,195,1,.35); box-shadow:0 2px 8px rgba(0,0,50,.35); letter-spacing:.04em; }
.tf-design .tf-hub-section-tag { display:inline-flex; align-items:center; font-size:.75rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--tf-gold-accent, #fec301); background:var(--tf-blue-primary, #00007f); padding:.35rem .85rem; border-radius:6px; margin-bottom:.6rem; box-shadow:0 2px 6px rgba(0,0,127,.2); }
.tf-design .biztop-hero-decor::before { display:none; }
.tf-design .biztop-hero-title .text-accent { background:none; -webkit-text-fill-color:currentColor; color:var(--tf-gold-accent); }
.tf-design .biztop-hero-title .text-accent::after { display:none; }
.tf-design :is(.contact-grid,.grid-2,.grid-3) > *, .tf-design .contact-channel-details { min-width:0; }
.tf-design .contact-channel-details { overflow-wrap:anywhere; }
.tf-design :is(.form-input,.form-select,.form-textarea) { min-width:0; max-width:100%; }
.tf-design .contact-card .btn { flex-wrap:wrap; max-width:100%; text-align:left; }
@media (max-width:600px) {
  .tf-design .contact-card { padding:1.25rem; }
  .tf-design .contact-channel-item { flex-wrap:wrap; }
  .tf-design #commentForm > [style*="grid-template-columns"] { grid-template-columns:minmax(0,1fr) !important; }
}

/* Mouvement coordonné : l'orchestration JS remplace les anciens reveals.
   Ces règles rendent aussi tout le contenu lisible sans JavaScript. */
.tf-design .reveal-on-scroll,
.tf-design .reveal-on-scroll.is-revealed {
  opacity:1; transform:none; transition:none; will-change:auto;
}
.tf-design .inst-une-main { animation:none; }
@media (prefers-reduced-motion:no-preference) {
  .tf-design :is(.btn,.inst-une-cta,.home-actions-cta) {
    transition:transform .22s cubic-bezier(.22,1,.36,1),background-color .2s ease,box-shadow .2s ease;
  }
  .tf-design :is(.btn,.inst-une-cta,.home-actions-cta):active { transform:scale(.98); }
  .tf-design :is(.inst-dossier-visual img,.mediatheque-card-media img,.bio-portrait-img) {
    transition:transform .65s cubic-bezier(.22,1,.36,1);
  }
  .tf-design :is(.inst-service-icon,.inst-doc-icon) {
    transition:transform .35s cubic-bezier(.22,1,.36,1),background-color .25s ease,color .25s ease;
  }
  .tf-design .inst-nav-link { transition:color .2s ease,background-color .2s ease,box-shadow .2s ease; }
  .tf-design .inst-nav-link:hover { box-shadow:inset 0 -3px var(--tf-gold-accent); }
  .tf-design .inst-head-link { transition:color .2s ease,text-decoration-color .2s ease; }
  @media (hover:hover) and (pointer:fine) {
    .tf-design :is(.inst-dossier:hover .inst-dossier-visual img,.mediatheque-card:hover .mediatheque-card-media img) { transform:scale(1.035); }
    .tf-design .bio-portrait-card { overflow:hidden; }
    .tf-design .bio-portrait-card:hover .bio-portrait-img { transform:scale(1.025); }
    .tf-design .inst-service:hover .inst-service-icon { transform:translateY(-2px) rotate(-5deg); }
    .tf-design .inst-doc:hover .inst-doc-icon { transform:translateY(-2px); }
    .tf-design :is(.btn,.inst-une-cta,.home-actions-cta):hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,80,.1); }
  }
}
@media print {
  .tf-design * { animation:none !important; transition:none !important; opacity:1 !important; transform:none !important; }
}

/* Réserve la une pendant le chargement pour ne pas déclencher les sections suivantes trop tôt. */
.tf-design #homeUne:not(:has(> *)) { min-height:44rem; }
@media (max-width:767px) { .tf-design #homeUne:not(:has(> *)) { min-height:72rem; } }
