/*
 * Refonte 2026 : blocs « fp-* » utilisés par les nouvelles pages (tools/v2/pages.py).
 * Couleurs et polices du kit Grain Grower (variables globales Elementor).
 */
:root {
	--fp-green: var(--e-global-color-primary, #4A9135);
	--fp-yellow: var(--e-global-color-secondary, #E6D54F);
	--fp-dark: var(--e-global-color-accent, #3E483C);
	--fp-ink: #3f4a3d;
	--fp-cream: #F7F0EA;
	--fp-line: #E2E4E2;
	--fp-hand: "Sue Ellen Francisco", cursive;
	--fp-sans: "Open Sans", sans-serif;
}

/* --- Sections --------------------------------------------------------------------------- */
.fp-section, .fp-split, .fp-cards, .fp-band { padding: 90px 0; }
.fp-section--tight { padding: 0 0 40px; }
.fp-section--tight-bottom { padding-bottom: 10px; }
.fp-cards { padding-top: 10px; }
.fp-section--cream, .fp-band { background: var(--fp-cream); }
.fp-split + .fp-split:not(.fp-section--cream) { padding-top: 0; }
.fp-narrow > .elementor-container { max-width: 900px; }
.fp-center { text-align: center; }
.fp-split .fp-col > .elementor-widget-wrap { align-content: center; }
.fp-split .fp-col > .elementor-widget-wrap { padding: 10px 30px !important; }

/* Photo à droite une fois sur deux (ordre visuel inversé sur grand écran) */
@media (min-width: 768px) {
	.fp-split--reverse > .elementor-container { flex-direction: row-reverse; }
}

/* --- Titres et textes --------------------------------------------------------------------- */
.fp-kicker .elementor-heading-title {
	color: var(--fp-green);
	font-family: var(--fp-sans);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 6px;
	text-transform: uppercase;
	line-height: 1.6;
	margin-bottom: 6px;
}
.fp-title .elementor-heading-title {
	color: var(--fp-dark);
	font-family: var(--fp-hand);
	font-size: 52px;
	font-weight: 400;
	line-height: 1.15;
	margin-bottom: 18px;
}
.fp-subtitle .elementor-heading-title { font-family: var(--fp-hand); font-size: 34px; color: var(--fp-green); font-weight: 400; }
.fp-text, .fp-text p, .fp-text li, .fp-text td, .fp-text th { color: var(--fp-ink); font-family: var(--fp-sans); font-size: 17px; line-height: 1.75; }
.fp-text p:last-child { margin-bottom: 0; }
.fp-text a { color: var(--fp-green); text-decoration: underline; text-underline-offset: 3px; }
.fp-text h2 { font-family: var(--fp-hand); font-size: 40px; color: var(--fp-dark); font-weight: 400; margin: 36px 0 10px; }
.fp-text h3 { font-family: var(--fp-sans); font-size: 18px; font-weight: 700; color: var(--fp-dark); margin: 22px 0 6px; }
.fp-center .fp-text > .elementor-widget-container { max-width: 760px; margin-left: auto; margin-right: auto; }
.fp-center .fp-text:has(.fp-senses) > .elementor-widget-container, .fp-center .fp-text:has(.fp-stats) > .elementor-widget-container { max-width: none; }
.fp-title--light .elementor-heading-title, .fp-text.fp-text--light, .fp-text.fp-text--light p { color: #fff; }

/* --- Boutons ------------------------------------------------------------------------------ */
.fp-btn, .fp-link { margin: 18px 12px 0 0; }
.fp-btn .elementor-button {
	background: var(--fp-green);
	border: 2px solid var(--fp-green);
	border-radius: 40px;
	color: #fff;
	font-family: var(--fp-sans);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .5px;
	padding: 15px 30px;
	text-decoration: none !important;
	transition: background .2s, color .2s, border-color .2s;
}
.fp-btn .elementor-button *, .fp-link .elementor-button * { text-decoration: none !important; }
.fp-btn .elementor-button:hover, .fp-btn .elementor-button:focus { background: var(--fp-dark); border-color: var(--fp-dark); color: #fff; }
.fp-btn--outline .elementor-button { background: transparent; color: var(--fp-green); }
.fp-btn--outline .elementor-button:hover { background: var(--fp-green); border-color: var(--fp-green); color: #fff; }
.fp-btn--light .elementor-button { background: var(--fp-yellow); border-color: var(--fp-yellow); color: var(--fp-dark); }
.fp-btn--light .elementor-button:hover { background: #fff; border-color: #fff; color: var(--fp-dark); }
.fp-link .elementor-button {
	background: none; border: 0; padding: 0; border-radius: 0;
	color: var(--fp-green); font-family: var(--fp-sans); font-size: 15px; font-weight: 700;
	border-bottom: 2px solid var(--fp-yellow);
	text-decoration: none !important;
}
.fp-link .elementor-button::after { content: " →"; }
.fp-link .elementor-button:hover { color: var(--fp-dark); background: none; }

/* --- Bandeau d'accueil -------------------------------------------------------------------- */
.elementor-section.fp-hero { margin-top: -152px; }
.fp-hero > .elementor-container { max-width: 1000px; }
.fp-hero > .elementor-container > .elementor-column > .elementor-widget-wrap { justify-content: center; text-align: center; padding-top: 120px; }
.fp-hero__title .elementor-heading-title, .fp-hero__text p { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.fp-hero__title .elementor-heading-title { color: #fff; font-family: var(--fp-hand); font-size: 110px; font-weight: 400; line-height: 1; }
.fp-hero__text, .fp-hero__text p { color: #fff; font-family: var(--fp-sans); font-size: 22px; line-height: 1.5; margin-top: 10px; width: 100%; }
.fp-hero__badge { width: 100%; }
.fp-badge {
	display: inline-block; margin-top: 18px; padding: 6px 18px; border-radius: 30px;
	background: var(--fp-yellow); color: var(--fp-dark); font-family: var(--fp-sans); font-weight: 700; font-size: 15px;
	letter-spacing: 1px; text-transform: uppercase;
}
.fp-hero .fp-btn { margin: 26px 8px 0; }

/* Sous-titre facultatif dans les bandeaux des pages intérieures */
.fp-banner-sub, .fp-banner-sub p { color: #fff; font-size: 20px; text-align: center; width: 100%; }

/* --- Photos ------------------------------------------------------------------------------- */
.fp-photo img, .fp-card__photo img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 14px 34px rgba(37, 44, 36, .14);
}
.fp-photo--tall img { aspect-ratio: 4 / 5; }

/* --- Chiffres clés ------------------------------------------------------------------------ */
.fp-band { padding: 50px 0; }
.fp-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.fp-stat__num { display: block; font-family: var(--fp-hand); font-size: 58px; line-height: 1.1; color: var(--fp-green); }
.fp-stat__label { display: block; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--fp-dark); }
.fp-section--cream .fp-stats { margin: 10px 0 30px; }

/* --- Cartes (offres) ---------------------------------------------------------------------- */
.fp-card > .elementor-widget-wrap {
	background: #fff;
	border: 1px solid var(--fp-line);
	border-radius: 8px;
	margin: 0 6px;
	padding: 0 0 28px !important;
	overflow: hidden;
	align-content: flex-start;
	box-shadow: 0 10px 30px rgba(37, 44, 36, .07);
}
.fp-card .fp-card__photo img { border-radius: 0; box-shadow: none; aspect-ratio: 3 / 2; }
.fp-card .elementor-widget:not(.fp-card__photo) { padding: 0 26px; }
.fp-card__title .elementor-heading-title { font-family: var(--fp-hand); font-size: 34px; color: var(--fp-dark); font-weight: 400; line-height: 1.15; margin-top: 8px; }
.fp-card .fp-text p { font-size: 16px; }
.fp-card .fp-link { margin: 6px 0 0; }

/* --- Galerie ------------------------------------------------------------------------------ */
.fp-gallery .gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.fp-gallery .gallery-item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.fp-gallery .gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border: 0 !important; border-radius: 6px; }
.fp-gallery .gallery br { display: none; }

/* --- Listes ------------------------------------------------------------------------------- */
.fp-papa { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; }
.fp-papa li { font-size: 16px; }
.fp-papa strong { font-family: var(--fp-hand); font-size: 30px; color: var(--fp-green); font-weight: 400; margin-right: 4px; }

.fp-timeline { list-style: none; padding: 0 0 0 26px; margin: 10px 0 0; border-left: 3px solid var(--fp-yellow); }
.fp-timeline li { position: relative; padding: 0 0 16px; }
.fp-timeline li::before {
	content: ""; position: absolute; left: -35px; top: 8px; width: 15px; height: 15px; border-radius: 50%;
	background: var(--fp-green); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--fp-green);
}
.fp-timeline strong { color: var(--fp-green); }

.fp-check { list-style: none; padding: 0; margin: 0; }
.fp-check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.fp-check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--fp-green); font-weight: 700; }

/* --- Sommaire ----------------------------------------------------------------------------- */
.fp-toc { background: var(--fp-cream); border-left: 4px solid var(--fp-green); border-radius: 6px; padding: 22px 26px; margin-top: 10px; }
.fp-section--cream .fp-toc { background: #fff; }
.fp-toc__title { font-weight: 700; text-transform: uppercase; letter-spacing: 3px; font-size: 13px !important; color: var(--fp-green) !important; margin: 0 0 8px; }
.fp-toc ol { margin: 0; padding-left: 20px; }
.fp-toc li { font-size: 16px !important; line-height: 1.6 !important; }
.fp-toc a { text-decoration: none !important; color: var(--fp-dark) !important; }
.fp-toc a:hover { color: var(--fp-green) !important; }
[id] { scroll-margin-top: 30px; }

/* --- Ateliers / valeurs (cartes texte) ---------------------------------------------------- */
.fp-senses { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 20px; text-align: left; }
.fp-senses--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-left: auto; margin-right: auto; }
.fp-senses--4 { grid-template-columns: repeat(4, 1fr); }
.fp-sense { background: #fff; border-radius: 8px; padding: 24px 22px; border-top: 4px solid var(--fp-green); box-shadow: 0 8px 24px rgba(37, 44, 36, .06); }
.fp-sense h3 { font-family: var(--fp-hand) !important; font-size: 32px !important; font-weight: 400 !important; color: var(--fp-dark) !important; margin: 0 0 8px !important; line-height: 1.1; }
.fp-sense p { font-size: 15px !important; line-height: 1.6 !important; }
.fp-letter { color: var(--fp-green); font-size: 44px; }
.fp-center .fp-senses { max-width: none; }

/* --- Tableau infos pratiques -------------------------------------------------------------- */
.fp-table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; background: #fff; border-radius: 8px; overflow: hidden; }
.fp-table th, .fp-table td { padding: 14px 18px; border-bottom: 1px solid var(--fp-line); text-align: left; vertical-align: top; }
.fp-table th { width: 34%; background: var(--fp-cream); color: var(--fp-dark) !important; font-weight: 700; }
.fp-table tr:last-child th, .fp-table tr:last-child td { border-bottom: 0; }

/* --- Questions fréquentes ----------------------------------------------------------------- */
.fp-faq__item { background: #fff; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 4px 14px rgba(37, 44, 36, .05); }
.fp-faq__item summary { cursor: pointer; list-style: none; padding: 18px 50px 18px 22px; position: relative; }
.fp-faq__item summary::-webkit-details-marker { display: none; }
.fp-faq__item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--fp-green); }
.fp-faq__item[open] summary::after { content: "–"; }
.fp-faq__item summary h3 { display: inline; margin: 0 !important; font-size: 17px !important; }
.fp-faq__item > div { padding: 0 22px 18px; }

/* --- Citation ----------------------------------------------------------------------------- */
.fp-quote { margin: 26px 0 0; padding: 22px 28px; background: var(--fp-cream); border-left: 4px solid var(--fp-yellow); border-radius: 6px; }
.fp-quote p { font-family: var(--fp-hand) !important; font-size: 30px !important; line-height: 1.3 !important; color: var(--fp-dark) !important; }
.fp-quote cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--fp-green); }

/* --- Bandeau d'appel à l'action ----------------------------------------------------------- */
.fp-cta { background: var(--fp-green); padding: 70px 0; text-align: center; }
.fp-cta .elementor-widget-wrap { justify-content: center; }
.fp-cta .fp-title, .fp-cta .fp-text { width: 100%; }
.fp-cta .fp-text p { font-size: 19px; max-width: 700px; margin: 0 auto; }

/* --- Contact ------------------------------------------------------------------------------ */
.fp-contact { list-style: none; padding: 0; margin: 20px 0 0; }
.fp-contact li { padding: 14px 0; border-bottom: 1px solid var(--fp-line); }
.fp-contact__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--fp-green); }
.fp-form-col > .elementor-widget-wrap { background: var(--fp-cream); border-radius: 8px; padding: 34px !important; }
.wpcf7-form select {
	width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--e-global-color-3930d4a, #E2E4E2);
	border-radius: 4px; font: inherit; font-weight: 400; background: #fff;
}
.wpcf7-form input[type="tel"] { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #E2E4E2; border-radius: 4px; font: inherit; font-weight: 400; background: #fff; }
.wpcf7-form input[type="submit"] {
	background: var(--fp-green); color: #fff; border: 0; border-radius: 40px; padding: 15px 34px; font-weight: 700; font-size: 15px;
}
.wpcf7-form input[type="submit"]:hover { background: var(--fp-dark); }
.fp-map iframe { display: block; }

/* --- Mentions légales --------------------------------------------------------------------- */
.fp-legal h2:first-child { margin-top: 0; }

/* --- Tablette et mobile ------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.fp-senses { grid-template-columns: repeat(2, 1fr); }
	.fp-stats { grid-template-columns: repeat(3, 1fr); }
	.fp-hero__title .elementor-heading-title { font-size: 84px; }
}
@media (max-width: 767px) {
	.fp-section, .fp-split, .fp-cards { padding: 56px 0; }
	.fp-split + .fp-split:not(.fp-section--cream) { padding-top: 0; }
	.fp-split .fp-col > .elementor-widget-wrap { padding: 10px 16px !important; }
	.fp-title .elementor-heading-title { font-size: 40px; }
	.fp-hero__title .elementor-heading-title { font-size: 64px; }
	.fp-hero__text, .fp-hero__text p { font-size: 18px; }
	.fp-hero > .elementor-container > .elementor-column > .elementor-widget-wrap { padding-top: 140px; }
	.fp-stats { grid-template-columns: repeat(2, 1fr); }
	.fp-stat__num { font-size: 46px; }
	.fp-senses, .fp-senses--2, .fp-senses--4 { grid-template-columns: 1fr; }
	.fp-gallery .gallery { grid-template-columns: repeat(2, 1fr); }
	.fp-card > .elementor-widget-wrap { margin: 0 0 20px; }
	.fp-papa { grid-template-columns: 1fr; }
	.fp-table th { width: 40%; }
	.fp-form-col > .elementor-widget-wrap { padding: 22px !important; }
}

/* --- En-tête : le menu a 6 entrées depuis la refonte ---------------------------------------
   L'en-tête d'origine est en 3 colonnes égales (logo / menu / colonne vide) : sur grand écran,
   le menu prend la place de la colonne vide et les intitulés ne se coupent plus. */
.elementor-343 .tf-nav-menu .menu > li > a { white-space: nowrap; }
@media (min-width: 1025px) {
	body .elementor-343 .elementor-element.elementor-element-e4fce83 { width: 18% !important; }
	body .elementor-343 .elementor-element.elementor-element-ac09115 { width: 82% !important; overflow: hidden; }
	body .elementor-343 .elementor-element.elementor-element-4d91d8dd { display: none; }
}
@media (min-width: 1025px) and (max-width: 1400px) {
	.elementor-343 .tf-nav-menu .menu > li > a { padding-left: 12px !important; padding-right: 12px !important; font-size: 22px !important; }
}

/* --- Ajouts du 17/11 : photos de drone et page « Notre ferme pédagogique à Challans » -------- */
.fp-section--photo { padding: 0 0 70px; }
.fp-photo--wide img { aspect-ratio: 21 / 9; }
.fp-title--h3 .elementor-heading-title { font-size: 40px; margin-bottom: 12px; }
.fp-text .fp-lead, .fp-lead { font-size: 19px !important; line-height: 1.7 !important; color: var(--fp-dark) !important; }
.fp-sense h4 { font-family: var(--fp-hand) !important; font-size: 30px !important; font-weight: 400 !important; color: var(--fp-dark) !important; margin: 0 0 8px !important; line-height: 1.1; }
.fp-center .fp-senses + p, .fp-center .fp-text p { text-align: center; }
.fp-center .fp-sense p { text-align: left; }
.fp-btn--ghost .elementor-button { background: transparent; border-color: #fff; color: #fff; }
.fp-btn--ghost .elementor-button:hover { background: #fff; border-color: #fff; color: var(--fp-dark); }
@media (max-width: 767px) {
	.fp-section--photo { padding-bottom: 40px; }
	.fp-photo--wide img { aspect-ratio: 4 / 3; }
	.fp-title--h3 .elementor-heading-title { font-size: 32px; }
}
.fp-center .elementor-widget-text-editor, .fp-center .elementor-widget-heading { width: 100%; }
.fp-center > .elementor-widget-wrap { justify-content: center; }

/* Paragraphes Elementor v4 ajoutés à la main : « display:flex » colle les liens au texte (espaces supprimés). */
.elementor p.e-paragraph-base, .elementor .e-heading-base { display: block !important; }
body:not(.home) .elementor p.e-paragraph-base { text-align: center; }
