/* polices du site, servies localement */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/playfair-display-latin-ext-400-900.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url(assets/fonts/playfair-display-latin-400-900.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-sans-3-latin-ext-400-800-i.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: italic; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-sans-3-latin-400-800-i.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-sans-3-latin-ext-400-800.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(assets/fonts/source-sans-3-latin-400-800.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ttc-bg: #FFFFFF;
  --ttc-surface: #F3F0EF;
  --ttc-text: #0D0D0D;
  --ttc-muted: #474747;
  --ttc-accent: #C70018;
  --ttc-accent2: #0D0D0D;
  --ttc-line: #C9C4C2;
  --ttc-on-dark: #E9E5E4;
  --ttc-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ttc-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --ttc-max: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ttc-bg);
  color: var(--ttc-text);
  font-family: var(--ttc-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ttc-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--ttc-text);
}

:focus-visible {
  outline: 3px solid var(--ttc-accent);
  outline-offset: 2px;
}

/* En-tête */
.ttc-masthead {
  background: var(--ttc-bg);
  border-top: 8px solid var(--ttc-text);
  border-bottom: 1px solid var(--ttc-text);
}

.ttc-masthead-in {
  max-width: var(--ttc-max);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

.ttc-brand {
  font-family: var(--ttc-display);
  font-weight: 900;
  font-size: 1.65rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ttc-text);
  text-decoration: none;
}

.ttc-brand:hover {
  color: var(--ttc-text);
}

.ttc-brand-r {
  color: var(--ttc-accent);
}

.ttc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
}

