/* ==========================================================
   PORSCHE GOLF CUP BELGIUM - feuille de style (v2)
   Alignee sur le Porsche Design System v4 (couleurs, typo, arrondis, boutons, champs)
   Mobile d'abord, puis tablette (768px) et desktop (1100px)
   ========================================================== */


/* ---------- POLICE : Porsche Next officielle (serveur Porsche) ---------- */

@font-face { font-family: 'Porsche Next'; font-weight: 400; font-display: swap; src: url(../fonts/porsche-next-regular.woff2) format('woff2'); }
@font-face { font-family: 'Porsche Next'; font-weight: 600; font-display: swap; src: url(../fonts/porsche-next-semi-bold.woff2) format('woff2'); }
@font-face { font-family: 'Porsche Next'; font-weight: 700; font-display: swap; src: url(../fonts/porsche-next-bold.woff2) format('woff2'); }


/* ---------- VALEURS (tokens du design system) ---------- */

:root {
	/* couleurs */
	--pgc-black: #010205;               /* primary */
	--pgc-white: #ffffff;               /* canvas */
	--pgc-surface: #f1f1f4;             /* surface */
	--pgc-frosted: #afafb626;           /* fond des champs et boutons secondaires */
	--pgc-frosted-strong: #6465723c;
	--pgc-line: #4f505953;              /* contrast-lower */
	--pgc-text-2: #11111399;            /* contrast-medium */
	--pgc-text-3: #24242880;            /* contrast-low */
	--pgc-focus: #1a44ea;
	--pgc-error: #ba171f;
	--pgc-green: #00B84B;               /* vert Porsche Golf Cup : CTA de l'evenement */
	--pgc-green-dark: #009a3f;

	/* arrondis */
	--pgc-radius-sm: 4px;
	--pgc-radius-md: 8px;
	--pgc-radius-lg: 12px;
	--pgc-radius-xl: 16px;
	--pgc-radius-2xl: 24px;

	/* espacements fluides */
	--pgc-space-md: clamp(16px, 1.25vw + 12px, 36px);
	--pgc-space-lg: clamp(32px, 2.75vw + 23px, 76px);
	--pgc-space-xl: clamp(48px, 3vw + 38px, 96px);

	/* tailles de texte fluides */
	--pgc-text-md: clamp(1.13rem, .21vw + 1.08rem, 1.33rem);
	--pgc-text-lg: clamp(1.27rem, .51vw + 1.16rem, 1.78rem);
	--pgc-text-xl: clamp(1.42rem, .94vw + 1.23rem, 2.37rem);
	--pgc-text-2xl: clamp(1.6rem, 1.56vw + 1.29rem, 3.16rem);
	--pgc-text-3xl: clamp(1.8rem, 2.41vw + 1.32rem, 4.21rem);

	--pgc-shadow: 0 4px 16px #00000029;
	--pgc-ease: cubic-bezier(.25, .1, .25, 1);
	--pgc-header-h: 72px;
}


/* ---------- BASE ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: 'Porsche Next', 'Arial Narrow', Arial, sans-serif;
	font-size: 16px;
	line-height: calc(6px + 2.125ex);
	color: var(--pgc-black);
	background: var(--pgc-white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; }

p { margin: 0; }

:focus-visible { outline: 2px solid var(--pgc-focus); outline-offset: 2px; }

.the_container {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 var(--pgc-space-md);
}

.pgc_green { color: var(--pgc-green); font-weight: 600; }

.pgc_section_title {
	font-size: var(--pgc-text-xl);
	text-align: center;
	margin-bottom: var(--pgc-space-md);
}


/* ---------- BOUTONS ---------- */

.pgc_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 56px;
	padding: 16px 28px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	border: 0;
	border-radius: var(--pgc-radius-lg);
	cursor: pointer;
	transition: background-color .25s var(--pgc-ease), color .25s var(--pgc-ease);
}

/* CTA de l'evenement */
.pgc_btn_green { background: var(--pgc-green); color: var(--pgc-white); }
.pgc_btn_green:hover { background: var(--pgc-green-dark); }

/* bouton principal Porsche */
.pgc_btn_black { background: var(--pgc-black); color: var(--pgc-white); }
.pgc_btn_black:hover { background: #2a2a2e; }

/* bouton secondaire (givre) */
.pgc_btn_frosted, .pgc_btn_outline { background: var(--pgc-frosted); color: inherit; backdrop-filter: blur(32px); }
.pgc_btn_frosted:hover, .pgc_btn_outline:hover { background: var(--pgc-frosted-strong); }

.pgc_btn_compact { min-height: 40px; padding: 8px 18px; }

.pgc_link_green {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pgc-black);
	text-decoration: underline;
	text-underline-offset: 4px;
}
.pgc_link_green:hover { color: var(--pgc-green-dark); }


/* ---------- HEADER ---------- */

.pgc_header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--pgc-white);
}

/* pages avec photo en haut : header transparent par-dessus */
.pgc_has_hero .pgc_header {
	position: absolute;
	left: 0;
	right: 0;
	background: linear-gradient(180deg, rgba(1,2,5,.55) 0%, rgba(1,2,5,0) 100%);
	color: var(--pgc-white);
}

.pgc_header_inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: var(--pgc-header-h);
	gap: 16px;
}

