/*
Theme Name: Emily Daumont – Conseil conjugal et familial
Theme URI: https://emilydaumont-conseilconjugal.fr/
Description: Thème enfant de Twenty Twenty-Five pour le cabinet d'Emily Daumont, conseillère conjugale et familiale à Saint-Mandé. Couleurs et polices du site d'origine, polices hébergées localement, aucun appel tiers.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.2
Text Domain: emily-daumont-child
License: GPL-2.0-or-later
*/

/* ------------------------------------------------------------------
   Ce fichier ne contient que ce que theme.json ne sait pas faire.
   ------------------------------------------------------------------ */

/* Texte réservé aux lecteurs d'écran */
.edcc-lecteur-ecran {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Focus clavier bien visible partout */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--terracotta);
	outline-offset: 2px;
}

/* ---------- En-tête ---------- */
.edcc-entete a { color: inherit; }
.edcc-entete .wp-block-site-title a { text-decoration: none; }
.edcc-entete .wp-block-site-tagline { margin: 0; }
.edcc-entete .wp-block-navigation a { text-decoration: none; }
.edcc-entete .wp-block-navigation a:hover,
.edcc-entete .wp-block-navigation a:focus { text-decoration: underline; }
.edcc-entete .wp-block-navigation__submenu-container { color: var(--wp--preset--color--contrast); }

/* Menu « hamburger » jusqu'à 1023 px (le cœur de WordPress s'arrête à 600 px),
   ce qui supprime le débordement de l'en-tête vers 800 px. */
@media (min-width: 600px) and (max-width: 1023px) {
	.edcc-entete .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.edcc-entete .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
/* Sous 1024 px, le bouton de l'en-tête laisse la place au menu (le lien « Prendre rendez-vous » y figure). */
@media (max-width: 1023px) {
	.edcc-entete .wp-block-buttons.edcc-entete-rdv { display: none; }
	.edcc-entete .wp-block-site-title { font-size: 1.3rem; }
	.edcc-entete .wp-block-site-tagline { font-size: 0.85rem; }
}
@media (min-width: 1024px) {
	.edcc-entete .wp-block-navigation-item.edcc-menu-rdv { display: none; } /* déjà présent sous forme de bouton */
}
.edcc-entete .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-5);
}
.edcc-entete .is-menu-open .wp-block-navigation__submenu-container { color: inherit; }

/* ---------- Cartes « publics » ---------- */
.edcc-carte { height: 100%; }
.edcc-carte .wp-block-image { margin: 0; }
.edcc-carte .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 4px 4px 0 0; }
.edcc-carte h3 a { text-decoration: none; color: inherit; }
.edcc-carte h3 a::after { content: " →"; }
.edcc-carte h3 a:hover { text-decoration: underline; }

/* ---------- Témoignages ---------- */
.edcc-temoignages .wp-block-quote { margin: 0; height: 100%; }
.edcc-temoignages .wp-block-quote cite {
	font-style: normal;
	font-family: var(--wp--preset--font-family--roboto-condensed);
	font-weight: 700;
	color: var(--wp--preset--color--vert-clair);
}

/* ---------- FAQ (blocs Détails) ---------- */
.wp-block-details summary {
	cursor: pointer;
	font-family: var(--wp--preset--font-family--roboto-condensed);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--wp--preset--color--accent-3);
}
.wp-block-details[open] summary { margin-bottom: 0.5rem; }

/* ---------- Tableau des tarifs ---------- */
.wp-block-table th { text-align: left; }
.wp-block-table td, .wp-block-table th { padding: 0.6rem 0.75rem; border-color: var(--wp--preset--color--accent-6); }

/* ---------- Encadrés ---------- */
.edcc-encadre { border-left: 4px solid var(--wp--preset--color--ocre); }

/* Mentions « [À COMPLÉTER] » : surlignées pour la relecture d'Emily */
mark.edcc-a-completer { background: #FFE58A; color: #1F2A2A; padding: 0 0.2em; }

/* ---------- Pied de page ---------- */
.edcc-pied a { color: inherit; }
.edcc-pied p { margin-block: 0.25rem; }

/* ---------- Agenda Google chargé au clic ---------- */
.edcc-agenda-cadre iframe { width: 100%; height: 720px; border: 0; background: #fff; }

/* ---------- Formulaire de contact (Contact Form 7) ---------- */
.wpcf7-form p { margin: 0 0 1.1rem; }
.wpcf7-form p > br { display: none; } /* retour à la ligne ajouté automatiquement par Contact Form 7 */
.wpcf7-form label { display: block; font-weight: 600; }
.wpcf7-form .edcc-aide { display: block; font-weight: 400; font-size: 0.95rem; color: var(--wp--preset--color--accent-4); }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	display: block;
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.65rem 0.75rem;
	font: inherit;
	font-weight: 400;
	color: var(--wp--preset--color--contrast);
	background: #fff;
	border: 1px solid #6B7676;
	border-radius: 4px;
}
.wpcf7-form textarea { min-height: 9rem; }
.wpcf7-form input[type="submit"] {
	font-family: var(--wp--preset--font-family--roboto-condensed);
	font-size: 1.1rem; font-weight: 700;
	padding: 0.75rem 1.6rem;
	color: #fff; background: var(--wp--preset--color--accent-1);
	border: 0; border-radius: 4px; cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover { background: var(--wp--preset--color--accent-3); }
.wpcf7-not-valid-tip { color: #9B2C1C; font-size: 0.95rem; font-weight: 600; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: 0.75rem 1rem; border-width: 2px; }
.edcc-rgpd { font-size: 0.95rem; color: var(--wp--preset--color--accent-4); }

/* Champ piège anti-spam : hors écran, ignoré des lecteurs d'écran */
.edcc-piege { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
