/*
Theme Name: ESPACE 26 (Elementor)
Description: Thème sur mesure pour ESPACE 26, à utiliser avec Elementor. Les pages se modifient dans Elementor ; le menu dans Apparence › Menus ; le pied de page (textes, réseaux sociaux) dans Apparence › Personnaliser › ESPACE 26 — Pied de page.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Author: ESPACE 26
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: espace26-elementor
*/

/* Polices (hébergées sur le site) ---------------------------------------- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: italic; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/fonts/jost-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url(assets/fonts/jost-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-style: normal; font-display: swap; src: url(assets/fonts/jost-latin-600-normal.woff2) format("woff2"); }

/* Couleurs (mêmes noms que la version WordPress, utilisés par l'extension) */
:root {
	--wp--preset--color--ivoire: #F5F2EC;
	--wp--preset--color--blanc: #FFFFFF;
	--wp--preset--color--brun: #302B27;
	--wp--preset--color--grege: #D4CEC4;
	--wp--preset--color--terre-cuite: #A56349;
	--wp--preset--font-family--cormorant: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--wp--preset--font-family--jost: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	--e26-marge: clamp(1.25rem, 4vw, 3.5rem);
	--e26-large: 1320px;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: #F5F2EC; color: #302B27;
	font-family: var(--wp--preset--font-family--jost); font-size: 1.0625rem; line-height: 1.7;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { color: #A56349; }
::selection { background: #A56349; color: #fff; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--wp--preset--font-family--cormorant); font-weight: 400; line-height: 1.12; color: inherit; margin: 0 0 .6em; }
h1 { font-size: clamp(2.5rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.375rem); font-weight: 500; }
p { margin: 0 0 1em; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.e26-skip:focus { clip: auto; clip-path: none; height: auto; width: auto; background: #302B27; color: #fff; padding: .75rem 1rem; z-index: 100; left: 1rem; top: 1rem; }
.e26-wrap { max-width: calc(var(--e26-large) + 2 * var(--e26-marge)); margin: 0 auto; padding: 0 var(--e26-marge); }

/* En-tête ---------------------------------------------------------------- */
.e26-header { border-bottom: 1px solid #D4CEC4; background: #F5F2EC; position: relative; z-index: 50; }
.e26-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.e26-brand { display: flex; align-items: center; gap: .9rem; }
.e26-brand .custom-logo { max-height: 56px; width: auto; display: block; }
.e26-site-title { font-family: var(--wp--preset--font-family--cormorant); font-size: 1.9rem; font-weight: 500; line-height: 1; letter-spacing: .02em; text-decoration: none; }
.e26-site-title:hover { color: inherit; }
.e26-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.9rem; }
.e26-menu a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.e26-menu a:hover, .e26-menu .current-menu-item > a, .e26-menu .current_page_item > a { text-decoration: underline; text-underline-offset: .5em; color: inherit; }
.e26-menu .sub-menu { display: none; }
.e26-burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: inherit; }
.e26-burger span[aria-hidden] { display: block; width: 24px; height: 1px; background: currentColor; margin: 6px 0; transition: transform .25s; }
@media (max-width: 960px) {
	.e26-burger { display: block; }
	.e26-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #F5F2EC; border-bottom: 1px solid #D4CEC4; padding: 1.5rem var(--e26-marge) 2rem; }
	.e26-menu-ouvert .e26-nav { display: block; }
	.e26-menu { flex-direction: column; gap: 1.1rem; }
	.e26-menu a { font-size: .95rem; }
	.e26-menu-ouvert .e26-burger span[aria-hidden]:nth-of-type(1) { transform: translateY(3.5px) rotate(45deg); }
	.e26-menu-ouvert .e26-burger span[aria-hidden]:nth-of-type(2) { transform: translateY(-3.5px) rotate(-45deg); }
}

/* Pages hors Elementor ---------------------------------------------------- */
.e26-page { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(4rem, 9vw, 8rem); }
.e26-page-titre { border-bottom: 1px solid #D4CEC4; padding-bottom: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: clamp(3rem, 6vw, 5rem); }
.e26-page-titre h1 { margin: 0; }
.e26-page-titre--actus { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: end; }
.e26-page-titre--actus .e26-lead { margin-top: 1rem; }
@media (max-width: 782px) { .e26-page-titre--actus { grid-template-columns: 1fr; } }
.e26-contenu { max-width: 760px; margin: 0 auto; }
.e26-lead { font-family: var(--wp--preset--font-family--cormorant); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.35; }

/* Actualités */
.e26-actus { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: clamp(2rem, 4vw, 3.25rem); }
.e26-actu__media { display: block; text-decoration: none; }
.e26-actu__media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.e26-actu__media .e26-media { margin: 0; }
.e26-date { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #A56349; margin: 1.1rem 0 .35rem; }
.e26-actu__titre { font-size: 1.65rem; font-weight: 500; }
.e26-actu__titre a { text-decoration: none; }
.e26-actu__titre a:hover { text-decoration: underline; color: inherit; }
.e26-pagination { margin-top: 4rem; }
.e26-pagination .nav-links { display: flex; gap: 1rem; justify-content: space-between; }
.e26-article__tete { max-width: 760px; margin: 0 auto; }
.e26-article__image { margin: clamp(2rem, 4vw, 3.25rem) 0; }
.e26-article__image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.e26-encart { max-width: 760px; margin: clamp(3rem, 6vw, 5rem) auto 2rem; background: #fff; padding: clamp(2rem, 4vw, 3.25rem); }
.e26-article > .e26-lien-fleche { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Fiches œuvre / événement / projet */
.e26-fiche-layout { display: grid; grid-template-columns: 58fr 42fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.e26-fiche-layout__infos { position: sticky; top: 2rem; }
.e26-fiche-layout__titre { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.e26-fiche-layout--oeuvre .e26-fiche-layout__titre { font-style: italic; }
.e26-fiche-layout__texte { margin-top: clamp(2rem, 4vw, 3.25rem); max-width: none; }
.e26-media { margin: 0; }
.e26-media img { display: block; width: 100%; height: auto; }
.e26-media--oeuvre { background: #fff; padding: clamp(1.5rem, 5vw, 4rem); }
.e26-media--oeuvre img { max-height: 80vh; object-fit: contain; }
.e26-media--evenement img { aspect-ratio: 3/2; object-fit: cover; }
.e26-media--projet img { aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 782px) {
	.e26-fiche-layout { grid-template-columns: 1fr; }
	.e26-fiche-layout__infos { position: static; }
}

/* Pied de page ----------------------------------------------------------- */
.e26-footer { background: #302B27; color: #F5F2EC; padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 2.5vw, 2rem); }
.e26-footer a { color: inherit; text-decoration: none; }
.e26-footer a:hover { text-decoration: underline; color: inherit; }
.e26-footer__cols { display: grid; grid-template-columns: 34fr 26fr 40fr; gap: clamp(2rem, 4vw, 3.25rem); }
.e26-footer__name { font-family: var(--wp--preset--font-family--cormorant); font-size: 2.4rem; font-weight: 500; line-height: 1; margin-bottom: 1.25rem; }
.e26-footer__slogan { font-family: var(--wp--preset--font-family--cormorant); font-style: italic; font-size: 1.25rem; line-height: 1.35; max-width: 16rem; }
.e26-footer__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(245, 242, 236, .2); margin-top: clamp(2rem, 4vw, 3.25rem); padding-top: 1rem; font-size: .8rem; }
.e26-footer__bas p { margin: 0; }
.e26-footer__liens { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.e26-social { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; gap: 1.1rem; }
.e26-footer .e26-newsletter input[type="email"] { background: transparent; color: #F5F2EC; border-color: rgba(245, 242, 236, .45); }
.e26-footer .e26-newsletter input::placeholder { color: rgba(245, 242, 236, .6); }
.e26-footer .e26-newsletter .e26-btn--plein { background: #F5F2EC; color: #302B27; border-color: #F5F2EC; }
.e26-footer .e26-newsletter .e26-btn--plein:hover { background: #A56349; border-color: #A56349; color: #fff; }
.e26-footer .e26-newsletter__consent input { accent-color: #F5F2EC; }
.e26-footer .e26-alerte { background: transparent; color: inherit; border-left-color: #F5F2EC; }
@media (max-width: 782px) { .e26-footer__cols { grid-template-columns: 1fr; } }

/* Classes utilitaires (aussi utilisables dans Elementor : Avancé › Classes CSS) */
.e26-surtitre, .e26-surtitre .elementor-heading-title, .e26-surtitre p {
	font-family: var(--wp--preset--font-family--jost) !important; font-size: .72rem !important; letter-spacing: .16em;
	text-transform: uppercase; font-weight: 400 !important; line-height: 1.4 !important; opacity: .8;
}
.e26-lead .elementor-heading-title, .e26-lead p, .e26-lead .elementor-widget-container > p {
	font-family: var(--wp--preset--font-family--cormorant); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.35; font-weight: 400;
}
.e26-lien-fleche a { text-decoration: none; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: .2em; }
.e26-trait, .e26-trait ul { list-style: none; padding-left: 0; border-top: 1px solid #D4CEC4; margin: 0; }
.e26-trait li { padding: .85rem 0; border-bottom: 1px solid #D4CEC4; }
.e26-italique .elementor-heading-title, .e26-italique p { font-style: italic; }

/* Elementor : réglages de base cohérents avec la charte -------------------- */
.elementor-widget-heading .elementor-heading-title { font-family: var(--wp--preset--font-family--cormorant); font-weight: 400; line-height: 1.12; }
.elementor-widget-heading h1.elementor-heading-title { font-size: clamp(2.5rem, 4.5vw, 3.75rem); }
.elementor-widget-heading h2.elementor-heading-title { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.elementor-widget-heading h3.elementor-heading-title { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 500; }
.e26-titre-geant .elementor-heading-title { font-size: clamp(3.25rem, 8vw, 6.5rem) !important; line-height: .95 !important; }
.elementor-widget-text-editor { line-height: 1.7; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
body .elementor-button {
	background: #302B27; color: #F5F2EC; border: 1px solid #302B27; border-radius: 0;
	font-family: var(--wp--preset--font-family--jost); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1;
	padding: 1.05em 1.8em; transition: background-color .2s, color .2s, border-color .2s;
}
body .elementor-button:hover, body .elementor-button:focus { background: #A56349; border-color: #A56349; color: #fff; }
body .e26-btn-contour .elementor-button { background: transparent; color: #302B27; }
body .e26-btn-contour .elementor-button:hover { background: #302B27; color: #F5F2EC; border-color: #302B27; }
body .e26-clair .e26-btn-contour .elementor-button { color: #F5F2EC; border-color: #F5F2EC; }
body .e26-clair .e26-btn-contour .elementor-button:hover { background: #F5F2EC; color: #302B27; }
.e26-clair, .e26-clair .elementor-heading-title, .e26-clair p { color: #F5F2EC; }
.e26-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.elementor-widget-shortcode { width: 100%; }
