/* ==========================================================================
   Tecpod v10 — Corporate.
   Base blanche, photographie pleine largeur, coupe diagonale, bandeaux
   contrastés. Référence d'en-tête : Zebra. Hero et chiffres : Storable.
   Respiration et photographie : Capgemini, Atos.
   ========================================================================== */

.tp {
  --navy:       #0b2138;
  --navy-deep:  #071626;
  --brand:      #00a85d;   /* aplats, boutons, états actifs */
  --brand-dark: #00703e;   /* texte et liens sur fond clair, contraste AA */
  --gold:       #f2a81d;   /* chiffres uniquement */
  --ink:        #0e1a17;
  --mute:       #566a61;
  --line:       #dfe5e2;
  --tint:       #f2f6f4;
  --white:      #ffffff;

  --gutter: clamp(18px, 4vw, 64px);
  --rhythm: clamp(56px, 6.5vw, 104px);
  --max: 1360px;

  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.tp *, .tp *::before, .tp *::after { box-sizing: border-box; }
.tp :is(h1,h2,h3,h4,p,ul,ol,figure,blockquote) { margin: 0; }
.tp img { max-width: 100%; display: block; }
.tp a { color: inherit; }
.tp button, .tp input, .tp select, .tp textarea { font: inherit; color: inherit; }
.tp button { cursor: pointer; background: none; border: 0; padding: 0; }
.tp :is(a,button,summary,input,select,[tabindex]):focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

.tp-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.tp-section { padding-block: var(--rhythm); }

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */

.tp-h1 { font-size: clamp(34px, 4.6vw, 62px); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; }
.tp-h2 { font-size: clamp(27px, 3.1vw, 44px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; max-width: 24ch; }
.tp-h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.tp-h4 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.tp-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--mute); max-width: 62ch; }
.tp-kicker { font-size: 13px; font-weight: 600; color: var(--brand-dark); letter-spacing: .02em; margin-bottom: 14px; display: block; }

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

.tp-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand); color: var(--white);
  padding: 14px 26px; font-size: 15px; font-weight: 600;
  border: 2px solid var(--brand); border-radius: 3px;
  text-decoration: none; transition: background .16s, border-color .16s, color .16s;
}
.tp-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }
.tp-btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.tp-btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.tp-btn--dark { background: var(--navy); border-color: var(--navy); }
.tp-btn--dark:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.tp-link { color: var(--brand-dark); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.tp-link::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .16s; }
.tp-link:hover { text-decoration: underline; }
.tp-link:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* --------------------------------------------------------------------------
   En-tête — trois rangées : utilitaires, navigation, annonce.
   -------------------------------------------------------------------------- */

.tp-header { position: sticky; top: 0; z-index: 90; background: var(--white); }

.tp-util { border-bottom: 1px solid var(--line); background: var(--white); }
.tp-util-bar { display: flex; justify-content: flex-end; align-items: center; gap: 20px; min-height: 38px; font-size: 13px; color: var(--mute); }
.tp-util a { text-decoration: none; }
.tp-util a:hover { color: var(--brand-dark); }
.tp-util-sep { width: 1px; height: 14px; background: var(--line); }

.tp-main-bar { display: flex; align-items: center; gap: 20px; min-height: 76px; border-bottom: 1px solid var(--line); position: relative; }
.tp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--navy); }
.tp-brand img { height: 34px; width: auto; }
.tp-brand b { color: var(--brand); font-weight: 700; }

.tp-menu { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.tp-menu > li { position: relative; }
.tp-menu > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 13px; font-size: 15px; font-weight: 600; text-decoration: none;
  border-bottom: 3px solid transparent;
}
.tp-menu > li > a:hover, .tp-menu > li > a[aria-current] { color: var(--brand-dark); border-bottom-color: var(--brand); }
.tp-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }

/* Sous-menu : survol au pointeur, focus au clavier, clic au tactile. */
.tp-sub {
  position: absolute; top: 100%; left: 0; min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--brand);
  padding: 10px; list-style: none; margin: 0;
  box-shadow: 0 18px 40px rgba(11,33,56,.13);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.tp-menu > li:hover .tp-sub,
