/* GNATEPE DROP – styles des pages (compatibles avec la plupart des thèmes) */
:root {
	--gd-brand: #E3161B;
	--gd-radius: 14px;
	--gd-border: rgba(0, 0, 0, .1);
	--gd-soft: rgba(0, 0, 0, .035);
	--gd-tint: color-mix(in srgb, var(--gd-brand) 8%, transparent);
}

.gd-page { --wp--style--block-gap: 1.25rem; }


/* Sections */
.gd-section { padding: clamp(28px, 5vw, 56px) 0; }
.gd-muted { background: var(--gd-soft); border-radius: var(--gd-radius); padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); }
.gd-page h2.wp-block-heading { font-weight: 800; letter-spacing: -.01em; }

/* Bandeau d'accueil */
.gd-hero {
	text-align: center;
	padding: clamp(40px, 8vw, 88px) clamp(16px, 4vw, 48px);
	border-radius: calc(var(--gd-radius) * 1.4);
	background:
		radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--gd-brand) 16%, transparent), transparent 45%),
		radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--gd-brand) 12%, transparent), transparent 40%),
		var(--gd-soft);
	margin-top: 8px;
}
.gd-hero .gd-hero-title { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 900; line-height: 1.08; margin: 0 auto 14px; max-width: 18ch; }
.gd-hero .gd-lead { margin-left: auto; margin-right: auto; }
.gd-hero .wp-block-buttons { justify-content: center; margin-top: 18px; }
.gd-lead { font-size: 1.15rem; line-height: 1.6; opacity: .9; }
.gd-hero .gd-lead { max-width: 62ch; }
.gd-quote { font-style: italic; font-weight: 600; color: var(--gd-brand); }
.gd-note { font-size: .92rem; opacity: .8; border-left: 3px solid var(--gd-brand); padding: 6px 0 6px 12px; }

/* Recherche */
.gd-search { max-width: 560px; margin: 18px auto 0; }
.gd-search form { display: flex; gap: 8px; }
.gd-search input[type="search"] { flex: 1; min-width: 0; padding: 12px 16px; border: 2px solid var(--gd-border); border-radius: 999px; font-size: 1rem; }
.gd-search input[type="search"]:focus { border-color: var(--gd-brand); outline: none; }
.gd-search button, .gd-search input[type="submit"] { border-radius: 999px; padding: 0 20px; background: var(--gd-brand); color: #fff; border: 0; font-weight: 700; cursor: pointer; }

/* Boutons */
.gd-page .wp-block-button__link { background: var(--gd-brand); color: #fff; border-radius: 999px; font-weight: 700; padding: .75em 1.4em; border: 2px solid var(--gd-brand); }
.gd-page .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--gd-brand); }
.gd-page .wp-block-button__link:hover, .gd-page .wp-block-button__link:focus-visible { filter: brightness(.92); }

/* Cartes */
.gd-card { border: 1px solid var(--gd-border); border-radius: var(--gd-radius); padding: 18px 20px; height: 100%; background: var(--gd-bg, transparent); }
.gd-card h3 { font-size: 1.08rem; font-weight: 800; margin: 0 0 6px; }
.gd-card p { margin: 0; font-size: .97rem; line-height: 1.5; }
.gd-card ul { margin: 10px 0 0; padding-left: 1.1em; font-size: .95rem; }
.gd-badges .gd-card, .gd-steps .gd-card { text-align: left; }
.gd-steps .gd-card h3 { color: var(--gd-brand); }
.gd-sources .gd-card { border-top: 4px solid var(--gd-brand); }
.gd-cta { background: var(--gd-tint); border-radius: var(--gd-radius); padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); }
.gd-cta h2 { font-size: 1.4rem; }

/* Étapes numérotées */
.gd-timeline { counter-reset: gd; list-style: none; padding-left: 0; }
.gd-timeline > li { counter-increment: gd; position: relative; padding: 0 0 18px 52px; }
.gd-timeline > li::before { content: counter(gd); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--gd-brand); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.gd-timeline > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 2px; width: 2px; background: var(--gd-border); }

/* FAQ */
.gd-page .wp-block-details { border: 1px solid var(--gd-border); border-radius: 10px; padding: 12px 16px; margin: 0 0 10px; }
.gd-page .wp-block-details summary { font-weight: 700; cursor: pointer; }
.gd-page .wp-block-details[open] summary { color: var(--gd-brand); margin-bottom: 8px; }

/* Tableau des délais */
.gd-table-wrap { overflow-x: auto; }
.gd-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.gd-table th, .gd-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gd-border); }
.gd-table thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.gd-table tbody th { font-weight: 700; }

