/*
Theme Name: Terrestres – Soutenir
Theme URI: https://soutenir.terrestres.org
Description: Thème enfant d'Ollie pour la campagne de dons de Terrestres (Socle Dons / soutenir.media).
Template: ollie
Version: 1.0.4
Requires at least: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: terrestres-soutenir
*/

/* Ancres : laisser un peu d'air au-dessus des sections ciblées. */
:where(#formulaire, #zut) { scroll-margin-top: 1.5rem; }

/* Séparateurs obliques (reprise des « slant2 » de Divi). */
.is-style-terrestres-slant-top { clip-path: polygon(0 3rem, 100% 0, 100% 100%, 0 100%); padding-top: calc(3rem + var(--wp--preset--spacing--medium)) !important; }
.is-style-terrestres-slant-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 0 100%); padding-bottom: calc(3rem + var(--wp--preset--spacing--medium)) !important; }
.is-style-terrestres-slant-both { clip-path: polygon(0 3rem, 100% 0, 100% calc(100% - 3rem), 0 100%); padding-top: calc(3rem + var(--wp--preset--spacing--medium)) !important; padding-bottom: calc(3rem + var(--wp--preset--spacing--medium)) !important; }

/* Bandeau : la carte translucide reste lisible sur l'illustration. */
.terrestres-hero .terrestres-hero__card { backdrop-filter: blur(2px); }
.terrestres-hero .wp-block-cover__image-background { object-position: 50% 100%; }

/* Légendes de crédits. */
.terrestres-credit { font-family: var(--wp--preset--font-family--quicksand); font-size: 10px; line-height: 1.4; margin-block: .25rem 0; }

/* Widget Socle Dons : l'iframe prend toute la largeur de sa colonne. */
.socle-dons { width: 100%; }
.socle-dons iframe { display: block; width: 100%; }

/* FAQ en blocs Détails. */
.terrestres-faq .wp-block-details { border: 1px solid var(--wp--preset--color--border-light); border-radius: 8px; padding: .9rem 1.1rem; background: var(--wp--preset--color--base); }
.terrestres-faq .wp-block-details + .wp-block-details { margin-top: .75rem; }
.terrestres-faq .wp-block-details summary { font-family: var(--wp--preset--font-family--quicksand); font-weight: 600; font-size: 1.2rem; cursor: pointer; }
.terrestres-faq .wp-block-details[open] summary { margin-bottom: .75rem; }


/* Titre du bandeau : blanc, détaché de l'illustration sombre par une ombre. */
.terrestres-hero .terrestres-hero__title { text-shadow: 0 2px 4px rgba(0,0,0,.85), 0 0 24px rgba(0,0,0,.7); }
/*
 * Titre : « refuser le futur technofasciste » tient sur une ligne.
 * Cette ligne mesure 12,35 em en Anton : la taille suit la largeur disponible.
 */
.terrestres-hero .terrestres-hero__title { font-size: min(7vw, 3.75rem); }
.terrestres-nowrap { white-space: nowrap; }

/* Mobile : bandeau plus compact pour arriver vite au formulaire, titre plus grand. */
@media (max-width: 599px) {
	.terrestres-hero.wp-block-cover { min-height: 0 !important; padding: 1.75rem 16px 2rem !important; }
	.terrestres-hero .terrestres-hero__title { font-size: calc(8vw - 3px); margin-bottom: 1.25rem !important; }
	.terrestres-hero .terrestres-hero__card { padding: 1.25rem 1.1rem !important; }
	.terrestres-hero .terrestres-hero__card .wp-block-buttons { margin-top: 1rem !important; }
	#formulaire { padding-top: 1rem !important; }
}

/* Jauge des donateur·ices régulier·es (sans montants). */
.terrestres-jauge { max-width: 560px; margin-inline: auto; text-align: center; font-family: var(--wp--preset--font-family--quicksand); }
.terrestres-jauge p { margin: 0; }
.terrestres-jauge__titre { font-family: var(--wp--preset--font-family--anton); font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.15; }
.terrestres-jauge__compte { margin-top: .35rem !important; font-size: 1.05rem; font-weight: 600; }
.terrestres-jauge__compte strong { font-family: var(--wp--preset--font-family--anton); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--wp--preset--color--primary); margin-right: .2em; }
.terrestres-jauge__barre { height: 18px; margin-top: .75rem; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border-light); border-radius: 999px; overflow: hidden; }
.terrestres-jauge__barre span { display: block; height: 100%; min-width: 18px; background: var(--wp--preset--color--primary); border-radius: inherit; }
.terrestres-jauge__reste { margin-top: .6rem !important; font-size: .95rem; font-weight: 500; color: var(--wp--preset--color--secondary); }