.tp-menu > li:focus-within .tp-sub,
.tp-sub[data-open="1"] { opacity: 1; visibility: visible; transform: none; }
.tp-sub a { display: block; padding: 10px 12px; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 3px; }
.tp-sub a:hover { background: var(--tint); color: var(--brand-dark); }
.tp-sub small { display: block; font-size: 12.5px; color: var(--mute); font-weight: 400; margin-top: 3px; line-height: 1.45; }

.tp-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; }
.tp-search input { border: 0; padding: 9px 12px; width: 140px; font-size: 14px; background: transparent; }
.tp-search button { padding: 9px 11px; color: var(--mute); }
.tp-search button:hover { color: var(--brand-dark); }

.tp-burger { display: none; margin-left: auto; padding: 10px; }
.tp-burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.tp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Bandeau d'annonce, pleine largeur. */
.tp-promo { background: var(--brand); color: var(--white); }
.tp-promo-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; font-size: 15px; font-weight: 600; }
.tp-promo a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tp-promo a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Hero — photo pleine hauteur, voile navy coupé en diagonale.
   -------------------------------------------------------------------------- */

.tp-hero { position: relative; background: var(--navy); color: var(--white); isolation: isolate; overflow: hidden; }

.tp-hero-media { position: absolute; inset: 0 0 0 36%; z-index: -2; }
.tp-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }

.tp-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--navy);
  clip-path: polygon(0 0, 57% 0, 42% 100%, 0 100%);
}
.tp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(11,33,56,.6) 40%, rgba(11,33,56,0) 74%);
}

.tp-hero-inner { padding-block: clamp(52px, 7.5vw, 120px) 0; min-height: clamp(430px, 50vw, 600px); display: flex; flex-direction: column; justify-content: center; }
.tp-hero-copy { max-width: 47ch; position: relative; z-index: 1; padding-bottom: clamp(40px, 5vw, 72px); }
.tp-hero .tp-kicker { color: #6fe0a6; }
.tp-hero .tp-h1 { max-width: 15ch; }
.tp-hero .tp-lead { color: #c5d3dd; margin-top: 20px; max-width: 48ch; }
.tp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.tp-hero-foot {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.22);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 18px; font-size: 14px; color: #c5d3dd;
}
.tp-hero-foot a { color: var(--white); text-decoration: none; font-weight: 600; }
.tp-hero-foot a:hover { text-decoration: underline; }

.tp-hero--compact .tp-hero-inner { min-height: 0; padding-block: clamp(44px, 5vw, 78px) 0; }
.tp-hero--compact .tp-hero-copy { padding-bottom: clamp(32px, 4vw, 56px); }
.tp-hero--compact .tp-h1 { max-width: 20ch; font-size: clamp(30px, 3.6vw, 50px); }

.tp-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #a9bcc9; margin-bottom: 22px; }
.tp-crumb a { text-decoration: none; }
.tp-crumb a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Orienteur — deux choix, une destination réelle du site.
   -------------------------------------------------------------------------- */

.tp-finder {
  background: var(--white); color: var(--ink);
  border-top: 4px solid var(--brand);
  box-shadow: 0 22px 54px rgba(7,22,38,.2);
  padding: 26px 28px; max-width: 920px;
  position: relative; z-index: 2; margin-top: -44px; border-radius: 0 0 4px 4px;
}
.tp-finder h2 { font-size: 19px; font-weight: 600; margin-bottom: 18px; }
.tp-finder-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.tp-finder label { font-size: 13px; font-weight: 600; color: var(--mute); display: block; }
.tp-finder select { width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); }
.tp-finder select:focus { border-color: var(--brand); }

/* --------------------------------------------------------------------------
   Navigation interne de page
   -------------------------------------------------------------------------- */