.ttc-nav a {
  display: inline-block;
  padding: 0.3rem 0;
  color: var(--ttc-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.ttc-nav a:hover {
  border-bottom-color: var(--ttc-accent);
  color: var(--ttc-text);
}

/* Structure */
.ttc-main {
  max-width: var(--ttc-max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Premier écran */
.ttc-front {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 1.5rem 0 1.75rem;
}

.ttc-frame {
  margin: 0;
  background: var(--ttc-accent);
  padding: 0.75rem;
  aspect-ratio: 5 / 4;
  clip-path: polygon(0 5%, 97% 0, 100% 94%, 4% 100%);
  overflow: hidden;
}

.ttc-frame svg,
.ttc-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.ttc-frame img {
  object-fit: cover;
}

.ttc-front-text {
  position: relative;
  z-index: 2;
}

.ttc-title {
  position: relative;
  margin: -2.5rem 0 0 1rem;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--ttc-bg);
  border-top: 6px solid var(--ttc-text);
  font-family: var(--ttc-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 6.4vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.ttc-lede {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  line-height: 1.5;
}

.ttc-lede strong {
  font-weight: 700;
}

/* Repères chiffrés */
.ttc-keyfacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  background: var(--ttc-accent);
  color: #FFFFFF;
}

.ttc-keyfacts > div {
  padding: 1rem 1.1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.ttc-keyfacts dt {
  font-family: var(--ttc-display);
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1.1;
}

.ttc-keyfacts dd {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Sections de texte */
.ttc-section {
  padding: 1.6rem 0 0.6rem;
  margin-top: 1.6rem;
  border-top: 2px solid var(--ttc-text);
}

.ttc-section h2 {
  margin: 0 0 0.8rem;
  font-family: var(--ttc-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  break-after: avoid;
}

.ttc-section h3 {
  margin: 1.1rem 0 0.35rem;
  font-family: var(--ttc-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--ttc-accent);
  break-after: avoid;
  break-inside: avoid;
}

.ttc-cols h3:first-child {
  margin-top: 0;
}

.ttc-section p {
  margin: 0 0 0.9em;
  hyphens: auto;
}

.ttc-section ul {
  margin: 0 0 1em;
  padding-left: 1.15rem;
}

.ttc-section li {
  margin-bottom: 0.4em;
  padding-left: 0.15rem;
}

.ttc-section li::marker {
  color: var(--ttc-accent);
}

.ttc-cols {
  column-gap: 2.4rem;
}

/* Encadré de chiffre */
.ttc-box {
  margin: 0.4rem 0 1.1rem;
  padding: 0.8rem 1rem;
  background: var(--ttc-surface);
  border: 2px solid var(--ttc-accent);
  break-inside: avoid;
}

.ttc-box p {
  margin: 0;
}

.ttc-box-fig {
  font-family: var(--ttc-display);
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1.1;
  color: var(--ttc-accent);
}

.ttc-box-txt {
  margin-top: 0.3rem;
  font-size: 0.98rem;
}

/* Tableaux */
.ttc-tablewrap {
  margin: 1.2rem 0 1.4rem;
  overflow-x: auto;
  border-top: 3px solid var(--ttc-text);
  border-bottom: 1px solid var(--ttc-text);
  background: var(--ttc-bg);
}

.ttc-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.4;
}

.ttc-table caption {
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-family: var(--ttc-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.ttc-table th,
.ttc-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.ttc-table thead th {
  background: var(--ttc-surface);
  border-bottom: 1px solid var(--ttc-text);
  font-weight: 700;
}

.ttc-table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.ttc-table tbody tr + tr > * {
  border-top: 1px solid var(--ttc-line);
}

/* Figures (pages avec photo) */
.ttc-figure {
  margin: 1.2rem 0;
}

.ttc-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.ttc-figure figcaption {
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--ttc-text);
  font-size: 0.9rem;
  color: var(--ttc-muted);
}

/* Liste de contrôle */
.ttc-checks {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
}

.ttc-checks li {
  margin: 0;
  padding: 0.55rem 0 0.55rem 1.1rem;
  border-top: 1px solid var(--ttc-line);
  position: relative;
  break-inside: avoid;
}

.ttc-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--ttc-accent);
}

/* Bloc de questions-réponses */
.ttc-faq {
  margin-top: 2.2rem;
  padding: 1.4rem 1.25rem 1rem;
  background: var(--ttc-surface);
  border-top: 6px solid var(--ttc-text);
}

.ttc-faq h2 {
  margin: 0 0 0.6rem;
  font-family: var(--ttc-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  line-height: 1.15;
}

.ttc-faq-item {
  padding: 0.9rem 0;
  border-top: 1px solid var(--ttc-text);
}

.ttc-faq-q {
  margin: 0 0 0.3rem;
  font-family: var(--ttc-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
}

.ttc-faq-a {
  margin: 0;
  max-width: 62rem;
}

/* Page de mentions légales */
.ttc-legal {
  max-width: 48rem;
  padding-top: 2rem;
}

.ttc-legal h1 {
  font-family: var(--ttc-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.ttc-legal h2 {
  font-family: var(--ttc-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 1.4rem 0 0.4rem;
}

/* Pied de page */
.ttc-footer {
  background: var(--ttc-text);
  color: var(--ttc-on-dark);
  border-top: 8px solid var(--ttc-accent);
}

.ttc-footer-in {
  max-width: var(--ttc-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.75rem;
  display: grid;
  gap: 0.6rem 2rem;
  grid-template-columns: minmax(0, 1fr);
}

.ttc-footer-name {
  margin: 0;
  font-family: var(--ttc-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: #FFFFFF;
}

.ttc-footer p {
  margin: 0;
}

.ttc-footer a {
  color: #FFFFFF;
}

.ttc-footer a:hover {
  color: var(--ttc-on-dark);
}

.ttc-footer :focus-visible {
  outline-color: #FFFFFF;
}

.ttc-keyfacts :focus-visible {
  outline-color: #FFFFFF;
}

.ttc-credits {
  font-size: 0.9rem;
}

/* Tablette */
@media (min-width: 640px) {
  .ttc-keyfacts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ttc-keyfacts > div {
    border-top: 0;
  }

  .ttc-frame {
    padding: 1.5rem;
  }

  .ttc-title {
    margin: -4rem 0 0 2rem;
    font-size: clamp(2rem, 5.4vw, 2.9rem);
    padding: 1.2rem 1.4rem 1.3rem;
  }

  .ttc-footer-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* Deux colonnes façon presse */
@media (min-width: 900px) {
  .ttc-cols {
    column-count: 2;
    column-rule: 1px solid var(--ttc-text);
  }

  .ttc-cols p,
  .ttc-cols ul {
    orphans: 3;
    widows: 3;
  }
}

/* Grand écran : titre à cheval sur le cadre */
@media (min-width: 1000px) {
  .ttc-front {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 1.25rem;
    padding: 2rem 0 2.2rem;
  }

  .ttc-frame {
    grid-column: 1 / span 8;
    grid-row: 1;
    padding: 2rem;
  }

  .ttc-front-text {
    grid-column: 8 / -1;
    grid-row: 1;
    align-self: start;
    padding-top: 2.2rem;
  }

  .ttc-title {
    margin: 0 0 0 -7rem;
    padding: 1.4rem 1.6rem 1.6rem;
    font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  }

  .ttc-lede {
    margin-top: 1.4rem;
    font-size: 1.2rem;
  }
}

@media (min-width: 1400px) {
  body {
    font-size: 1.125rem;
  }
}

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