.pgc_burger {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px;
	font-family: inherit;
	font-size: 16px;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}
.pgc_burger_label { display: none; }

.pgc_header_logo { display: block; }
.pgc_header_crest { height: 40px; width: auto; }
.pgc_header_wordmark { display: none; width: 190px; height: auto; }

.pgc_header_right { justify-self: end; display: flex; align-items: center; gap: 16px; }

.pgc_menu_lang { display: none; gap: 12px; font-size: 14px; }
.pgc_menu_lang a { opacity: .6; }
.pgc_menu_lang a.active { opacity: 1; font-weight: 600; }


/* menu : panneau lateral */
.pgc_menu {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 200;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	padding: 16px var(--pgc-space-md) 32px;
	color: var(--pgc-black);
	background: var(--pgc-white);
	transform: translateX(-100%);
	transition: transform .4s var(--pgc-ease);
	overflow-y: auto;
}

.pgc_menu_head { display: flex; align-items: center; justify-content: space-between; height: 56px; margin-bottom: 24px; }
.pgc_menu_logo { width: 160px; }
.pgc_menu_close { padding: 4px; color: var(--pgc-black); background: none; border: 0; cursor: pointer; }

.pgc_menu > a:not(.pgc_btn) { padding: 10px 0; font-size: var(--pgc-text-lg); }
.pgc_menu > a:not(.pgc_btn):hover { color: var(--pgc-text-2); }
.pgc_menu > a.active { font-weight: 600; }
.pgc_menu .pgc_btn { margin-top: auto; }
.pgc_menu .pgc_menu_lang { display: flex; margin-top: 24px; font-size: 16px; }
.pgc_menu .pgc_menu_lang + .pgc_btn { margin-top: auto; }

.pgc_backdrop {
	position: fixed;
	inset: 0;
	z-index: 150;
	background: rgba(36,36,40,.5);
	backdrop-filter: blur(8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s var(--pgc-ease), visibility .4s;
}

.menu_open { overflow: hidden; }
.menu_open .pgc_menu { transform: translateX(0); }
.menu_open .pgc_backdrop { opacity: 1; visibility: visible; }


/* ---------- HERO (home) ---------- */

.pgc_hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(520px, 85vh, 1000px);
	padding: calc(var(--pgc-header-h) + 32px) 0 calc(var(--pgc-space-xl) + 80px);
	background-size: cover;
	background-position: center;
	color: var(--pgc-white);
}

.pgc_hero::before {
	content: '';
	position: absolute;
	inset: 0;
	/* voile : bas (boutons) + gauche (titre) pour la lisibilite */
	background: linear-gradient(90deg, rgba(1,2,5,.55) 0%, rgba(1,2,5,.25) 40%, rgba(1,2,5,0) 65%), linear-gradient(0deg, rgba(1,2,5,.75) 0%, rgba(1,2,5,.15) 55%, rgba(1,2,5,.1) 100%);
}

.pgc_hero .the_container { position: relative; }

.pgc_hero_title img { width: 240px; }

.pgc_hero_country { display: block; margin-top: 6px; font-size: 32px; line-height: 1; }

.pgc_hero_text { margin-top: 16px; font-size: var(--pgc-text-lg); line-height: 1.3; }

.pgc_hero_btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pgc_hero .pgc_btn_frosted { color: var(--pgc-white); background: rgba(255,255,255,.18); }
.pgc_hero .pgc_btn_frosted:hover { background: rgba(255,255,255,.28); }


/* ---------- BLOC CODE UNIQUE ---------- */

.pgc_code { position: relative; z-index: 2; margin-top: -80px; }

.pgc_code_box {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: var(--pgc-space-md);
	background: var(--pgc-black);
	color: var(--pgc-white);
	border-radius: var(--pgc-radius-2xl);
}

.pgc_code_title { font-size: var(--pgc-text-lg); }
.pgc_code_title br { display: none; }

.pgc_code_field { position: relative; }

