/* Trackday Giallo : pages construites depuis un gabarit (gabarits/accueil.json).
   Valeurs reprises de maquettes/accueil-giallo/style.css. Les conteneurs et widgets Elementor
   portent des classes tdg-* (onglet Avancé) ; les sélecteurs commencent par .tdg-theme pour passer
   devant les styles par défaut d'Elementor sans !important. Une seule touche de rouge par écran. */

/* ---------- Commun ---------- */
.tdg-theme .tdg-section {
	--tdg-pad-x: max(var(--tdg-marge), calc((100% - var(--tdg-max)) / 2 + var(--tdg-marge)));
	position: relative;
	gap: 0;
	padding: 0;
}
.tdg-theme .tdg-section .e-con { gap: 0; padding: 0; }
.tdg-theme .tdg-section .elementor-widget { margin: 0; }
.tdg-theme .tdg-section p { margin: 0; }
.tdg-theme .tdg-section .elementor-widget-text-editor,
.tdg-theme .tdg-section .elementor-widget-heading .elementor-heading-title { color: inherit; font-family: var(--tdg-police); }
.tdg-theme .tdg-section .elementor-widget-image img { display: block; width: 100%; max-width: none; object-fit: cover; }
.tdg-theme .tdg-section a:not(.elementor-button) { color: inherit; text-decoration: none; }
.tdg-theme .tdg-section .tdg-surtitre p { margin: 0; }

/* Titres */
.tdg-theme .tdg-section .tdg-h-heros .elementor-heading-title { font-size: clamp(54px, min(9.4vw, 13svh), 148px); font-weight: 800; line-height: .9; letter-spacing: -.02em; text-transform: uppercase; }
.tdg-theme .tdg-section .tdg-h-section .elementor-heading-title { font-size: clamp(44px, 7vw, 104px); font-weight: 600; line-height: .92; letter-spacing: -.01em; text-transform: uppercase; }
.tdg-theme .tdg-section .tdg-h-offre .elementor-heading-title { font-size: clamp(48px, 8vw, 128px); font-weight: 800; line-height: .9; letter-spacing: -.02em; text-transform: uppercase; max-width: 1000px; }

/* Boutons (widget Bouton d'Elementor) : rouge plein, ou contour */
.tdg-theme .tdg-bouton .elementor-button {
	position: relative; display: inline-flex; align-items: center; gap: 16px;
	padding: 18px 28px; border: 0; border-radius: 0; box-shadow: none;
	background: var(--tdg-accent); color: var(--tdg-blanc); fill: currentColor;
	font-family: var(--tdg-police); font-size: 14px; font-weight: 600; line-height: 1.2;
	text-transform: uppercase; letter-spacing: .12em;
	overflow: hidden; isolation: isolate; transition: color .4s;
}
.tdg-theme .tdg-bouton .elementor-button::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: var(--tdg-blanc); transform: translateY(101%); transition: transform .6s var(--tdg-ease);
}
.tdg-theme .tdg-bouton .elementor-button:hover,
.tdg-theme .tdg-bouton .elementor-button:focus-visible { color: var(--tdg-carbone); }
.tdg-theme .tdg-bouton .elementor-button:hover::before,
.tdg-theme .tdg-bouton .elementor-button:focus-visible::before { transform: translateY(0); }
.tdg-theme .tdg-bouton .elementor-button-text::after { content: '→'; display: inline-block; margin-left: 16px; transition: transform .5s var(--tdg-ease-out); }
.tdg-theme .tdg-bouton .elementor-button:hover .elementor-button-text::after { transform: translateX(8px); }
.tdg-theme .tdg-bouton--contour .elementor-button { padding: 17px 27px; border: 1px solid var(--tdg-acier); background: transparent; color: inherit; transition: background .3s, color .3s, border-color .3s; }
.tdg-theme .tdg-bouton--contour .elementor-button::before { display: none; }
.tdg-theme .tdg-bouton--contour .elementor-button:hover,
.tdg-theme .tdg-bouton--contour .elementor-button:focus-visible { background: var(--tdg-blanc); border-color: var(--tdg-blanc); color: var(--tdg-carbone); }
.tdg-theme .tdg-section .tdg-lien-fleche:hover .tdg-fleche { transform: translateX(8px); }