/* Formulaires */
.gd-form { display: grid; gap: 14px; max-width: 100%; }
.gd-row { display: grid; gap: 6px; margin: 0; }
.gd-row label, .gd-checks legend { font-weight: 600; font-size: .95rem; }
.gd-form input[type="text"], .gd-form input[type="email"], .gd-form input[type="tel"], .gd-form input[type="url"], .gd-form input[type="number"], .gd-form input[type="date"], .gd-form select, .gd-form textarea {
	box-sizing: border-box; max-width: 100%; width: 100%; padding: 11px 13px; border: 1px solid var(--gd-border); border-radius: 10px; font: inherit; background: var(--gd-bg, #fff); color: inherit;
}
.gd-form input:focus, .gd-form select:focus, .gd-form textarea:focus { border-color: var(--gd-brand); outline: 2px solid color-mix(in srgb, var(--gd-brand) 25%, transparent); }
.gd-checks { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.gd-checks legend { margin-bottom: 6px; width: 100%; }
.gd-checks label { font-weight: 400; }
.gd-consent label { font-weight: 400; font-size: .92rem; }
.gd-req { color: var(--gd-brand); }
.gd-btn { justify-self: start; background: var(--gd-brand); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 800; font-size: 1rem; cursor: pointer; }
.gd-btn:hover, .gd-btn:focus-visible { filter: brightness(.92); }
.gd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gd-alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; }
.gd-alert ul { margin: 0; padding-left: 1.1em; }
.gd-alert-ok { background: #edfaef; color: #0a5c1c; border: 1px solid #b8e6c2; }
.gd-alert-error { background: #fdf0f0; color: #8a1414; border: 1px solid #f2c2c2; }

/* Suivi */
.gd-track-result { margin-bottom: 20px; }
.gd-track-result h3 { color: var(--gd-brand); }
.gd-items, .gd-parcels { margin: 8px 0; padding-left: 1.1em; }

/* Contact et WhatsApp */
.gd-whatsapp { display: inline-flex; align-items: center; gap: 6px; background: #25D366; color: #08361b !important; font-weight: 800; padding: 10px 20px; border-radius: 999px; text-decoration: none !important; }
.gd-whatsapp-wrap { text-align: inherit; }
.gd-section .gd-whatsapp-wrap { text-align: center; }
.gd-contact .wp-block-list { list-style: none; padding-left: 0; }
.gd-contact .wp-block-list li { margin-bottom: 8px; }
.gd-missing { background: #fff4d6; color: #7a5300; border-radius: 4px; padding: 0 4px; font-size: .9em; }

/* Boutique */
.gd-origin { margin: 12px 0 16px; padding: 10px 14px; border-radius: 10px; background: var(--gd-tint); font-size: .95rem; line-height: 1.5; }
.gd-origin a { font-weight: 600; }
.gd-origin-sub { font-size: .88rem; opacity: .85; }
.gd-checkout-note { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--gd-tint); border-left: 4px solid var(--gd-brand); }

/* Pied de page */
.gd-footer { border-top: 4px solid var(--gd-brand); padding: 32px clamp(16px, 4vw, 40px) 18px; margin-top: 40px; }
.gd-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; max-width: 1200px; margin: 0 auto; }
.gd-footer-title { font-weight: 800; text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; color: var(--gd-brand); margin: 0 0 10px; }
.gd-footer ul { list-style: none; margin: 0; padding: 0; }
.gd-footer li { margin: 0 0 8px; }
.gd-footer a { text-decoration: none; color: inherit; opacity: .85; }
.gd-footer a:hover, .gd-footer a:focus-visible { opacity: 1; text-decoration: underline; }
.gd-footer-bottom { text-align: center; font-size: .85rem; opacity: .7; margin: 24px auto 0; max-width: 1200px; }

@media (max-width: 781px) {
	.gd-search form { flex-direction: column; }
	.gd-search button, .gd-search input[type="submit"] { padding: 12px; }
	.gd-btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
	.gd-page * { transition: none !important; }
}

/* Accueil : le titre « Accueil » du thème est masqué (le bandeau porte le vrai titre) */
body.home .wp-block-post-title,
body.home .entry-header .entry-title,
body.home h1.entry-title,
body.home .page-title { display: none; }
.gd-section > .wp-block-columns, .gd-section > .wp-block-group { max-width: 100%; }

/* Accueil anglais (/en/) : titre de page masqué comme sur l'accueil */
body.gd-home .wp-block-post-title,
body.gd-home .entry-header .entry-title,
body.gd-home h1.entry-title,
body.gd-home .page-title { display: none; }

/* Barre langue / devise */
.gd-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 6px clamp(16px, 4vw, 40px); background: var(--gd-brand); color: #fff; font-size: .85rem; }
.gd-topbar-msg { margin: 0; }
.gd-topbar .gd-switch { color: #fff; }
.gd-topbar .gd-switch.is-active { background: rgba(255, 255, 255, .22); }
.gd-switcher { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.gd-switch-group { display: inline-flex; gap: 2px; }
.gd-switch { display: inline-block; padding: 2px 8px; border-radius: 999px; text-decoration: none !important; color: inherit; line-height: 1.6; }
.gd-switch:hover, .gd-switch:focus-visible { text-decoration: underline !important; }
.gd-switch.is-active { font-weight: 700; background: var(--gd-tint); }
.gd-footer .gd-switcher { justify-content: center; margin: 20px auto 0; max-width: 1200px; font-size: .9rem; }
.gd-footer-bottom a { text-decoration: underline; }

/* Rétractation */
.gd-btn-withdraw { display: inline-block; text-decoration: none !important; }
.gd-withdrawal-start { margin: 8px 0 20px; }
.gd-withdrawal-form { border: 2px solid var(--gd-brand); border-radius: var(--gd-radius); padding: 18px clamp(14px, 3vw, 24px); margin-bottom: 20px; }
.gd-withdrawal-form h3 { margin-top: 0; }
.gd-model-form { background: var(--gd-soft); border-radius: 10px; padding: 14px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.7; }
.gd-withdraw-link { margin: 12px 0; }

/* Encadré des garanties légales (CGV) */
.gd-legal-box { border: 2px solid currentColor; border-radius: 6px; padding: 12px 18px; font-size: .95rem; }
.gd-legal-box p { margin: 0 0 10px; }

/* Sécurité du produit (GPSR) */
.gd-safety dl { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; gap: 8px 18px; margin: 0 0 12px; }
.gd-safety dt { font-weight: 700; }
.gd-safety dd { margin: 0; }
@media (max-width: 600px) { .gd-safety dl { grid-template-columns: 1fr; } .gd-safety dd { margin-bottom: 8px; } }