.pgc_code_field input {
	width: 100%;
	height: 56px;
	padding: 0 52px 0 16px;
	font-family: inherit;
	font-size: 16px;
	color: var(--pgc-white);
	background: #6b6b703a;
	border: 1px solid #9c9c9f4d;
	border-radius: var(--pgc-radius-lg);
	outline: none;
}
.pgc_code_field input::placeholder { color: #f6f6f88f; }
.pgc_code_field input:focus { outline: 2px solid var(--pgc-green); outline-offset: 2px; }

.pgc_code_field svg { position: absolute; right: 16px; top: 17px; }

.pgc_block .pgc_code_box { margin-bottom: 8px; }


/* ---------- RACCOURCIS ---------- */

.pgc_shortcuts { padding: var(--pgc-space-md) 0 0; }

.pgc_shortcuts_grid { display: grid; gap: 16px; }

.pgc_shortcut {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 20px 24px;
	background: var(--pgc-surface);
	border-radius: var(--pgc-radius-xl);
	transition: background-color .25s var(--pgc-ease);
}
.pgc_shortcut:hover { background: #e6e6ea; }

.pgc_shortcut_icon { flex-shrink: 0; }
.pgc_shortcut_text { flex: 1; }
.pgc_shortcut_text strong { display: block; font-size: var(--pgc-text-md); font-weight: 400; }
.pgc_shortcut_text span { font-size: 14px; color: var(--pgc-text-2); }
.pgc_chevron { flex-shrink: 0; }


/* ---------- 3 ETAPES ---------- */

.pgc_steps { padding: var(--pgc-space-xl) 0 var(--pgc-space-lg); }

.pgc_steps_grid { display: grid; gap: 16px; }

.pgc_step {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 12px 12px 28px;
	background: var(--pgc-surface);
	border-radius: var(--pgc-radius-2xl);
}

.pgc_step_title {
	order: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 12px 8px;
	font-size: var(--pgc-text-lg);
}

.pgc_step_pic {
	order: 1;
	width: 100%;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	border-radius: var(--pgc-radius-xl);
}

.pgc_step_icon { display: none; }

.pgc_step_text { order: 3; margin: 0 12px; font-size: 16px; color: var(--pgc-text-2); }
.pgc_step_info { order: 4; margin: 14px 12px 0; font-size: 16px; }

.pgc_step_dark { background: var(--pgc-black); color: var(--pgc-white); }
.pgc_step_dark .pgc_step_text { color: #f6f6f8ab; }

.pgc_step_badge {
	padding: 2px 8px;
	font-size: 12px;
	color: var(--pgc-white);
	background: var(--pgc-green);
	border-radius: var(--pgc-radius-sm);
}

.pgc_step_arrow { display: none; }


/* ---------- COMMENT CA MARCHE ---------- */

.pgc_how { padding: 0 0 var(--pgc-space-xl); }

.pgc_how_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; }

.pgc_how_item { position: relative; text-align: center; }

.pgc_how_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	background: var(--pgc-surface);
	border-radius: 50%;
}

.pgc_how_item h3 { font-size: var(--pgc-text-md); margin-bottom: 6px; }
.pgc_how_item p { font-size: 14px; color: var(--pgc-text-2); }


/* ---------- MANCHES (slider de tuiles) ---------- */

.pgc_manches { padding: var(--pgc-space-lg) 0 var(--pgc-space-xl); }

.pgc_manches_head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.pgc_manches_head .pgc_section_title { margin: 0; text-align: left; }

.pgc_manches_slider { position: relative; }

.pgc_manches_track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.pgc_manches_track::-webkit-scrollbar { display: none; }

/* tuile : photo plein cadre + texte blanc sur degrade (style link tile Porsche) */
.pgc_manche {
	position: relative;
	flex: 0 0 80%;
	gap: 0;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	aspect-ratio: 3 / 4;
	padding: 24px;
	color: var(--pgc-white);
	border-radius: var(--pgc-radius-2xl);
	overflow: hidden;
}

.pgc_manche_pic { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s var(--pgc-ease); }
.pgc_manche::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(0deg, rgba(1,2,5,.8), rgba(1,2,5,0)); }
.pgc_manche:hover .pgc_manche_pic { transform: scale(1.04); }

.pgc_manche > .pgc_badge, .pgc_manche_foot { position: relative; z-index: 1; }
.pgc_manche > .pgc_badge { align-self: flex-start; margin-bottom: 12px; }
.pgc_manche_foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pgc_manche_club { font-size: var(--pgc-text-md); }

/* bouton rond de tuile : fleche seule, elle glisse legerement au survol */
.pgc_tile_btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: var(--pgc-white);
	background: rgba(64,64,68,.6);
	backdrop-filter: blur(32px);
	border-radius: 50%;
	transition: background-color .4s var(--pgc-ease);
}
.pgc_tile_btn svg { transition: transform .4s var(--pgc-ease); }
.pgc_manche:hover .pgc_tile_btn { background: rgba(64,64,68,.85); }
.pgc_manche:hover .pgc_tile_btn svg { transform: translateX(3px); }

.pgc_slider_arrow {
	display: none;
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.85);
	backdrop-filter: blur(32px);
	border: 0;
	border-radius: 50%;
	box-shadow: var(--pgc-shadow);
	cursor: pointer;
}
.pgc_slider_prev { left: 12px; }
.pgc_slider_next { right: 12px; }


/* ---------- CENTRE PORSCHE (home) ---------- */

.pgc_dealer {
	display: grid;
	max-width: 1440px;
	margin: 0 auto var(--pgc-space-xl);
	padding: 0 var(--pgc-space-md);
}

.pgc_dealer_pic { min-height: 240px; background-size: cover; background-position: center; border-radius: var(--pgc-radius-2xl) var(--pgc-radius-2xl) 0 0; }

.pgc_dealer_text { padding: 32px 24px; background: var(--pgc-surface); border-radius: 0 0 var(--pgc-radius-2xl) var(--pgc-radius-2xl); }
.pgc_dealer_text h2 { font-size: var(--pgc-text-xl); margin-bottom: 10px; }
.pgc_dealer_text p { color: var(--pgc-text-2); margin-bottom: 24px; }
.pgc_dealer_text .pgc_btn { width: 100%; justify-content: flex-start; background: var(--pgc-white); }
.pgc_dealer_text .pgc_btn .pgc_chevron { margin-left: auto; }


/* ---------- FOOTER ---------- */

.pgc_footer { padding: var(--pgc-space-lg) 0 24px; background: var(--pgc-surface); color: var(--pgc-black); }

.pgc_footer_cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; }