.tp-pagenav { background: var(--tint); border-bottom: 1px solid var(--line); }
.tp-pagenav-bar { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.tp-pagenav-bar::-webkit-scrollbar { display: none; }
.tp-pagenav a { padding: 15px 0; font-size: 14.5px; font-weight: 600; color: var(--mute); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.tp-pagenav a:hover { color: var(--brand-dark); border-bottom-color: var(--brand); }

/* --------------------------------------------------------------------------
   Bandeau de chiffres
   -------------------------------------------------------------------------- */

.tp-stats { background: var(--navy); color: var(--white); }
.tp-stats-inner { padding-block: clamp(42px, 5vw, 72px); }
.tp-stats-head { text-align: center; font-size: 14px; font-weight: 600; color: #8fb3c9; margin-bottom: 34px; }
.tp-stats-head::after { content: ""; display: block; width: 46px; height: 2px; background: var(--gold); margin: 12px auto 0; }
.tp-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tp-stat { text-align: center; padding-inline: 12px; border-left: 1px solid rgba(255,255,255,.14); }
.tp-stat:first-child { border-left: 0; }
.tp-stat b { display: block; font-size: clamp(38px, 4.6vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tp-stat b em { color: var(--gold); font-style: normal; }
.tp-stat span { display: block; font-size: 14px; color: #a9c1d1; margin-top: 12px; }

/* --------------------------------------------------------------------------
   En-têtes de section
   -------------------------------------------------------------------------- */

.tp-head { margin-bottom: clamp(30px, 3.6vw, 52px); max-width: 780px; }
.tp-head .tp-lead { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */

.tp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.tp-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.tp-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand); transform: scaleY(0); transform-origin: top; transition: transform .22s; }
.tp-card:hover { border-color: #c4d4cc; box-shadow: 0 16px 36px rgba(11,33,56,.1); transform: translateY(-3px); }
.tp-card:hover::before { transform: scaleY(1); }
.tp-card h3 { margin-bottom: 11px; }
.tp-card p { color: var(--mute); font-size: 16px; }
.tp-card .tp-link { margin-top: 18px; }

/* --------------------------------------------------------------------------
   Périmètre : photo + accordéon
   -------------------------------------------------------------------------- */

.tp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 4.5vw, 72px); align-items: start; }
.tp-media { position: relative; border-radius: 4px; overflow: hidden; }
.tp-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.tp-media figcaption { position: absolute; left: 0; bottom: 0; background: rgba(7,22,38,.82); color: #fff; font-size: 12px; padding: 7px 12px; }

.tp-acc { border-top: 1px solid var(--line); }
.tp-acc details { border-bottom: 1px solid var(--line); }
.tp-acc summary { list-style: none; cursor: pointer; position: relative; padding: 20px 46px 20px 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.tp-acc summary::-webkit-details-marker { display: none; }
.tp-acc summary::before, .tp-acc summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; background: var(--brand); transition: transform .2s; }
.tp-acc summary::after { transform: rotate(90deg); }
.tp-acc details[open] summary { color: var(--brand-dark); }
.tp-acc details[open] summary::after { transform: rotate(0); }
.tp-acc-body { padding: 0 46px 22px 0; color: var(--mute); font-size: 16px; max-width: 64ch; }

/* --------------------------------------------------------------------------
   Onglets de parcours
   -------------------------------------------------------------------------- */

.tp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.tp-tabs button { padding: 12px 22px; font-size: 15px; font-weight: 600; color: var(--mute); background: var(--tint); border-radius: 3px; min-height: 46px; transition: background .16s, color .16s; }
.tp-tabs button:hover { color: var(--brand-dark); }
.tp-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }

.tp-panel > h3 { font-size: clamp(21px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.018em; margin-bottom: 28px; max-width: 32ch; }
.tp-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tp-steps > li { background: var(--tint); border-radius: 4px; padding: 26px 24px; position: relative; }
.tp-steps > li::before { content: attr(data-step); position: absolute; top: 18px; right: 22px; font-size: 38px; font-weight: 700; line-height: 1; color: #d3e3da; letter-spacing: -0.04em; }
.tp-steps h4 { margin-bottom: 9px; padding-right: 48px; }
.tp-steps p { font-size: 15px; color: var(--mute); }
.tp-panel-note { font-size: 14.5px; color: var(--mute); margin-top: 24px; padding-left: 16px; border-left: 3px solid var(--brand); max-width: 78ch; }

/* --------------------------------------------------------------------------
   Indicateurs — bandeau sombre
   -------------------------------------------------------------------------- */

.tp-dark { background: var(--navy); color: var(--white); }
.tp-dark .tp-h2 { color: var(--white); }
.tp-dark .tp-lead { color: #b6c8d4; }
.tp-dark .tp-kicker { color: #6fe0a6; }
.tp-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tp-metric { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 28px 26px; }
.tp-metric h3 { margin-bottom: 11px; }
.tp-metric p { color: #b6c8d4; font-size: 15.5px; }
.tp-metric small { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #8fb3c9; }

/* --------------------------------------------------------------------------
   Simulateur
   -------------------------------------------------------------------------- */

.tp-calc { background: linear-gradient(115deg, var(--navy-deep), #0d2f4c); color: var(--white); border-radius: 4px; padding: clamp(28px, 4vw, 52px); }
.tp-calc-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.tp-calc h3 { font-size: clamp(21px, 2.3vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; max-width: 24ch; margin-bottom: 10px; }
.tp-calc-sub { font-size: 14px; color: #9fbdd2; }
.tp-calc-fields { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.tp-calc-fields label { flex: 1 1 calc(50% - 9px); min-width: 150px; font-size: 13px; font-weight: 600; color: #9fbdd2; }
.tp-calc-fields input { display: block; width: 100%; margin-top: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.26); border-radius: 3px; padding: 12px 14px; font-size: 21px; color: var(--white); font-variant-numeric: tabular-nums; }
.tp-calc-fields input:focus { border-color: var(--brand); background: rgba(255,255,255,.12); }
.tp-calc-fields input[aria-invalid="true"] { border-color: var(--gold); }
.tp-calc-reset { font-size: 13px; font-weight: 600; color: #9fbdd2; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 3px; align-self: flex-end; }
.tp-calc-reset:hover { color: var(--white); }
.tp-formula { font-size: 13px; color: #9fbdd2; margin-top: 20px; font-variant-numeric: tabular-nums; }
.tp-calc-out { text-align: center; border-left: 1px solid rgba(255,255,255,.16); padding-left: clamp(22px, 3vw, 44px); }
.tp-calc-out output { display: block; font-size: clamp(46px, 6vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--gold); font-variant-numeric: tabular-nums; }
.tp-calc-out p { font-size: 15px; color: #b6c8d4; margin-top: 14px; }
.tp-calc-err { color: var(--gold); font-size: 14px; margin-top: 10px; }
.tp-calc-foot { font-size: 13px; color: #9fbdd2; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }

/* --------------------------------------------------------------------------
   Déroulé de mission
   -------------------------------------------------------------------------- */

.tp-process { list-style: none; padding: 0; counter-reset: s; }
.tp-process > li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.45; }
.tp-process > li::before { content: counter(s, decimal-leading-zero); font-size: 15px; font-weight: 700; color: var(--brand); padding-top: 4px; font-variant-numeric: tabular-nums; }
.tp-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; padding: 0; }
.tp-tools li { background: var(--tint); border-radius: 3px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--mute); }

/* --------------------------------------------------------------------------
   Articles et index
   -------------------------------------------------------------------------- */

.tp-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tp-post { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: box-shadow .18s, transform .18s; }
.tp-post:hover { box-shadow: 0 16px 36px rgba(11,33,56,.1); transform: translateY(-3px); }
.tp-post img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.tp-post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tp-post h3 { margin-bottom: 10px; }
.tp-post h3 a { text-decoration: none; }
.tp-post h3 a:hover { color: var(--brand-dark); }
.tp-post p { font-size: 15px; color: var(--mute); margin-bottom: 18px; }
.tp-post .tp-link { margin-top: auto; align-self: flex-start; }

.tp-article { max-width: 70ch; }
.tp-article h2 { font-size: clamp(23px, 2.3vw, 31px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.2; margin: 48px 0 16px; }
.tp-article h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.tp-article p { margin-bottom: 19px; }
.tp-article ul, .tp-article ol { margin: 0 0 22px; padding-left: 22px; }
.tp-article li { margin-bottom: 8px; }
.tp-article a { color: var(--brand-dark); font-weight: 600; }

.tp-toc { background: var(--tint); border-left: 4px solid var(--brand); padding: 22px 26px; margin-bottom: 40px; border-radius: 0 4px 4px 0; }
.tp-toc p { font-size: 13px; font-weight: 700; color: var(--mute); margin-bottom: 12px; }
.tp-toc ol { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 15px; margin: 0; }
.tp-toc a { color: var(--ink); text-decoration: none; font-weight: 500; }
.tp-toc a:hover { color: var(--brand-dark); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Maillage et appel final
   -------------------------------------------------------------------------- */

.tp-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tp-related a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: var(--tint); border-radius: 4px; text-decoration: none; font-weight: 600; font-size: 15.5px; transition: background .16s, color .16s; }
.tp-related a:hover { background: var(--navy); color: var(--white); }

.tp-cta { background: linear-gradient(110deg, var(--brand-dark), var(--brand)); color: var(--white); }
.tp-cta .tp-h2 { color: var(--white); }
.tp-cta-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.tp-cta p { color: rgba(255,255,255,.92); max-width: 50ch; margin-top: 14px; }
.tp-cta .tp-btn { background: var(--white); color: var(--brand-dark); border-color: var(--white); }
.tp-cta .tp-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.tp-foot { background: var(--navy-deep); color: #9fb3c2; padding-block: clamp(46px, 5vw, 76px) 26px; font-size: 14.5px; }
.tp-foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 38px; }
.tp-foot h2 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.tp-foot ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.tp-foot a { text-decoration: none; }
.tp-foot a:hover { color: var(--white); text-decoration: underline; }
.tp-foot-brand { font-size: 24px; font-weight: 700; color: var(--white); letter-spacing: -0.03em; margin-bottom: 14px; display: block; }
.tp-foot-brand b { color: var(--brand); }
.tp-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 13px; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */

.tp-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 780px; }
.tp-form label { font-size: 14px; font-weight: 600; color: var(--mute); }
.tp-form :is(input, select, textarea) { display: block; width: 100%; margin-top: 7px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; font-size: 16px; }
.tp-form :is(input, select, textarea):focus { border-color: var(--brand); }
.tp-form-full { grid-column: 1 / -1; }
.tp-form textarea { min-height: 150px; resize: vertical; }

/* --------------------------------------------------------------------------
   Adaptations
   -------------------------------------------------------------------------- */

@media (max-width: 1160px) {
  .tp-menu, .tp-search { display: none; }
  .tp-burger { display: block; }
  .tp-menu[data-open="1"] {
    display: grid; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px; gap: 2px; max-height: 76vh; overflow-y: auto;
    box-shadow: 0 20px 40px rgba(11,33,56,.14);
  }
  .tp-menu[data-open="1"] > li > a { border-bottom: 1px solid var(--line); padding: 15px 0; justify-content: space-between; }
  .tp-menu[data-open="1"] .tp-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--brand); padding: 4px 0 10px 14px; margin-bottom: 8px; display: none; min-width: 0; }
  .tp-menu[data-open="1"] .tp-sub[data-open="1"] { display: block; }
}

@media (max-width: 1000px) {
  .tp-grid, .tp-metrics, .tp-feed, .tp-steps, .tp-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-stats-row { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .tp-stat:nth-child(3) { border-left: 0; }
  .tp-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .tp { font-size: 16px; }
  .tp-hero-media { inset: 0; }
  .tp-hero::before { clip-path: none; opacity: .8; }
  .tp-hero::after { background: linear-gradient(180deg, rgba(7,22,38,.5), rgba(7,22,38,.92)); }
  .tp-hero-copy { max-width: none; }
  .tp-split, .tp-calc-grid, .tp-form, .tp-finder-row { grid-template-columns: 1fr; display: grid; }
  .tp-grid, .tp-metrics, .tp-feed, .tp-steps, .tp-related { grid-template-columns: 1fr; }
  .tp-stats-row { grid-template-columns: 1fr; }
  .tp-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; }
  .tp-stat:first-child { border-top: 0; padding-top: 0; }
  .tp-calc-out { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding-left: 0; padding-top: 26px; }
  .tp-cta-grid { display: block; }
  .tp-cta .tp-btn { margin-top: 26px; }
  .tp-foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .tp-finder { margin-top: 0; box-shadow: none; max-width: none; }
  .tp-util-bar { justify-content: center; gap: 14px; font-size: 12.5px; flex-wrap: wrap; }
  .tp-promo-bar { flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tp *, .tp *::before, .tp *::after { animation: none !important; transition: none !important; }
}

@media print {
  .tp-header, .tp-pagenav, .tp-tabs, .tp-calc-fields, .tp-cta, .tp-finder { display: none !important; }
  .tp-panel[hidden] { display: block !important; }
  .tp { background: #fff; font-size: 11pt; }
}
