/*
Theme Name: OA Marque – Délices d'Ô
Template: oa-marque
Author: Organic Alliance, DSI
Description: Déclinaison Délices d'Ô du thème commun OA Marque : couleurs, en-tête, pied de page, et la page unique propre à la marque (dans la logique des sites Via Bio, Bonval et Lait Plaisirs). Le reste vient du thème parent.
Version: 1.1.2
Requires at least: 6.6
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: oa-delices
*/

/* Version 1.1.0 (2026-11-10, retour de la com) : page unique, comme les sites Via Bio, Bonval et Lait Plaisirs.
   Logo centré sans bouton ; grande photo de fond ; texte et saumon en 50/50 ; formulaire centré sur fond coloré ;
   pied de page simplifié ; plus de fond blanc entre les sections. */

/* En-tête : logo centré, rien d'autre (page unique) */
.oa-header-delices .wp-block-site-logo img { width: auto; height: 96px; }
@media (max-width: 600px) { .oa-header-delices .wp-block-site-logo img { height: 72px; } }

/* Sections collées les unes aux autres : aucune bande blanche entre elles */
.wp-block-post-content > .oa-dl-hero, .wp-block-post-content > .oa-dl-presentation, .wp-block-post-content > .oa-dl-contact { margin-block: 0 !important; }

/* 1. Grande photo de fond, bouton de contact au centre */
.oa-dl-hero { position: relative; }
.oa-dl-hero-photo { margin: 0 !important; }
.oa-dl-hero-photo img { width: 100%; height: clamp(360px, 62vh, 640px); object-fit: cover; object-position: 40% 72%; display: block; }
.oa-dl-hero-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0 !important; }
.oa-dl-hero-cta .wp-block-button__link { white-space: nowrap; padding: 16px 34px; font-size: 1.25rem; box-shadow: 0 6px 18px rgba(12, 39, 69, .35); }

/* 2. Présentation : texte centré à gauche sur fond de la marque, saumon sur toute la moitié droite */
.oa-dl-presentation { gap: 0 !important; background: var(--wp--preset--color--primary); }
.oa-dl-texte { padding: clamp(40px, 6vw, 96px) clamp(24px, 6vw, 96px); text-align: center; color: var(--wp--preset--color--white); }
.oa-dl-texte h1 { color: var(--wp--preset--color--white); margin-top: 0; }
.oa-dl-texte p { font-size: 1.125rem; line-height: 1.6; color: #eef4fb; max-width: 34em; margin-inline: auto; }
.oa-dl-photo { align-self: stretch !important; }
.oa-dl-photo figure { height: 100%; margin: 0 !important; }
.oa-dl-photo img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; display: block; }
@media (max-width: 781px) { .oa-dl-photo img { min-height: 260px; } }

/* 3. Contact : formulaire centré sur fond coloré, assiette en décor au bord droit sur grand écran */
.oa-dl-contact { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px); background: color-mix(in srgb, var(--wp--preset--color--secondary) 55%, var(--wp--preset--color--white)); }
.oa-dl-carte { position: relative; z-index: 1; box-shadow: 0 10px 30px rgba(12, 39, 69, .12); }
.oa-dl-carte h2 { color: var(--wp--preset--color--primary); font-size: 1.625rem; margin-top: 0; }
.oa-dl-assiette { position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0 !important; z-index: 0; }
.oa-dl-assiette img { height: min(80vh, 680px); width: auto; display: block; }
@media (max-width: 1240px) { .oa-dl-assiette { display: none; } }

/* Formulaire : le groupe conditionnel « Professionnel » occupe toute la largeur */
.oa-form-grid > [data-class="wpcf7cf_group"] { grid-column: 1 / -1; }
/* Bloc « Professionnel » : l'extension des champs conditionnels le marque caché (classe wpcf7cf-hidden) quand on décoche,
   sans toujours finir de le replier ; on le masque d'office (constaté le 2026-11-10) */
.wpcf7cf-hidden { display: none !important; }

/* Pied de page simplifié : groupe, mentions légales, logos bio */
.oa-footer-delices { padding-block: 36px; }
.oa-dl-pied { gap: 24px 48px; }
.oa-dl-groupe { display: flex; flex-direction: column; gap: 8px; }
.oa-dl-groupe > * { margin: 0 !important; }
.oa-footer-delices .oa-slogan { font-size: .95rem; color: var(--wp--preset--color--white); }
.oa-logo-groupe { margin: 0; flex-shrink: 0; }
.oa-logo-groupe img { width: 150px; height: auto; display: block; }
.oa-dl-mentions { margin: 0 !important; }
.oa-dl-mentions a { display: inline-block; padding: 10px 22px; border: 2px solid var(--wp--preset--color--secondary); border-radius: 6px; color: var(--wp--preset--color--white); text-decoration: none; font-family: var(--wp--preset--font-family--titres); font-weight: 600; }
.oa-dl-mentions a:hover, .oa-dl-mentions a:focus-visible { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--deep); }
.oa-footer-delices .oa-logos-bio img { width: 150px; border-radius: 6px; }
@media (max-width: 600px) { .oa-dl-pied { flex-direction: column; align-items: center !important; text-align: center; } .oa-dl-groupe { align-items: center; } }

/* Lien « Gérer les cookies » du pied de page (1.1.2) : remplace la barre « Modifier mon choix » qui restait en bas de l'écran */
.oa-dl-liens { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.oa-dl-liens > * { margin: 0 !important; }
.oa-dl-cookies a.oa-lien-cookies { color: var(--wp--preset--color--white); font-size: .9rem; text-decoration: underline; background: none; border: 0; padding: 0; }