.pgc_footer_logo { grid-column: 1 / -1; }
.pgc_footer_logo .pgc_wordmark { width: 140px; margin-bottom: 24px; }
.pgc_footer_cup { width: 120px; }
.pgc_footer_country { display: block; margin-top: 4px; font-size: 16px; line-height: 1; }

.pgc_footer_col h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.pgc_footer_col a { display: block; font-size: 14px; color: var(--pgc-text-2); padding: 3px 0; }
.pgc_footer_col a:hover { color: var(--pgc-black); }

.pgc_footer_social { display: flex; gap: 18px; }

.pgc_footer_bottom {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--pgc-line);
	font-size: 12px;
	color: var(--pgc-text-2);
}

.pgc_footer_legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pgc_footer_legal a:hover { color: var(--pgc-black); }


/* ==========================================================
   PAGES INTERIEURES - composants communs
   ========================================================== */

/* ---------- TITRES ET TEXTES (balises de base dans les blocs) ---------- */

.pgc_block :where(h1) { font-size: var(--pgc-text-2xl); margin-bottom: 16px; }
.pgc_block :where(h2) { font-size: var(--pgc-text-xl); margin-bottom: 16px; }
.pgc_block :where(h3) { font-size: var(--pgc-text-md); margin: 32px 0 12px; }
.pgc_block :where(h3:first-child) { margin-top: 0; }
.pgc_block :where(p, li) { font-size: 16px; color: var(--pgc-text-2); }
.pgc_block :where(p + p) { margin-top: 12px; }
.pgc_block :where(p a, li a) { color: var(--pgc-black); text-decoration: underline; text-underline-offset: 3px; }
.pgc_block :where(ul) { margin: 0; padding-left: 18px; }
.pgc_block :where(li + li) { margin-top: 8px; }

.pgc_block_black :where(p, li), .pgc_card_dark :where(p) { color: #f6f6f8ab; }

.pgc_dash { display: block; width: 32px; height: 3px; margin-bottom: 16px; background: var(--pgc-green); border-radius: 2px; }
.pgc_kicker { font-size: 14px; color: var(--pgc-text-2); margin-bottom: 6px; }
.pgc_block_black .pgc_kicker, .pgc_card_dark .pgc_kicker, .pgc_block_black .pgc_note { color: #f6f6f88f; }
.pgc_note { margin-top: 24px; font-size: 14px; color: var(--pgc-text-3); }
.pgc_mt { margin-top: 32px; }


/* ---------- MISE EN PAGE ---------- */

.pgc_page_hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(360px, 55vh, 600px);
	padding: calc(var(--pgc-header-h) + 24px) 0 var(--pgc-space-lg);
	background-size: cover;
	background-position: center;
	color: var(--pgc-white);
}
.pgc_page_hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,2,5,.7) 0%, rgba(1,2,5,.1) 60%, rgba(1,2,5,.3) 100%); }
.pgc_page_hero .the_container { position: relative; }
.pgc_page_hero_sub { font-size: var(--pgc-text-md); opacity: .85; }
.pgc_page_hero_title { font-size: var(--pgc-text-3xl); }

.pgc_block { padding: var(--pgc-space-xl) 0; }
.pgc_block_grey { background: var(--pgc-surface); }
.pgc_block_black { background: var(--pgc-black); color: var(--pgc-white); }

.pgc_narrow { max-width: 900px; }

.pgc_two_cols { display: grid; gap: var(--pgc-space-lg); }

.pgc_grid { display: grid; gap: 16px; }
.pgc_grid_4 { grid-template-columns: 1fr 1fr; }

.pgc_bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.pgc_bar h1, .pgc_bar h2 { margin: 0; }

.pgc_pic { min-height: 280px; margin-top: 24px; background-size: cover; background-position: center; border-radius: var(--pgc-radius-2xl); }
.pgc_two_cols > .pgc_pic { margin-top: 0; }

.pgc_figure { padding: 24px 12px; text-align: center; background: var(--pgc-white); border-radius: var(--pgc-radius-xl); }
.pgc_figure strong { display: block; font-size: var(--pgc-text-3xl); font-weight: 400; line-height: 1.1; }
.pgc_figure span { font-size: 14px; color: var(--pgc-text-2); }


/* ---------- CARTE ---------- */

.pgc_card { display: flex; flex-direction: column; padding: 12px; background: var(--pgc-surface); border-radius: var(--pgc-radius-2xl); transition: background-color .25s var(--pgc-ease); }
a.pgc_card:hover { background: #e6e6ea; }
.pgc_card_dark { background: #19191a; color: var(--pgc-white); }
.pgc_card_pic { position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center; border-radius: var(--pgc-radius-xl); }
.pgc_card_pic .pgc_badge { position: absolute; top: 12px; left: 12px; }
.pgc_card_body { flex: 1; padding: 16px 12px 12px; }
/* carte avec bouton d'action en bas (page contact) */
.pgc_card_cta .pgc_card_body { display: flex; flex-direction: column; }
.pgc_card_cta .pgc_btn { margin-top: auto; align-self: flex-start; }
.pgc_card_cta p { margin-bottom: 24px; }
.pgc_card_body h3 { margin: 0 0 10px; font-size: var(--pgc-text-md); }
.pgc_card .pgc_link_green { margin-top: 12px; }
.pgc_card_dark .pgc_link_green { color: var(--pgc-white); }

.pgc_meta { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 14px; }
.pgc_meta svg { flex-shrink: 0; }

/* liste simple avec icone (ex. parcours d'un club) */
.pgc_block :where(ul.pgc_list) { list-style: none; padding: 0; margin: 0 0 16px; }
.pgc_list li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 0; color: var(--pgc-black); border-bottom: 1px solid var(--pgc-line); }
.pgc_list li:last-child { border-bottom: 0; }
.pgc_list li > svg { flex: none; align-self: flex-start; margin-top: 2px; }
.pgc_links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }

