/* GTPV Réalisations */
:root {
	--gtpv-rouge: var(--e-global-color-primary, #EA2E2E);
	--gtpv-rouge-fonce: var(--e-global-color-accent, #B62A2A);
	--gtpv-gris: #6b6b6b;
	--gtpv-bord: #e3e3e3;
	--gtpv-fond: #f6f6f6;
}

/* ---------- Grille publique : copie du design de la page Réalisations actuelle ---------- */
.gtpv-r { --gtpv-r-rouge: #cb3522; --gtpv-r-noir: #17191c; --gtpv-r-gris: #6b7078; --gtpv-r-bord: #dcdfe3; }
.gtpv-r *, .gtpv-r *::before, .gtpv-r *::after { box-sizing: border-box; }

/* Filtres = anciens onglets */
.gtpv-r .gtpv-r-filtres { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 10px; margin: 0 0 34px; }
.gtpv-r .gtpv-r-filtre {
	appearance: none; margin: 0; cursor: pointer; border-radius: 0;
	font: 700 13px/1.2 Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase;
	padding: 13px 26px; border: 1px solid var(--gtpv-r-bord); background: #fff; color: #3a3e45;
	transition: border-color .2s, background-color .2s, color .2s;
}
.gtpv-r .gtpv-r-filtre:hover { border-color: var(--gtpv-r-rouge); background: #fff; color: #3a3e45; }
.gtpv-r .gtpv-r-filtre.is-active, .gtpv-r .gtpv-r-filtre.is-active:hover { background: var(--gtpv-r-rouge); border-color: var(--gtpv-r-rouge); color: #fff; }
.gtpv-r .gtpv-r-filtre:focus-visible { outline: 2px solid var(--gtpv-r-rouge); outline-offset: 2px; }

/* Grille 3 colonnes */
.gtpv-r .gtpv-r-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.gtpv-r .gtpv-r-carte[hidden] { display: none; }
.gtpv-r .gtpv-r-carte, .gtpv-r .gtpv-r-carte .elementor-widget-container { position: relative; min-width: 0; height: 100%; }

/* Carte */
.gtpv-r .elementor-cta {
	display: flex; flex-direction: column; position: relative; overflow: hidden; height: 100%;
	background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.07); border-bottom: 3px solid transparent;
	text-decoration: none !important; color: inherit; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.gtpv-r .elementor-cta:hover, .gtpv-r .elementor-cta:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0,0,0,.14); border-bottom-color: var(--gtpv-r-rouge); }
.gtpv-r .elementor-cta__bg-wrapper { position: relative; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; min-height: 0; flex: none; }
.gtpv-r .elementor-cta__bg, .gtpv-r .elementor-cta__bg-overlay { position: absolute; inset: 0; transition: all 1.5s; }
.gtpv-r .elementor-cta__bg { background: #e9eaec center / cover no-repeat; }
.gtpv-r .elementor-cta:hover .elementor-cta__bg { transform: scale(1.2); }
.gtpv-r .elementor-cta:hover .elementor-cta__bg-overlay { background-color: rgba(0,0,0,.3); }
.gtpv-r .elementor-cta__content {
	position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 auto;
	width: 100%; padding: 22px 24px 24px; background: #fff; border-top: 3px solid var(--gtpv-r-rouge); text-align: left;
}
.gtpv-r .elementor-cta__title { margin: 0 0 6px; padding: 0; width: 100%; font: 800 19px/1.25 Montserrat, sans-serif; color: var(--gtpv-r-noir); text-align: left; }
.gtpv-r .elementor-cta__description { margin: 0; width: 100%; font: 400 14px/1.5 Inter, sans-serif; color: var(--gtpv-r-gris); text-align: left; }
.gtpv-r .elementor-cta__content::after {
	content: "Voir le projet \2192"; display: block; margin-top: auto; padding-top: 14px;
	font: 700 12px Montserrat, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--gtpv-r-rouge);
}
/* Sur la page Réalisations, le CSS du site stylise déjà ce même texte : on aligne l'espacement. */
body.page-id-452 .gtpv-r .elementor-cta__content::after { margin-top: 14px; padding-top: 0; }

/* Badge « En cours » */
.gtpv-r .gtpv-r-badge {
	position: absolute; top: 12px; left: 12px; z-index: 5; pointer-events: none;
	background: #c0392b; color: #fff; font: 700 12px/1.2 Montserrat, sans-serif; letter-spacing: .06em; text-transform: uppercase;
	padding: 5px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

@media (max-width: 1024px) { .gtpv-r .gtpv-r-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 767px) {
	.gtpv-r .gtpv-r-grille { grid-template-columns: 1fr; gap: 24px; }
	.gtpv-r .gtpv-r-filtres { gap: 6px; margin-bottom: 24px; }
	.gtpv-r .gtpv-r-filtre { flex: 1 1 auto; padding: 12px 10px; font-size: 11px; letter-spacing: .04em; }
	.gtpv-r .elementor-cta__title { font-size: 20px; }
}

/* ---------- Page d'une réalisation ---------- */
.gtpv-s-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.gtpv-s-cat { background: var(--gtpv-rouge); color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }
.gtpv-s-lieu { color: var(--gtpv-gris); }
.gtpv-s-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 30px 0; }
.gtpv-s-galerie a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.gtpv-s-galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gtpv-s-galerie a:hover img { transform: scale(1.04); }
.gtpv-s-retour a { color: var(--gtpv-rouge); font-weight: 600; }

/* ---------- Formulaire équipe ---------- */
.gtpv-f { max-width: 640px; margin: 0 auto; font-size: 17px; color: #111; }
.gtpv-f * { box-sizing: border-box; }
.gtpv-f-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--gtpv-gris); font-size: 15px; }
.gtpv-f-top a { color: var(--gtpv-gris); }
.gtpv-f-card { background: #fff; border: 1px solid var(--gtpv-bord); border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.gtpv-f-card h2 { margin: 0 0 18px; font-size: 24px; }
.gtpv-f-step { display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font-weight: 700; font-size: 18px; }
.gtpv-f-step:first-of-type { margin-top: 0; }
.gtpv-f-num { width: 30px; height: 30px; border-radius: 50%; background: var(--gtpv-rouge); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.gtpv-f-help { color: var(--gtpv-gris); font-size: 14px; margin: 6px 0 10px; }
.gtpv-f-small { font-size: 14px; text-align: center; margin: 14px 0 0; }

.gtpv-f-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 2px dashed #c9c9c9; background: var(--gtpv-fond); border-radius: 10px; padding: 28px 16px; cursor: pointer; }
.gtpv-f-drop:hover, .gtpv-f-drop:focus-within { border-color: var(--gtpv-rouge); }
.gtpv-f-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.gtpv-f-drop-txt { font-weight: 700; font-size: 18px; color: var(--gtpv-rouge); }
.gtpv-f-drop-sub { font-size: 13px; color: var(--gtpv-gris); }

.gtpv-f-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin: 10px 0; }
.gtpv-f-thumb { position: relative; background: var(--gtpv-fond); border-radius: 6px; overflow: hidden; font-size: 13px; }
.gtpv-f-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gtpv-f-thumb label { display: flex; align-items: center; gap: 4px; padding: 4px 6px; }
.gtpv-f-badge { position: absolute; top: 4px; left: 4px; background: var(--gtpv-rouge); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 3px; }

.gtpv-f-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.gtpv-f-chip input { position: absolute; opacity: 0; pointer-events: none; }
.gtpv-f-chip span { display: inline-block; padding: 12px 18px; border: 2px solid var(--gtpv-bord); border-radius: 999px; font-weight: 600; cursor: pointer; user-select: none; transition: .15s; }
.gtpv-f-chip input:checked + span { background: var(--gtpv-rouge); border-color: var(--gtpv-rouge); color: #fff; }
.gtpv-f-chip input:checked + span::before { content: "✓ "; }
.gtpv-f-chip input:focus-visible + span { outline: 3px solid #ffb3b3; }

.gtpv-f-field { display: block; font-weight: 600; margin-bottom: 14px; }
.gtpv-f-field input, .gtpv-f-field textarea { display: block; width: 100%; margin-top: 6px; font-weight: 400; font-size: 17px; line-height: 1.4; font-family: inherit; padding: 12px 14px; border: 1px solid #c9c9c9; border-radius: 6px; }
.gtpv-f-field input:focus, .gtpv-f-field textarea:focus { outline: none; border-color: var(--gtpv-rouge); box-shadow: 0 0 0 3px #ffdcdc; }

.gtpv-f-btn { display: block; width: 100%; margin-top: 22px; padding: 18px; border: 0; border-radius: 8px; background: var(--gtpv-rouge); color: #fff; font-weight: 700; font-size: 18px; line-height: 1; font-family: inherit; cursor: pointer; }
.gtpv-f-btn:hover { background: var(--gtpv-rouge-fonce); }
.gtpv-f-btn:disabled { opacity: .7; cursor: wait; }

.gtpv-f-msg { border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.gtpv-f-ok { background: #e8f6ec; border: 1px solid #9fd5ae; }
.gtpv-f-err { background: #fdecec; border: 1px solid #f1a9a9; }
.gtpv-f-msg a { font-weight: 700; }

.gtpv-f-list { list-style: none; margin: 0; padding: 0; }
.gtpv-f-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gtpv-bord); }
.gtpv-f-list img, .gtpv-noimg { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; flex: none; background: var(--gtpv-fond); display: block; }
.gtpv-f-li-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gtpv-f-li-txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtpv-f-li-txt span { font-size: 13px; color: var(--gtpv-gris); }
.gtpv-f-li-act { display: flex; gap: 12px; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
.gtpv-f-li-act a { color: #111; }
.gtpv-f-li-act .gtpv-f-del { color: var(--gtpv-rouge); }

.gtpv-f #loginform p { margin-bottom: 12px; }
.gtpv-f #loginform input[type=text], .gtpv-f #loginform input[type=password] { width: 100%; padding: 12px; font-size: 17px; border: 1px solid #c9c9c9; border-radius: 6px; }
.gtpv-f #loginform input[type=submit] { width: 100%; padding: 16px; background: var(--gtpv-rouge); color: #fff; border: 0; border-radius: 8px; font-weight: 700; font-size: 17px; cursor: pointer; }

@media (max-width: 480px) {
	.gtpv-f-card { padding: 18px 16px; }
	.gtpv-f-list li { flex-wrap: wrap; }
	.gtpv-f-li-act { width: 100%; justify-content: flex-start; padding-left: 76px; }
}

/* ---------- Formulaire : sections ajoutées en 1.1 ---------- */
.gtpv-f-nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.gtpv-f-info { background: #eef3fb; border: 1px solid #bcd0ee; font-size: 15px; }
.gtpv-f-field small { display: block; font-weight: 400; font-size: 13px; color: var(--gtpv-gris); margin-top: 4px; }
.gtpv-f-encours { display: inline-block; margin-top: 12px; }
.gtpv-f-encours input:checked + span { background: #c0392b; border-color: #c0392b; }
.gtpv-f-cats-sm { gap: 6px; margin-top: 6px; }
.gtpv-f-cats-sm .gtpv-f-chip span { padding: 6px 11px; font-size: 13px; border-width: 1px; }
.gtpv-f-cats-sm .gtpv-f-encours { margin-top: 0; }
#gtpv-classement .gtpv-f-list li { align-items: flex-start; }
#gtpv-classement .gtpv-f-li-txt { gap: 2px; }
#gtpv-classement .gtpv-f-li-act { justify-content: flex-start; margin-top: 8px; }
#gtpv-classement .gtpv-f-li-txt strong { white-space: normal; }
.gtpv-f-catlist { list-style: none; margin: 0 0 12px; padding: 0; }
.gtpv-f-catlist li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--gtpv-bord); }
.gtpv-f-catlist input { flex: 1; min-width: 0; font: 600 16px/1.3 inherit; font-family: inherit; padding: 10px 12px; border: 1px solid #c9c9c9; border-radius: 6px; }
.gtpv-f-catlist input:focus { outline: none; border-color: var(--gtpv-rouge); box-shadow: 0 0 0 3px #ffdcdc; }
.gtpv-f-count { font-size: 13px; color: var(--gtpv-gris); white-space: nowrap; }
.gtpv-f-linkbtn { appearance: none; background: none; border: 0; padding: 4px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }
.gtpv-f-btn-2 { background: #fff; color: var(--gtpv-rouge); border: 2px solid var(--gtpv-rouge); margin-top: 8px; }
.gtpv-f-btn-2:hover { background: #fff1f1; }
.gtpv-f-newcat { margin-top: 26px; padding-top: 18px; border-top: 2px solid var(--gtpv-bord); }
.gtpv-f-newcat .gtpv-f-btn { margin-top: 4px; }
.gtpv-f-sr { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gtpv-f form { position: relative; }

/* ---------- 1.3 : bouton toujours visible + progression de l'envoi ---------- */
.gtpv-f-sticky {
	position: sticky; bottom: 0; z-index: 40; margin: 22px -24px -24px; padding: 12px 24px 14px;
	background: #fff; border-top: 1px solid var(--gtpv-bord); border-radius: 0 0 10px 10px;
	box-shadow: 0 -6px 18px rgba(0,0,0,.06);
}
.gtpv-f-sticky .gtpv-f-btn { margin-top: 0; }
.gtpv-f-progress { margin-top: 10px; }
.gtpv-f-progress[hidden] { display: none; }
.gtpv-f-progress-bar { height: 10px; background: #eee; border-radius: 99px; overflow: hidden; }
.gtpv-f-progress-bar span { display: block; height: 100%; width: 0; background: var(--gtpv-rouge); transition: width .3s; }
.gtpv-f-progress-txt { margin: 6px 0 0; font-size: 14px; color: var(--gtpv-gris); text-align: center; }
@media (max-width: 480px) { .gtpv-f-sticky { margin: 18px -16px -18px; padding: 10px 16px 12px; } }

/* ---------- Confirmation dans la page ---------- */
.gtpv-f-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.gtpv-f-modal-box { background: #fff; border-radius: 12px; padding: 22px; max-width: 420px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.25); font-size: 17px; }
.gtpv-f-modal-box p { margin: 0 0 16px; font-weight: 600; line-height: 1.4; }
.gtpv-f-modal-box .gtpv-f-btn { margin-top: 10px; }