/* En-tête de section : titre + lien */
.tdg-theme .tdg-section .tdg-entete-section { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.tdg-theme .tdg-section .tdg-entete-section > .elementor-widget { width: auto; }

/* ---------- Héros ---------- */
.tdg-theme .tdg-heros { height: 100svh; min-height: 620px; overflow: hidden; justify-content: center; background: var(--tdg-carbone); color: var(--tdg-blanc); }
.tdg-theme .tdg-heros > .tdg-heros__fond,
.tdg-theme .tdg-heros__fond .elementor-widget-container,
.tdg-theme .tdg-heros__fond .elementor-shortcode { position: absolute; inset: 0; z-index: 0; margin: 0; width: auto; max-width: none; }
.tdg-heros__media { position: absolute; inset: -8% 0 0; }
.tdg-theme .tdg-heros__media img, .tdg-theme .tdg-heros__video { position: absolute; max-width: none; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.tdg-heros__video { z-index: 1; }
.tdg-heros__video:not([src]) { display: none; } /* pas encore chargée (mobile, mouvement réduit) : l'affiche suffit */
@media (prefers-reduced-motion: reduce) { .tdg-heros__video { display: none; } }
.tdg-heros__voile { position: absolute; inset: 0; z-index: 2; background: rgba(16, 16, 16, .45); }
/* Bouton pause de la vidéo (créé par pages.js quand la vidéo tourne). Spécificité renforcée : reset de Hello Elementor chargé après. */
.tdg-theme .tdg-heros .tdg-heros-pause { position: absolute; top: 88px; right: var(--tdg-marge); z-index: 4; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; background: rgba(16, 16, 16, .35); color: var(--tdg-blanc); cursor: pointer; }
.tdg-theme .tdg-heros .tdg-heros-pause:hover, .tdg-theme .tdg-heros .tdg-heros-pause:focus { background: var(--tdg-blanc); color: var(--tdg-carbone); border-color: var(--tdg-blanc); }
.tdg-heros-pause span { display: block; box-sizing: border-box; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.tdg-heros-pause.est-en-pause span { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.tdg-theme .tdg-heros .tdg-heros__contenu { position: relative; z-index: 3; justify-content: center; flex: 1 1 auto; width: 100%; max-width: 1100px; padding: 64px var(--tdg-marge) 120px; }
.tdg-theme .tdg-heros .tdg-heros__actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px 32px; margin-top: 40px; }
.tdg-theme .tdg-heros .tdg-heros__actions > .elementor-widget { width: auto; }
.tdg-theme .tdg-heros .tdg-heros__bas { position: absolute; z-index: 3; left: var(--tdg-marge); right: var(--tdg-marge); bottom: 32px; width: auto; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; }
.tdg-theme .tdg-heros .tdg-heros__bas > .elementor-widget { width: auto; }
.tdg-prochaine { display: grid; gap: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.tdg-prochaine__label { color: var(--tdg-cendre); }
.tdg-theme .tdg-prochaine__date { font-weight: 500; color: inherit; text-decoration: none; }
.tdg-prochaine__date:hover { text-decoration: underline; text-underline-offset: 4px; }
.tdg-prochaine__compte { font-size: 28px; font-weight: 200; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tdg-defiler { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .3em; }
.tdg-defiler i { position: relative; width: 1px; height: 56px; overflow: hidden; background: rgba(255, 255, 255, .25); }
.tdg-defiler i::after { content: ''; position: absolute; inset: 0; background: var(--tdg-blanc); animation: tdg-goutte 2s var(--tdg-ease) infinite; }
@keyframes tdg-goutte { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .tdg-defiler i::after { animation: none; } }
@media (max-width: 760px) {
	.tdg-theme .tdg-heros .tdg-heros__contenu { padding-bottom: 150px; }
	.tdg-defiler { display: none; }
	.tdg-prochaine__compte { font-size: 22px; }
}

/* ---------- Bandeau des dates ---------- */
.tdg-theme .tdg-bandeau-section { background: var(--tdg-marbre); color: var(--tdg-carbone); }
.tdg-theme .tdg-bandeau-section:not(:has(.tdg-bandeau)) { display: none; } /* aucune date à venir */
.tdg-bandeau {
	--tdg-bandeau-gap: 40px;
	display: flex; align-items: center; gap: var(--tdg-bandeau-gap);
	padding: 22px 0; overflow: hidden; white-space: nowrap;
	background: var(--tdg-marbre); border-block: 1px solid #e4e4e4;
	font-size: clamp(22px, 2.6vw, 40px); font-weight: 600; line-height: 1.2; text-transform: uppercase;
}
.tdg-bandeau b { color: var(--tdg-accent-ombre); font-weight: 400; }

/* ---------- Manifeste et chiffres ---------- */
.tdg-theme .tdg-manifeste { padding: clamp(96px, 14vw, 200px) var(--tdg-pad-x); }
.tdg-theme .tdg-manifeste .tdg-manifeste__texte { max-width: 1200px; font-size: clamp(28px, 4.2vw, 64px); font-weight: 400; line-height: 1.12; letter-spacing: -.005em; text-transform: uppercase; }
.tdg-theme .tdg-manifeste .tdg-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(64px, 9vw, 128px); border-top: 1px solid var(--tdg-carbone); }
.tdg-theme .tdg-manifeste .tdg-chiffre { gap: 8px; padding: 24px 24px 0 0; width: auto; }
.tdg-theme .tdg-manifeste .tdg-chiffre + .tdg-chiffre { padding-left: 24px; border-left: 1px solid #ddd; }
.tdg-theme .tdg-section .tdg-chiffre__nombre + .tdg-chiffre__libelle { margin-top: 8px; }
.tdg-theme .tdg-section .tdg-chiffre__valeur,
.tdg-theme .tdg-section .tdg-chiffre__nombre .elementor-heading-title { display: block;font-size: clamp(40px, 5vw, 80px); font-weight: 200; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tdg-theme .tdg-section .tdg-chiffre__libelle { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--tdg-gris); }
@media (max-width: 760px) {
	.tdg-theme .tdg-manifeste .tdg-chiffres { grid-template-columns: 1fr 1fr; }
	.tdg-theme .tdg-manifeste .tdg-chiffre { padding-bottom: 24px; }
	.tdg-theme .tdg-manifeste .tdg-chiffre:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------- Prochaines dates (widget Calendrier trackday du module) ---------- */
.tdg-theme .tdg-dates { padding: 0 var(--tdg-pad-x) clamp(96px, 12vw, 160px); }
@media (max-width: 900px) {
	.tdg-theme .tdg-section .tdg-entete-section { flex-direction: column; align-items: flex-start; }
}

/* ---------- Circuits : défilement horizontal (anim.js), cascade verticale sinon ---------- */
.tdg-theme .tdg-circuits { overflow: hidden; gap: 64px; padding: 96px var(--tdg-marge); }
.tdg-theme .tdg-circuits.tdg-horizontal-actif { padding: 0; }
.tdg-theme .tdg-circuits .tdg-piste { padding: 0 var(--tdg-marge); }
.tdg-theme .tdg-circuits .tdg-circuits__intro { width: 100%; }
.tdg-theme .tdg-circuits.tdg-horizontal-actif .tdg-circuits__intro { width: 34vw; min-width: 300px; }
.tdg-theme .tdg-section .tdg-circuits__aide { margin-top: 32px; font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--tdg-cendre); }
.tdg-theme .tdg-circuits .tdg-circuit { gap: 24px; width: 100%; }
.tdg-theme .tdg-circuits.tdg-horizontal-actif .tdg-circuit { width: 62vw; max-width: 980px; }
.tdg-theme .tdg-circuits .tdg-circuit__img { overflow: hidden; width: 100%; }
.tdg-theme .tdg-circuits .tdg-circuit__img img { height: 56vw; max-height: 70vh; }
.tdg-theme .tdg-circuits.tdg-horizontal-actif .tdg-circuit__img img { height: 58vh; max-height: none; }
.tdg-theme .tdg-circuits .tdg-circuit__txt { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 32px; align-items: end; }
.tdg-theme .tdg-circuits .tdg-circuit__txt > .elementor-widget { width: auto; }
.tdg-theme .tdg-circuits .tdg-circuit__num { grid-row: span 2; }
.tdg-theme .tdg-section .tdg-circuit__num .elementor-heading-title { font-size: 80px; font-weight: 200; line-height: .8; color: var(--tdg-graphite); }
.tdg-theme .tdg-section .tdg-circuit__nom .elementor-heading-title { font-size: clamp(28px, 3.4vw, 54px); font-weight: 600; line-height: 1; }
.tdg-theme .tdg-circuits .tdg-circuit__desc { grid-column: 2; max-width: 520px; font-size: 15px; color: var(--tdg-cendre); }
.tdg-theme .tdg-circuits .tdg-circuit__lien { grid-row: 1 / 3; grid-column: 3; }
@media (max-width: 900px) {
	.tdg-theme .tdg-circuits .tdg-circuit__txt { grid-template-columns: auto 1fr; }
	.tdg-theme .tdg-circuits .tdg-circuit__lien { grid-row: auto; grid-column: 2; }
	.tdg-theme .tdg-section .tdg-circuits__aide { display: none; }
}

/* ---------- Déroulé : 3 étapes épinglées (anim.js), à la suite sinon ---------- */
.tdg-theme .tdg-deroule {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.1fr); grid-auto-flow: row dense; align-items: center;
	gap: 48px 4vw; padding: 96px var(--tdg-pad-x) 64px; background: var(--tdg-marbre); color: var(--tdg-carbone);
}
.tdg-theme .tdg-deroule > .tdg-deroule__gauche { grid-column: 1; grid-row: 1 / span 3; align-self: start; width: auto; }
.tdg-theme .tdg-deroule > .td-anim-etape { grid-column: 2; width: auto; }
.tdg-theme .tdg-deroule > .td-anim-visuel { grid-column: 3; width: auto; overflow: hidden; }
.tdg-theme .tdg-deroule .td-anim-visuel img { height: clamp(220px, 30vh, 360px); }
.tdg-theme .tdg-deroule.tdg-etapes-actif { height: 100svh; grid-template-rows: 1fr; padding-top: 96px; }
.tdg-theme .tdg-deroule.tdg-etapes-actif > .tdg-deroule__gauche { grid-row: auto; align-self: center; }
.tdg-theme .tdg-deroule.tdg-etapes-actif .td-anim-visuel img { height: 68vh; }
.tdg-theme .tdg-deroule .tdg-pile { width: 100%; }
.tdg-deroule__compteur { display: flex; align-items: flex-start; font-size: clamp(96px, 14vw, 220px); font-weight: 200; line-height: .85; font-variant-numeric: tabular-nums; }
.tdg-deroule__total { margin-top: .3em; font-size: .22em; font-weight: 400; color: var(--tdg-gris); }
.tdg-deroule__barre { height: 2px; margin-top: 32px; background: #dcdcdc; }
.tdg-deroule__barre i { display: block; height: 100%; background: var(--tdg-carbone); transform-origin: left; }
.tdg-deroule:not(.tdg-etapes-actif) .tdg-deroule__compteur,
.tdg-deroule:not(.tdg-etapes-actif) .tdg-deroule__barre { display: none; }
/* Taille liée à la colonne du milieu : « RÉSERVEZ » ne doit jamais passer sous la photo. */
/* Un mot n'est jamais coupé (« Réservez ») : taille plafonnée pour tenir dans la colonne. */
.tdg-theme .tdg-section .tdg-etape .elementor-heading-title { margin-bottom: 24px; font-size: clamp(36px, 3.4vw, 64px); font-weight: 800; line-height: .95; overflow-wrap: normal; word-break: normal; hyphens: none; }
.tdg-theme .tdg-section .tdg-etape .elementor-widget-text-editor { max-width: 440px; font-size: 18px; color: #313131; }
@media (max-width: 900px) {
	.tdg-theme .tdg-deroule { grid-template-columns: 1fr; gap: 40px; padding: 96px var(--tdg-marge); }
	.tdg-theme .tdg-deroule > .tdg-deroule__gauche,
	.tdg-theme .tdg-deroule > .td-anim-etape { grid-column: 1; grid-row: auto; }
	.tdg-theme .tdg-deroule > .td-anim-visuel { display: none; }
}

/* ---------- Stages et location ---------- */
.tdg-theme .tdg-stages { padding: clamp(96px, 12vw, 160px) var(--tdg-pad-x); }
.tdg-theme .tdg-stages .tdg-voitures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 24px; }
.tdg-theme .tdg-stages .tdg-voiture { display: flex; flex-direction: column; gap: 10px; width: auto; color: var(--tdg-carbone); }
.tdg-theme .tdg-stages .tdg-voiture:nth-child(3n+2) { margin-top: 80px; }
.tdg-theme .tdg-stages .tdg-voiture__img { margin-bottom: 8px; overflow: hidden; }
.tdg-theme .tdg-stages .tdg-voiture__img img { aspect-ratio: 4 / 5; height: auto; transform: scale(1.08); clip-path: inset(0 0 0 0); transition: transform 1.2s var(--tdg-ease-out), filter .6s, clip-path .7s var(--tdg-ease); }
@media (hover: hover) and (pointer: fine) {
	.tdg-theme .tdg-stages .tdg-voiture__img img { filter: grayscale(.85); }
}
.tdg-theme .tdg-stages .tdg-voiture:hover .tdg-voiture__img img,
.tdg-theme .tdg-stages .tdg-voiture:focus-visible .tdg-voiture__img img { filter: grayscale(0); transform: scale(1.18); clip-path: inset(3% 3% 3% 3%); }
.tdg-theme .tdg-section .tdg-voiture__type { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: var(--tdg-gris); }
.tdg-theme .tdg-section .tdg-voiture__nom .elementor-heading-title { font-size: clamp(20px, 2vw, 28px); font-weight: 500; line-height: 1.1; }
@media (max-width: 900px) {
	.tdg-theme .tdg-stages .tdg-voitures { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
	.tdg-theme .tdg-stages .tdg-voiture:nth-child(3n+2) { margin-top: 0; }
	.tdg-theme .tdg-stages .tdg-voiture:nth-child(even) { margin-top: 48px; }
}

/* ---------- Offre du doublé ---------- */
.tdg-theme .tdg-offre { min-height: 110svh; justify-content: center; align-items: flex-start; padding: 96px var(--tdg-pad-x); overflow: hidden; background-color: var(--tdg-carbone); }
.tdg-theme .tdg-offre::before { content: ''; position: absolute; inset: 0; background: rgba(16, 16, 16, .55); }
.tdg-theme .tdg-offre > .elementor-widget { position: relative; z-index: 1; width: auto; }
.tdg-theme .tdg-section.tdg-offre > .tdg-offre__texte.elementor-widget { max-width: 520px; margin: 32px 0 40px; font-size: 18px; text-transform: uppercase; letter-spacing: .1em; color: #ddd; }

/* ---------- Galerie ---------- */
.tdg-theme .tdg-galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; height: 140svh; padding: 0 16px; overflow: hidden; background: var(--tdg-noir); }
.tdg-theme .tdg-galerie .tdg-galerie__col { gap: 16px; justify-content: flex-start; width: auto; }
.tdg-theme .tdg-galerie .tdg-galerie__col:nth-child(2) { margin-top: -30vh; }
.tdg-theme .tdg-galerie .tdg-galerie__col img { height: 52svh; filter: brightness(.38) grayscale(.6); }
.tdg-theme .tdg-section.tdg-galerie > .tdg-galerie__titre.elementor-widget { position: absolute; inset: 0; display: grid; place-items: center; width: auto; pointer-events: none; text-align: center; color: var(--tdg-blanc); }
.tdg-theme .tdg-section .tdg-galerie__titre .elementor-heading-title { font-size: clamp(48px, 10vw, 168px); font-weight: 800; line-height: .9; letter-spacing: -.03em; color: var(--tdg-blanc); }
@media (max-width: 760px) {
	.tdg-theme .tdg-galerie { grid-template-columns: 1fr 1fr; height: 110svh; }
	.tdg-theme .tdg-galerie .tdg-galerie__col:nth-child(3) { display: none; }
}

/* =========================================================================
   Pages de contenu (gabarits circuit, deroule, stages, contact)
   ========================================================================= */

/* ---------- Héros photo des pages ---------- */
.tdg-theme .tdg-heros--page { height: auto; min-height: max(560px, 82svh); justify-content: flex-end; }
.tdg-theme .tdg-heros--court { min-height: max(480px, 64svh); }
.tdg-theme .tdg-heros > .tdg-heros__photo { overflow: hidden; }
.tdg-theme .tdg-heros__photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tdg-theme .tdg-heros--page::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(16, 16, 16, .55) 0%, rgba(16, 16, 16, .35) 45%, rgba(16, 16, 16, .75) 100%); }
.tdg-theme .tdg-heros--page .tdg-heros__contenu { flex: 0 0 auto; max-width: 1200px; padding: 140px var(--tdg-marge) clamp(56px, 8vw, 96px); }
.tdg-theme .tdg-section .tdg-h-page .elementor-heading-title { font-size: clamp(36px, min(8.6vw, 12svh), 128px); overflow-wrap: break-word; }
.tdg-theme .tdg-section .tdg-heros__texte { max-width: 620px; margin-top: 28px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; color: #e6e6e6; }
.tdg-theme .tdg-section .tdg-heros__texte .tdg-texte p + p { margin-top: .8em; }
.tdg-theme .tdg-heros--page .tdg-heros__actions { margin-top: 36px; }
.tdg-sommaire { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.tdg-theme .tdg-section .tdg-sommaire a { color: var(--tdg-blanc); }
.tdg-sommaire a:hover .tdg-fleche, .tdg-sommaire a:focus-visible .tdg-fleche { transform: translateX(8px); }

/* Titre de section plus court (colonnes) */
.tdg-theme .tdg-section .tdg-h-section--m .elementor-heading-title { font-size: clamp(28px, 3.2vw, 56px); overflow-wrap: break-word; }
/* Ancres : la cible n'est pas cachée sous la barre fixe */
.tdg-theme .tdg-section[id] { scroll-margin-top: 64px; }

/* ---------- Calendrier d'un circuit ---------- */
.tdg-theme .tdg-dates--page { padding-top: clamp(80px, 10vw, 140px); }

/* ---------- Infos : titre collant à gauche, contenu repris à droite ---------- */
.tdg-theme .tdg-infos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px 6vw; align-items: start; padding: clamp(80px, 10vw, 140px) var(--tdg-pad-x); }
.tdg-theme .tdg-infos--marbre { background: var(--tdg-marbre); }
.tdg-theme .tdg-infos > .tdg-infos__titre { position: sticky; top: 96px; width: auto; }
.tdg-theme .tdg-infos > .tdg-infos__contenu { width: auto; min-width: 0; gap: 24px; }
.tdg-theme .tdg-section .tdg-texte > :last-child { margin-bottom: 0; }
@media (max-width: 900px) {
	.tdg-theme .tdg-infos { grid-template-columns: minmax(0, 1fr); }
	.tdg-theme .tdg-infos > .tdg-infos__titre { position: static; }
}

/* Texte repris des anciennes pages : lecture confortable, sans les styles d'origine */
.tdg-theme .tdg-section .tdg-texte { max-width: 760px; font-size: 17px; font-weight: 300; line-height: 1.65; overflow-wrap: break-word; }
.tdg-theme .tdg-section .tdg-texte p,
.tdg-theme .tdg-section .tdg-texte ul,
.tdg-theme .tdg-section .tdg-texte ol { margin: 0 0 1em; }
.tdg-theme .tdg-section .tdg-texte ul, .tdg-theme .tdg-section .tdg-texte ol { padding-left: 1.2em; }
.tdg-theme .tdg-section .tdg-texte li { margin-bottom: .35em; }
.tdg-theme .tdg-section .tdg-texte li::marker { color: var(--tdg-gris); }
.tdg-theme .tdg-section .tdg-texte h3 { margin: 1.8em 0 .6em; font-size: clamp(22px, 2vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: 0; }
.tdg-theme .tdg-section .tdg-texte h3:first-child { margin-top: 0; }
.tdg-theme .tdg-section .tdg-texte h4 { margin: 1.4em 0 .5em; font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.tdg-theme .tdg-section .tdg-texte h5 { margin: 1.2em 0 .3em; font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--tdg-gris); }
.tdg-theme .tdg-section .tdg-texte strong, .tdg-theme .tdg-section .tdg-texte b { font-weight: 600; }
.tdg-theme .tdg-section .tdg-texte a:not(.tdg-lien-fleche) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tdg-theme .tdg-section .tdg-texte img { display: inline-block; max-width: 100%; height: auto; }
.tdg-theme .tdg-section .tdg-texte .tdg-lien-fleche { margin-top: .4em; }
.tdg-reprise__images { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.tdg-theme .tdg-reprise__images img { display: block; width: 100%; height: 100%; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tdg-marbre); }
.tdg-theme .tdg-reprise__images:has(> img:only-child) img { aspect-ratio: auto; object-fit: contain; max-height: 70vh; width: auto; }
.tdg-theme .tdg-section .tdg-reprise__video { width: 100%; max-width: 900px; }
.tdg-reprise__cadre, .tdg-reprise__carte { position: relative; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; margin: 0 0 1em; }
.tdg-reprise__cadre iframe, .tdg-reprise__carte iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Tableaux : enveloppés (TDG_Pages::envelopper_tableaux) dans un bloc défilant au clavier ; le tableau garde sa sémantique. */
.tdg-theme .tdg-section .tdg-texte .tdg-table-defilante { max-width: 100%; margin: 0 0 1em; overflow-x: auto; }
.tdg-theme .tdg-section .tdg-texte table { min-width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; }
.tdg-theme .tdg-section .tdg-texte th, .tdg-theme .tdg-section .tdg-texte td { padding: 8px 12px; border-bottom: 1px solid #ddd; text-align: left; vertical-align: top; }
.tdg-theme .tdg-section .tdg-texte figure { margin: 0 0 1em; }

/* ---------- Organisateurs (catégories WooCommerce d'origine) ---------- */
.tdg-theme .tdg-organisateurs .woocommerce ul.products { margin: 0; }
.tdg-theme .tdg-organisateurs .woocommerce ul.products li.product .woocommerce-loop-category__title { font-family: var(--tdg-police); font-size: 18px; font-weight: 600; text-transform: uppercase; }

/* ---------- Appel final (sombre) ---------- */
/* Variables des conteneurs Elementor (--flex-direction…) : c'est elles qu'Elementor applique. */
.tdg-theme .tdg-section.tdg-appel.e-con { --flex-direction: row; --flex-wrap: wrap; --justify-content: space-between; --align-items: flex-end; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; padding: clamp(80px, 10vw, 140px) var(--tdg-pad-x); }
@media (max-width: 760px) {
	.tdg-theme .tdg-section.tdg-appel.e-con { --flex-direction: column; --align-items: flex-start; flex-direction: column; align-items: flex-start; }
}
.tdg-theme .tdg-appel > .e-con { width: auto; }
.tdg-theme .tdg-appel .tdg-appel__contact { gap: 28px; align-items: flex-start; }
.tdg-theme .tdg-appel .tdg-coordonnees { color: var(--tdg-blanc); }

/* ---------- Coordonnées ---------- */
.tdg-coordonnees { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.tdg-coordonnees li { display: grid; gap: 4px; }
.tdg-coordonnees__label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: var(--tdg-gris); }
.tdg-theme .tdg-section .tdg-coordonnees a { font-size: clamp(18px, 1.6vw, 24px); font-weight: 400; overflow-wrap: anywhere; }

/* ---------- Stages : fiches à description, second groupe sur fond marbre ---------- */
.tdg-theme .tdg-stages--marbre { background: var(--tdg-marbre); }
.tdg-theme .tdg-section .tdg-voiture__desc { font-size: 15px; line-height: 1.5; color: var(--tdg-graphite); }
@media (max-width: 600px) {
	/* Fiches avec description : une colonne sur téléphone */
	.tdg-theme .tdg-stages .tdg-voitures:has(.tdg-voiture__desc) { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.tdg-theme .tdg-stages .tdg-voitures:has(.tdg-voiture__desc) .tdg-voiture { margin-top: 0; }
	.tdg-theme .tdg-stages .tdg-voitures:has(.tdg-voiture__desc) .tdg-voiture__img img { aspect-ratio: 4 / 3; }
}

/* ---------- Contact : tuiles d'action, formulaire, questions fréquentes ---------- */
.tdg-theme .tdg-contact-intro { padding: clamp(80px, 10vw, 140px) var(--tdg-pad-x); background: var(--tdg-carbone-profond); }
.tdg-theme .tdg-contact-intro .elementor-widget-heading { margin-bottom: clamp(40px, 5vw, 72px); }
.tdg-contact-rapide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--tdg-graphite); }
.tdg-contact-rapide__tuile + .tdg-contact-rapide__tuile { border-left: 1px solid var(--tdg-graphite); }
.tdg-contact-rapide a { position: relative; display: grid; align-content: start; gap: 10px; height: 100%; min-height: 260px; padding: 32px 28px 72px; overflow: hidden; isolation: isolate; color: var(--tdg-blanc); text-decoration: none; transition: color .5s var(--tdg-ease); }
.tdg-contact-rapide a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tdg-accent); transform: translateY(101%); transition: transform .6s var(--tdg-ease); }
.tdg-contact-rapide a:hover::before, .tdg-contact-rapide a:focus-visible::before { transform: none; }
.tdg-contact-rapide__num { font-size: 13px; letter-spacing: .14em; color: var(--tdg-cendre); transition: color .5s; }
.tdg-contact-rapide__action { margin-top: 24px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: var(--tdg-cendre); transition: color .5s; }
.tdg-contact-rapide__valeur { font-size: clamp(20px, 1.7vw, 26px); font-weight: 600; line-height: 1.1; }
.tdg-contact-rapide__tuile--tel .tdg-contact-rapide__valeur { font-size: clamp(20px, 1.6vw, 24px); white-space: nowrap; }
.tdg-contact-rapide__tuile--email .tdg-contact-rapide__valeur { font-size: clamp(16px, 1.15vw, 20px); overflow-wrap: anywhere; }
.tdg-contact-rapide__aide { font-size: 14px; color: #cfcfcf; transition: color .5s; }
.tdg-contact-rapide a:hover .tdg-contact-rapide__num, .tdg-contact-rapide a:hover .tdg-contact-rapide__action, .tdg-contact-rapide a:hover .tdg-contact-rapide__aide,
.tdg-contact-rapide a:focus-visible .tdg-contact-rapide__num, .tdg-contact-rapide a:focus-visible .tdg-contact-rapide__action, .tdg-contact-rapide a:focus-visible .tdg-contact-rapide__aide { color: var(--tdg-blanc); }
.tdg-contact-rapide__fleche { position: absolute; left: 28px; bottom: 28px; font-size: 22px; }
.tdg-contact-rapide a:hover .tdg-contact-rapide__fleche, .tdg-contact-rapide a:focus-visible .tdg-contact-rapide__fleche { transform: translateX(10px); }
.tdg-ouvert { display: inline-flex; align-items: center; gap: 10px; }
.tdg-ouvert::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tdg-cendre); }
.tdg-ouvert.est-ouvert::before { background: #3ecf6e; box-shadow: 0 0 0 0 rgba(62, 207, 110, .6); animation: tdg-pouls 2s infinite; }
@keyframes tdg-pouls { 70% { box-shadow: 0 0 0 10px rgba(62, 207, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 207, 110, 0); } }
@media (max-width: 1100px) {
	.tdg-contact-rapide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tdg-contact-rapide__tuile:nth-child(3) { border-left: 0; }
	.tdg-contact-rapide__tuile:nth-child(n+3) { border-top: 1px solid var(--tdg-graphite); }
}
@media (max-width: 600px) {
	.tdg-contact-rapide { grid-template-columns: minmax(0, 1fr); }
	.tdg-contact-rapide__tuile + .tdg-contact-rapide__tuile { border-left: 0; border-top: 1px solid var(--tdg-graphite); }
	.tdg-contact-rapide a { min-height: 0; padding: 24px 0 64px; }
	.tdg-contact-rapide__fleche { left: 0; bottom: 24px; }
}

.tdg-theme .tdg-contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px 6vw; align-items: start; padding: clamp(80px, 10vw, 140px) var(--tdg-pad-x); background: var(--tdg-marbre); }
.tdg-theme .tdg-contact > .e-con { width: auto; min-width: 0; }
.tdg-theme .tdg-contact--seul { grid-template-columns: minmax(0, 880px); }
.tdg-theme .tdg-contact .tdg-contact__formulaire > .elementor-widget-heading { margin-bottom: 40px; }
.tdg-theme .tdg-contact .tdg-contact__faq { position: sticky; top: 96px; gap: 24px; padding-top: 8px; }
@media (max-width: 900px) {
	.tdg-theme .tdg-contact { grid-template-columns: minmax(0, 1fr); }
	.tdg-theme .tdg-contact .tdg-contact__faq { position: static; }
}
/* Champs des formulaires repris (Elementor, WPForms) : soulignés, comme le configurateur des fiches */
.tdg-theme .tdg-contact .elementor-form-fields-wrapper { row-gap: 28px; }
.tdg-theme .tdg-contact input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.tdg-theme .tdg-contact textarea,
.tdg-theme .tdg-contact select { width: 100%; max-width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid #bdbdbd; border-radius: 0; background: transparent; color: var(--tdg-carbone); font-family: var(--tdg-police); font-size: 18px; font-weight: 400; box-shadow: none; transition: border-color .3s, box-shadow .3s; }
.tdg-theme .tdg-contact textarea { resize: vertical; }
/* Elementor remet son fond blanc par défaut (réglage retiré à l'import) : la charte l'emporte. */
.tdg-theme .tdg-section.tdg-contact .elementor-element .elementor-field-group .elementor-field:not(.elementor-select-wrapper) { background-color: transparent; border-width: 0 0 1px; border-color: #bdbdbd; border-radius: 0; }
.tdg-theme .tdg-contact input:focus, .tdg-theme .tdg-contact textarea:focus { outline: 0; border-bottom-color: var(--tdg-carbone); box-shadow: 0 1px 0 var(--tdg-carbone); }
.tdg-theme .tdg-contact input:focus-visible, .tdg-theme .tdg-contact textarea:focus-visible { outline: 2px solid var(--tdg-carbone); outline-offset: 2px; }
.tdg-theme .tdg-contact label { font-family: var(--tdg-police); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .18em; color: var(--tdg-graphite); }
/* « Votre demande » : boutons radio en pastilles */
.tdg-theme .tdg-contact .elementor-field-type-radio .elementor-field-subgroup { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tdg-theme .tdg-contact .elementor-field-type-radio .elementor-field-option { position: relative; margin: 0; }
.tdg-theme .tdg-contact .elementor-field-type-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tdg-theme .tdg-contact .elementor-field-type-radio .elementor-field-option label { display: block; margin: 0; padding: 12px 18px; border: 1px solid #cfcfcf; background: var(--tdg-blanc); font-size: 14px; letter-spacing: .08em; color: var(--tdg-carbone); cursor: pointer; transition: border-color .3s, background .3s, color .3s; }
.tdg-theme .tdg-contact .elementor-field-type-radio .elementor-field-option label:hover { border-color: var(--tdg-carbone); }
.tdg-theme .tdg-contact .elementor-field-type-radio input:checked + label { background: var(--tdg-carbone); border-color: var(--tdg-carbone); color: var(--tdg-blanc); }
.tdg-theme .tdg-contact .elementor-field-type-radio input:focus-visible + label { outline: 2px solid var(--tdg-accent); outline-offset: 3px; }
.tdg-theme .tdg-contact button[type="submit"], .tdg-theme .tdg-contact .elementor-button, .tdg-theme .tdg-contact .wpforms-submit {
	padding: 18px 28px; border: 0; border-radius: 0; background: var(--tdg-carbone); color: var(--tdg-blanc);
	font-family: var(--tdg-police); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; cursor: pointer; transition: background .3s;
}
/* Carbone au repos : le rouge de l'écran reste aux tuiles et à la newsletter du pied */
.tdg-theme .tdg-contact button[type="submit"]:hover, .tdg-theme .tdg-contact .elementor-button:hover, .tdg-theme .tdg-contact .wpforms-submit:hover,
.tdg-theme .tdg-contact button[type="submit"]:focus-visible { background: var(--tdg-accent); }
.tdg-theme .tdg-contact .wpforms-container { margin: 0; }
.tdg-theme .tdg-contact .wpforms-field { padding: 0 0 20px; }
/* Questions fréquentes */
.tdg-faq { border-top: 1px solid var(--tdg-carbone); }
.tdg-faq__item { border-bottom: 1px solid #d9d9d9; }
.tdg-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.tdg-faq__item summary::-webkit-details-marker { display: none; }
.tdg-faq__item summary span { flex: none; font-size: 26px; font-weight: 200; line-height: 1; transition: transform .4s var(--tdg-ease); }
.tdg-faq__item[open] summary span { transform: rotate(45deg); }
.tdg-faq__reponse { padding: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--tdg-graphite); }
.tdg-faq__reponse p { margin: 0; }

/* Page 404 (404.php) : héros « Hors piste. », chiffre géant en filigrane, puis dates et pages utiles */
/* Le thème parent limite .site-main à 1140 px hors Elementor : la page d'erreur prend toute la largeur. */
body main.site-main.tdg-page-erreur { width: 100%; max-width: none; margin: 0; padding: 0; }
.tdg-theme .tdg-section.tdg-erreur, .tdg-erreur { position: relative; display: grid; align-items: end; min-height: 88svh; padding: 140px var(--tdg-marge) clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; background: var(--tdg-carbone-profond); }
.tdg-erreur__fond { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.tdg-erreur::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 18, 18, .95) 0%, rgba(18, 18, 18, .7) 45%, rgba(18, 18, 18, .2) 100%), linear-gradient(0deg, rgba(18, 18, 18, .8), rgba(18, 18, 18, 0) 40%); }
.tdg-erreur__code { position: absolute; right: -2vw; bottom: -6vw; z-index: -1; font-size: clamp(180px, 34vw, 520px); font-weight: 800; line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px rgba(220, 0, 0, .75); pointer-events: none; }
.tdg-erreur__contenu { max-width: 760px; }
.tdg-erreur__titre { margin: 0 0 24px; font-size: clamp(64px, 11vw, 168px); font-weight: 800; line-height: .88; letter-spacing: -.02em; }
.tdg-erreur__texte { max-width: 520px; margin: 0 0 40px; font-size: 19px; line-height: 1.5; color: #d4d4d4; }
.tdg-erreur__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
/* Espacements renforcés (le thème remet à zéro les marges des titres et paragraphes des sections). */
.tdg-theme .tdg-section.tdg-erreur .tdg-erreur__titre { margin: 0 0 clamp(28px, 3vw, 40px); }
.tdg-theme .tdg-section.tdg-erreur .tdg-erreur__texte { margin: 0 0 clamp(36px, 4vw, 56px); line-height: 1.6; }
.tdg-erreur__actions .tdg-btn--contour { padding: 18px 26px; border-color: rgba(255, 255, 255, .6); color: var(--tdg-blanc); }
.tdg-theme .tdg-section.tdg-erreur-suite, .tdg-erreur-suite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 6vw; padding: clamp(64px, 8vw, 120px) var(--tdg-marge); }
.tdg-erreur-dates, .tdg-erreur-liens { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--tdg-carbone); }
.tdg-erreur-dates a, .tdg-erreur-liens a { position: relative; isolation: isolate; display: flex; align-items: center; gap: 20px; padding: 20px 12px; border-bottom: 1px solid #ddd; color: var(--tdg-carbone); text-decoration: none; transition: color .4s, padding .5s var(--tdg-ease-out); }
.tdg-erreur-dates a::before, .tdg-erreur-liens a::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tdg-accent); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--tdg-ease); }
.tdg-theme .tdg-erreur-suite a:hover, .tdg-theme .tdg-erreur-suite a:focus-visible { color: var(--tdg-blanc); padding-left: 24px; }
.tdg-erreur-dates a:hover::before, .tdg-erreur-liens a:hover::before, .tdg-erreur-dates a:focus-visible::before, .tdg-erreur-liens a:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.tdg-erreur-dates b { min-width: 64px; font-size: 44px; font-weight: 600; line-height: 1; color: var(--tdg-accent); transition: color .4s; }
.tdg-erreur-dates a:hover b, .tdg-erreur-dates a:focus-visible b { color: var(--tdg-blanc); }
.tdg-erreur-dates span:not(.tdg-fleche) { display: grid; gap: 4px; flex: 1; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.tdg-erreur-dates strong { font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.tdg-erreur-liens a { font-size: clamp(20px, 2vw, 28px); font-weight: 600; text-transform: uppercase; }
.tdg-erreur-liens small { min-width: 40px; font-size: 13px; font-weight: 400; letter-spacing: .14em; color: var(--tdg-accent); transition: color .4s; }
.tdg-erreur-liens a:hover small, .tdg-erreur-liens a:focus-visible small { color: var(--tdg-blanc); }
.tdg-erreur-dates .tdg-fleche, .tdg-erreur-liens .tdg-fleche { margin-left: auto; }
@media (max-width: 760px) {
	.tdg-theme .tdg-section.tdg-erreur { min-height: 80svh; padding-top: 120px; }
	.tdg-theme .tdg-section.tdg-erreur-suite { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .tdg-erreur-suite a, .tdg-erreur-suite a::before { transition: none; } }

/* Circuits ([tdg_circuits]) : lignes de l'agenda (couleur du circuit, remplissage rouge, photo entière au survol) */
.tdg-circuits { border-top: 1px solid var(--tdg-carbone); }
.tdg-circuits__ligne { --tdg-circuit: var(--tdg-accent); position: relative; isolation: isolate; display: grid; grid-template-columns: 90px minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, .8fr) auto; gap: 32px; align-items: center; padding: 36px 16px; border-bottom: 1px solid #ddd; color: var(--tdg-carbone); text-decoration: none; transition: color .4s, padding .5s cubic-bezier(.16, 1, .3, 1); }
.tdg-circuits__ligne[data-circuit="mirecourt"] { --tdg-circuit: #1f8a4c; }
.tdg-circuits__ligne[data-circuit="le-mans-bugatti"] { --tdg-circuit: #1d5fbf; }
.tdg-circuits__ligne[data-circuit="bresse"] { --tdg-circuit: #f2a900; }
.tdg-circuits__ligne::after { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; background: var(--tdg-circuit); transition: opacity .3s; }
.tdg-circuits__ligne::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--tdg-accent) 0%, var(--tdg-accent) 55%, #8f0000 100%); transform: scaleY(0); transform-origin: bottom; transition: transform .5s cubic-bezier(.76, 0, .24, 1); }
.tdg-circuits__ligne:hover, .tdg-circuits__ligne:focus-visible { color: var(--tdg-blanc); padding-left: 32px; }
.tdg-circuits__ligne:hover::before, .tdg-circuits__ligne:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.tdg-circuits__ligne:hover::after, .tdg-circuits__ligne:focus-visible::after { opacity: 0; }
.tdg-circuits__num { font-size: 56px; font-weight: 200; line-height: 1; color: var(--tdg-circuit); font-variant-numeric: tabular-nums; transition: color .4s; }
.tdg-circuits__nom strong { display: block; font-size: clamp(26px, 2.6vw, 44px); font-weight: 700; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.tdg-circuits__nom small, .tdg-circuits__dates { display: block; margin-top: 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--tdg-gris); transition: color .4s; }
.tdg-circuits__desc { font-size: 16px; line-height: 1.5; color: var(--tdg-graphite); transition: color .4s; }
.tdg-circuits__dates b { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 600; letter-spacing: .04em; color: var(--tdg-carbone); transition: color .4s; }
.tdg-circuits__action { display: inline-flex; gap: 12px; padding: 14px 22px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; white-space: nowrap; transition: background .4s, color .4s; }
.tdg-circuits__ligne:hover .tdg-circuits__num, .tdg-circuits__ligne:hover .tdg-circuits__dates b,
.tdg-circuits__ligne:focus-visible .tdg-circuits__num, .tdg-circuits__ligne:focus-visible .tdg-circuits__dates b { color: var(--tdg-blanc); }
.tdg-circuits__ligne:hover .tdg-circuits__nom small, .tdg-circuits__ligne:hover .tdg-circuits__desc, .tdg-circuits__ligne:hover .tdg-circuits__dates,
.tdg-circuits__ligne:focus-visible .tdg-circuits__nom small, .tdg-circuits__ligne:focus-visible .tdg-circuits__desc, .tdg-circuits__ligne:focus-visible .tdg-circuits__dates { color: rgba(255, 255, 255, .8); }
.tdg-circuits__ligne:hover .tdg-circuits__action, .tdg-circuits__ligne:focus-visible .tdg-circuits__action { background: var(--tdg-blanc); color: var(--tdg-accent); }
.tdg-circuits__apercu { position: fixed; top: 0; left: 0; z-index: 30; width: 360px; pointer-events: none; opacity: 0; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform: translate(-50%, -50%) scale(.85) rotate(-2deg); transition: opacity .35s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.tdg-circuits__apercu.est-visible { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
.tdg-circuits__apercu img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
@media (max-width: 1024px) {
	.tdg-circuits__ligne { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px 20px; }
	.tdg-circuits__desc, .tdg-circuits__dates { grid-column: 2 / -1; }
	.tdg-circuits__action { grid-column: 3; grid-row: 1; }
	.tdg-circuits__num { font-size: 40px; }
}
@media (max-width: 640px) {
	.tdg-circuits__ligne { grid-template-columns: 48px minmax(0, 1fr); padding: 28px 8px 28px 16px; }
	.tdg-circuits__nom strong { white-space: normal; }
	.tdg-circuits__ligne:hover { padding-left: 16px; }
	.tdg-circuits__action { grid-column: 1 / -1; grid-row: auto; justify-content: center; background: var(--tdg-accent); color: var(--tdg-blanc); }
	.tdg-circuits__apercu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tdg-theme .tdg-bouton .elementor-button, .tdg-theme .tdg-bouton .elementor-button::before,
	.tdg-theme .tdg-stages .tdg-voiture__img img { transition: none; }
	.tdg-circuits__ligne, .tdg-circuits__ligne::before, .tdg-circuits__apercu { transition: none; }
}