.pgc_badge { display: inline-block; padding: 6px 14px; font-size: 14px; color: var(--pgc-white); background: rgba(64,64,68,.6); backdrop-filter: blur(32px); border-radius: 20px; }
.pgc_badge_green { background: var(--pgc-green); color: var(--pgc-white); }


/* ---------- ACCORDEON ---------- */

.pgc_acc { border-top: 1px solid var(--pgc-line); }
.pgc_card .pgc_acc { margin-top: 16px; }
.pgc_acc_item { border-bottom: 1px solid var(--pgc-line); }
.pgc_acc_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 20px 0;
	font-family: inherit;
	font-size: var(--pgc-text-md);
	font-weight: 400;
	text-align: left;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}
.pgc_card .pgc_acc_head { font-size: 16px; padding: 14px 0; }
.pgc_acc_icon { flex-shrink: 0; transition: transform .25s var(--pgc-ease); }
.pgc_acc_body { display: none; padding: 0 0 24px; }
.pgc_acc_open .pgc_acc_icon { transform: rotate(45deg); }


/* ---------- ONGLETS (segmented control) ---------- */

.pgc_tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 32px; padding: 4px; background: var(--pgc-surface); border-radius: var(--pgc-radius-lg); }
.pgc_tabs button {
	padding: 8px 18px;
	font-family: inherit;
	font-size: 16px;
	color: var(--pgc-text-2);
	background: none;
	border: 0;
	border-radius: var(--pgc-radius-md);
	cursor: pointer;
	transition: background-color .25s var(--pgc-ease), color .25s var(--pgc-ease);
}
.pgc_tabs button:hover { color: var(--pgc-black); }
.pgc_tabs button.active { background: var(--pgc-white); color: var(--pgc-black); box-shadow: 0 3px 8px #00000014; }


/* ---------- PROGRAMME (ligne du temps) ---------- */

.pgc_timeline { list-style: none; margin: 0; padding: 0; }
.pgc_timeline li { display: flex; gap: 16px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--pgc-line); font-size: 16px; }
.pgc_timeline strong { flex: 0 0 52px; font-weight: 600; color: var(--pgc-black); }


/* ---------- PARTENAIRES (logos blancs sur fond noir) ---------- */

.pgc_partners { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pgc_partner { display: flex; flex-direction: column; background: #ffffff0f; border-radius: var(--pgc-radius-xl); color: var(--pgc-white); text-decoration: none; transition: background .3s var(--pgc-ease); }
.pgc_partner:hover { background: #ffffff1f; }
.pgc_partner_logo { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 16px; }
.pgc_partner_logo img { max-width: 80%; max-height: 52px; opacity: .85; transition: opacity .3s var(--pgc-ease); }
.pgc_partner:hover .pgc_partner_logo img { opacity: 1; }
.pgc_partner_foot { display: flex; flex-direction: column; gap: 2px; padding: 0 16px 14px; font-size: 14px; line-height: 1.3; }
.pgc_partner_type { color: #f6f6f88f; }
.pgc_partner_foot svg { display: none; margin-left: auto; opacity: 0; transform: translateX(-4px); transition: opacity .3s var(--pgc-ease), transform .3s var(--pgc-ease); }
.pgc_partner:hover .pgc_partner_foot svg { opacity: 1; transform: none; }


/* ---------- FORMULAIRES ---------- */

.pgc_form { display: flex; flex-direction: column; gap: 20px; }
.pgc_form h3 { margin: 16px 0 0; }
.pgc_form .pgc_btn { align-self: flex-start; }

.pgc_field { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }

.pgc_input {
	width: 100%;
	height: 56px;
	padding: 0 16px;
	font-family: inherit;
	font-size: 16px;
	color: var(--pgc-black);
	background: var(--pgc-frosted);
	border: 1px solid var(--pgc-line);
	border-radius: var(--pgc-radius-lg);
	outline: none;
	transition: border-color .25s var(--pgc-ease);
}
.pgc_input:hover { border-color: var(--pgc-text-3); }

/* liste deroulante : fleche Porsche (chevron) */
select.pgc_input {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 52px;
	background: var(--pgc-frosted) url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23010205' d='m12 15.41-6.71-6.7 1.42-1.42L12 12.59l5.29-5.3 1.42 1.42L12 15.41Z'/%3E%3C/svg%3E") no-repeat right 16px center / 24px;
	cursor: pointer;
}

/* zone de texte */
textarea.pgc_input { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.5; }

/* texte d'aide sous un champ */
.pgc_field_help { font-size: 14px; color: var(--pgc-text-2); }

/* champ en erreur (classe ajoutee par le PHP) */
.pgc_field_error .pgc_input { border-color: var(--pgc-error); }
.pgc_field_msg { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--pgc-error); }
.pgc_field_msg::before {
	content: '';
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15h-2v-2h2v2Zm0-4h-2V7h2v6Z'/%3E%3C/svg%3E") center / 100% no-repeat;
	mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15h-2v-2h2v2Zm0-4h-2V7h2v6Z'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.pgc_input:focus { outline: 2px solid var(--pgc-focus); outline-offset: 2px; }
.pgc_bar .pgc_input { width: auto; min-width: 300px; }

.pgc_radios { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 16px; }
.pgc_radios label { display: flex; align-items: center; gap: 10px; cursor: pointer; }

/* cases a cocher et boutons radio redessines (comme p-checkbox / p-radio-group) */
.pgc_radios input, .pgc_check input {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	margin: 0;
	background: var(--pgc-frosted);
	border: 1px solid var(--pgc-line);
	border-radius: var(--pgc-radius-md);
	cursor: pointer;
	transition: background-color .25s var(--pgc-ease), border-color .25s var(--pgc-ease);
}
.pgc_radios input, .pgc_check input[type=radio] { border-radius: 50%; }
.pgc_radios input:hover, .pgc_check input:hover { border-color: var(--pgc-text-3); }
.pgc_radios input:checked, .pgc_check input:checked { background: var(--pgc-black); border-color: var(--pgc-black); }
.pgc_radios input::before, .pgc_check input::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--pgc-white);
	opacity: 0;
	-webkit-mask: center / 100% no-repeat;
	mask: center / 100% no-repeat;
}
.pgc_check input[type=checkbox]::before {
	-webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m20.22,7.47l-1.47-1.42-9.26,9.02-4.24-4.15-1.47,1.42,5.71,5.6,10.73-10.47Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m20.22,7.47l-1.47-1.42-9.26,9.02-4.24-4.15-1.47,1.42,5.71,5.6,10.73-10.47Z'/%3E%3C/svg%3E");
}
.pgc_radios input::before, .pgc_check input[type=radio]::before {
	-webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3C/svg%3E");
}
.pgc_radios input:checked::before, .pgc_check input:checked::before { opacity: 1; }

.pgc_check { display: flex; align-items: flex-start; gap: 12px; padding: 16px; font-size: 15px; color: var(--pgc-text-2); background: var(--pgc-surface); border-radius: var(--pgc-radius-lg); cursor: pointer; }
.pgc_check input { margin-top: -2px; }
.pgc_check strong { color: var(--pgc-black); font-weight: 600; }
.pgc_check a { color: var(--pgc-black); text-decoration: underline; }
.pgc_check:has(input[type=radio]:checked) { background: var(--pgc-white); box-shadow: inset 0 0 0 2px var(--pgc-black); }

.pgc_notice { margin-bottom: 24px; padding: 16px 20px; font-size: 16px; background: var(--pgc-surface); border-radius: var(--pgc-radius-lg); border-left: 4px solid var(--pgc-green); }

.pgc_steps_bar { display: flex; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.pgc_steps_bar li { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding-bottom: 12px; font-size: 14px; color: var(--pgc-text-3); border-bottom: 2px solid var(--pgc-line); }
.pgc_steps_bar span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; font-size: 13px; background: var(--pgc-surface); border-radius: 50%; }
.pgc_steps_bar .active { color: var(--pgc-black); border-color: var(--pgc-black); }
.pgc_steps_bar .active span { background: var(--pgc-black); color: var(--pgc-white); }
.pgc_steps_bar .done { color: var(--pgc-black); border-color: var(--pgc-green); }
.pgc_steps_bar .done span { background: var(--pgc-green); color: var(--pgc-white); }
/* mobile : seul le libelle de l'etape en cours est affiche (4 etapes) */
.pgc_steps_bar li:not(.active) { flex: 0 0 auto; padding-right: 8px; font-size: 0; }
.pgc_steps_bar li:not(.active) span { font-size: 13px; }

/* statuts d'inscription (memes libelles dans les e-mails et le module DEALER) */
.pgc_status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; font-size: 14px; line-height: 20px; white-space: nowrap; border-radius: 20px; vertical-align: middle; color: #8a4b00; background: #fff1db; }
.pgc_status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ff9b00; }
.pgc_status_ok { color: #00702d; background: #e2f6e9; }
.pgc_status_ok::before { background: var(--pgc-green); }
.pgc_status_wait { color: var(--pgc-focus); background: #e6ecfd; }
.pgc_status_wait::before { background: var(--pgc-focus); }
.pgc_status_no { color: var(--pgc-error); background: #fbe7e8; }
.pgc_status_no::before { background: var(--pgc-error); }
.pgc_block .pgc_status + h2 { margin-top: 16px; }
.pgc_status_list { margin: 0; padding: 0; list-style: none; }
.pgc_status_list li:last-child { border-bottom: 1px solid var(--pgc-line); }
.pgc_status_list li { display: grid; gap: 6px; margin: 0; padding: 14px 0; border-top: 1px solid var(--pgc-line); }
.pgc_status_list li > .pgc_status { justify-self: start; }
.pgc_status_list p { margin: 0; font-size: 15px; color: var(--pgc-text-2); }

/* suivi de l'inscription : etapes verticales (page "demande envoyee", memes etapes que les e-mails) */
.pgc_suivi { margin: 32px 0 0; padding: 24px; list-style: none; background: var(--pgc-surface); border-radius: var(--pgc-radius-xl); }
.pgc_suivi li { position: relative; display: flex; gap: 16px; margin: 0; padding-bottom: 20px; }
.pgc_suivi li:last-child { padding-bottom: 0; }
.pgc_suivi li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 32px; bottom: 4px; width: 2px; background: var(--pgc-line); }
.pgc_suivi li.done::after { background: var(--pgc-green); }
.pgc_suivi_dot { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-size: 13px; color: var(--pgc-text-3); border: 2px solid var(--pgc-line); border-radius: 50%; box-sizing: border-box; }
.pgc_suivi .done .pgc_suivi_dot { color: var(--pgc-white); background: var(--pgc-green); border-color: var(--pgc-green); }
.pgc_suivi .current .pgc_suivi_dot { color: #8a4b00; border-color: #ff9b00; }
.pgc_suivi h3 { margin: 2px 0; font-size: var(--pgc-text-md); color: var(--pgc-black); }
.pgc_suivi li:not(.done):not(.current) h3 { color: var(--pgc-text-3); }
.pgc_suivi p { margin: 0; font-size: 15px; color: var(--pgc-text-2); }


/* ---------- TABLEAUX (leaderboard) ---------- */

.pgc_table_wrap { overflow-x: auto; padding: 8px 12px; background: var(--pgc-surface); border-radius: var(--pgc-radius-xl); }
.pgc_table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pgc_table th { padding: 12px 10px; font-size: 14px; font-weight: 400; text-align: left; color: var(--pgc-text-2); border-bottom: 1px solid var(--pgc-line); white-space: nowrap; }
.pgc_table td { padding: 12px 10px; border-bottom: 1px solid var(--pgc-line); white-space: nowrap; }
.pgc_table tbody tr:last-child td, .pgc_table tbody tr:last-child th { border-bottom: 0; }
.pgc_table tbody th { color: var(--pgc-black); font-weight: 600; }
.pgc_table td strong { font-weight: 600; }
.pgc_pos { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; }
.pgc_top .pgc_pos { background: var(--pgc-black); color: var(--pgc-white); }
.pgc_top:first-child .pgc_pos { background: var(--pgc-green); }
.pgc_hide_m { display: none; }



/* ==========================================================
   EFFETS ET MODULES (header au defilement, apparitions, video,
   compte a rebours, code en cases, live)
   ========================================================== */

/* ---------- HEADER : devient blanc givre au defilement ---------- */

.pgc_has_hero .pgc_header { position: fixed; transition: background-color .4s var(--pgc-ease), color .4s var(--pgc-ease), backdrop-filter .4s; }
.pgc_header_scrolled .pgc_header,
.pgc_has_hero.pgc_header_scrolled .pgc_header { background: rgba(255,255,255,.82); backdrop-filter: blur(32px); color: var(--pgc-black); box-shadow: 0 1px 0 var(--pgc-line); }


/* ---------- APPARITION DES BLOCS AU DEFILEMENT (classe ajoutee par le JS) ---------- */

.pgc_reveal { opacity: 0; transform: translateY(32px); transition: opacity .6s var(--pgc-ease), transform .6s var(--pgc-ease); }
.pgc_reveal.pgc_in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.pgc_reveal { opacity: 1; transform: none; transition: none; }
	.pgc_hero_img { animation: none; }
	html { scroll-behavior: auto; }
}


/* ---------- VIDEO DU HERO ---------- */

.pgc_hero_video, .pgc_hero_img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* image du hero : leger zoom arriere a l'ouverture (effet camera) */
.pgc_hero { overflow: hidden; background: var(--pgc-black); }
.pgc_hero_img { object-position: 50% center; animation: pgc_hero_zoom 14s var(--pgc-ease) both; }
@keyframes pgc_hero_zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.pgc_hero::before { z-index: 1; }
.pgc_hero .the_container { z-index: 2; }

.pgc_video_btn {
	position: absolute;
	right: var(--pgc-space-md);
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	color: var(--pgc-white);
	background: rgba(64,64,68,.6);
	backdrop-filter: blur(32px);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.pgc_icon_play { display: none; }
.pgc_video_paused .pgc_icon_pause { display: none; }
.pgc_video_paused .pgc_icon_play { display: block; }


/* ---------- COMPTE A REBOURS ---------- */

.pgc_countdown {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
	padding: 12px 20px 12px 16px;
	color: var(--pgc-white);
	background: rgba(64,64,68,.45);
	backdrop-filter: blur(32px);
	border-radius: var(--pgc-radius-xl);
	transition: background-color .25s var(--pgc-ease);
}
.pgc_countdown:hover { background: rgba(64,64,68,.7); }
.pgc_countdown_num { font-size: var(--pgc-text-2xl); line-height: 1; color: var(--pgc-green); font-variant-numeric: tabular-nums; }
.pgc_countdown_text { font-size: 14px; line-height: 1.35; }


/* ---------- CODE UNIQUE : un seul champ, mis en forme pendant la saisie (PGC-BE27-XXXX) ---------- */

.pgc_code_field .pgc_code_input { font-size: 20px; letter-spacing: .12em; text-transform: uppercase; }
.pgc_code_field .pgc_code_input::placeholder { letter-spacing: .12em; }

/* bloc code dans une page interieure : titre au-dessus, champ + bouton en dessous */
.pgc_block .pgc_code_box { display: grid; gap: 16px; }

/* ---------- LIVE (leaderboard) ---------- */

.pgc_live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 14px; color: var(--pgc-white); background: var(--pgc-black); border-radius: 20px; }
.pgc_live::before { content: ''; width: 8px; height: 8px; background: var(--pgc-green); border-radius: 50%; animation: pgc_pulse 1.6s infinite; }
@keyframes pgc_pulse { 0% { box-shadow: 0 0 0 0 rgba(0,184,75,.7); } 70% { box-shadow: 0 0 0 8px rgba(0,184,75,0); } 100% { box-shadow: 0 0 0 0 rgba(0,184,75,0); } }


/* ==========================================================
   TABLETTE (768px et plus)
   ========================================================== */

@media (min-width: 768px) {
	.pgc_partners { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.pgc_partner_logo img { max-width: 68%; max-height: 72px; }
	.pgc_partner_foot { flex-direction: row; align-items: center; gap: 8px; padding: 0 24px 20px; font-size: 15px; }
	.pgc_partner_foot svg { display: block; }
	.pgc_steps_bar li:not(.active) { flex: 1; padding-right: 0; font-size: 14px; }

	.pgc_burger_label { display: inline; }
	.pgc_menu_lang { display: flex; }

	.pgc_hero_title img { width: 340px; }
	.pgc_hero_country { font-size: 44px; }

	.pgc_shortcuts_grid { grid-template-columns: 1fr 1fr; }

	.pgc_how_grid { grid-template-columns: repeat(3, 1fr); }

	.pgc_manche { flex-basis: calc((100% - 32px) / 3); }

	.pgc_dealer { grid-template-columns: 1fr 1fr; }
	.pgc_dealer_pic { min-height: 320px; border-radius: var(--pgc-radius-2xl) 0 0 var(--pgc-radius-2xl); }
	.pgc_dealer_text { display: flex; flex-direction: column; justify-content: center; padding: 40px; border-radius: 0 var(--pgc-radius-2xl) var(--pgc-radius-2xl) 0; }

	.pgc_footer_cols { grid-template-columns: repeat(3, 1fr); }
	.pgc_footer_bottom { flex-direction: row; justify-content: space-between; }

	/* pages interieures */
	.pgc_grid_2, .pgc_grid_3 { grid-template-columns: 1fr 1fr; }
	.pgc_grid_4 { grid-template-columns: repeat(4, 1fr); }
	.pgc_hide_m { display: table-cell; }

	.pgc_video_btn { top: auto; bottom: 0; }
	.pgc_block .pgc_code_box { grid-template-columns: 1fr auto; align-items: center; }
	.pgc_block .pgc_code_title { grid-column: 1 / -1; }
}


/* ==========================================================
   DESKTOP (1100px et plus)
   ========================================================== */

@media (min-width: 1100px) {

	:root { --pgc-header-h: 80px; }

	/* logo : mot PORSCHE a la place de l'ecusson */
	.pgc_header_crest { display: none; }
	.pgc_header_wordmark { display: block; }

	.pgc_hero_title img { width: 440px; }
	.pgc_hero_country { font-size: 56px; }

	.pgc_code_box { flex-direction: row; align-items: center; gap: 24px; padding: 28px 32px; }
	.pgc_code_title { flex: 1; }
	.pgc_code_field { flex: 1.2; }
	.pgc_code_btn { flex: 1.2; }

	.pgc_steps_grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

	.pgc_how_grid { grid-template-columns: repeat(5, 1fr); }
	.pgc_how_item:not(:last-child)::after {
		content: '';
		position: absolute;
		top: 28px;
		left: calc(50% + 40px);
		right: calc(-50% + 40px);
		border-top: 1px solid var(--pgc-line);
	}

	.pgc_manche { flex-basis: calc((100% - 48px) / 4); }
	.pgc_slider_arrow { display: flex; }

	.pgc_dealer { grid-template-columns: 5fr 7fr; }
	.pgc_dealer_text { display: grid; grid-template-columns: 1fr auto; gap: 10px 40px; align-content: center; padding: 48px; }
	.pgc_dealer_text h2, .pgc_dealer_text p { grid-column: 1; margin: 0; }
	.pgc_dealer_text .pgc_btn { grid-column: 2; grid-row: 1 / 3; align-self: center; width: auto; min-width: 280px; }

	.pgc_footer_cols { grid-template-columns: 1.4fr repeat(5, 1fr); }
	.pgc_footer_logo { grid-column: auto; }

	/* pages interieures */
	.pgc_two_cols { grid-template-columns: 1fr 1fr; align-items: start; }
	.pgc_grid_3 { grid-template-columns: repeat(3, 1fr); }
	.pgc_grid { gap: 20px; }
}

/* inscription : message d'erreur general du formulaire */
.pgc_notice_error { border-left-color: var(--pgc-error); }

/* pages de texte (mentions legales, confidentialite, cookies) : contenu HTML du module Textes */
.pgc_text h2 { margin-top: 32px; }
.pgc_text .pgc_table_wrap { margin: 16px 0; }
