/*
Theme Name: Émilie Gombert – thème enfant
Description: Thème enfant de Hello Elementor pour emiliegombertceramic.fr. En-tête, pied de page et blocs qui affichent les contenus gérés par Émilie, dans l’esprit de l’ancien site. Les tailles et couleurs suivent les réglages du site Elementor. Refonte Agence Volt, novembre 2026.
Author: Agence Volt
Author URI: https://agencevolt.com
Template: hello-elementor
Version: 1.9.0
Requires PHP: 7.4
Text Domain: emiliegombert-child
License: GNU General Public License v2 or later
*/

/* Sommaire
   0. Polices                     9. Collections
   1. Réglages centraux          10. Fiche des pièces
   2. Remise à zéro              11. Formulaire de contact
   3. Éléments communs           12. Classes Elementor
   4. En-tête                    13. Éditeur Elementor
   5. Pied de page               14. Page introuvable (404)
   6. Accueil                    15. Écrans tactiles
   7. Galerie et agrandissement  16. Barre d’administration
   8. Agenda
   Points de rupture : 1024 px (tablette), 768 px (téléphone), 480 px (petit téléphone). */


/* ============================================================
   0. POLICES HÉBERGÉES SUR LE SITE (aucun appel à Google Fonts)
   Cormorant Garamond et Raleway, licence SIL OFL 1.1 (dossier fonts)
   ============================================================ */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap; src: url('fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/raleway-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/raleway-latin-400-normal.woff2') format('woff2'); }


/* ============================================================
   1. RÉGLAGES CENTRAUX
   Polices, couleurs et tailles viennent des réglages du site Elementor :
   un réglage changé dans Elementor s’applique aussi au thème.
   La valeur après la virgule ne sert que si le réglage est vide.
   ============================================================ */

body {
  --serif : var(--e-global-typography-primary-font-family, 'Cormorant Garamond'), Georgia, serif;
  --sans  : var(--e-global-typography-text-font-family, 'Raleway'), Arial, sans-serif;

  --black : var(--e-global-color-primary, #1a1a1a);   /* titres, liens, boutons */
  --ultra : var(--e-global-color-secondary, #707070); /* étiquettes, menus */
  --grey  : var(--e-global-color-text, #666666);      /* texte courant */
  --light : var(--e-global-color-secondary, #707070); /* informations secondaires */
  --rule  : #ebebeb;                                   /* filets */
  --ph    : #ede9e3;                                   /* fond des photos en chargement */

  --eg-fs-texte  : var(--e-global-typography-text-font-size, .9375rem);
  --eg-lh-texte  : var(--e-global-typography-text-line-height, 1.7);
  --eg-fs-label  : var(--e-global-typography-secondary-font-size, .6875rem);
  --eg-fw-label  : var(--e-global-typography-secondary-font-weight, 400);
  --eg-ls-label  : var(--e-global-typography-secondary-letter-spacing, .2em);
  --eg-fs-bouton : var(--e-global-typography-accent-font-size, .6875rem);
  --eg-fw-bouton : var(--e-global-typography-accent-font-weight, 400);
  --eg-ls-bouton : var(--e-global-typography-accent-letter-spacing, .18em);

  /* Tailles propres au thème (pas de réglage Elementor équivalent) */
  --eg-fs-petit   : .8125rem; /* noms des pièces, lieux et dates des expos */
  --eg-fs-moyen   : 1.125rem; /* textes en Cormorant (prochaine expo, titres d’expo) */
  --eg-fs-prix    : 1.25rem;  /* prix sous les pièces */
  --eg-fs-fenetre : 1.5rem;   /* titre et prix dans la fiche */

  /* Rythme commun des pages ; les modèles Elementor reprennent les mêmes valeurs */
  --eg-haut    : 72px; /* sous l’en-tête */
  --eg-bas     : 88px; /* avant le pied de page */
  --eg-cote    : 48px; /* marges latérales */
  --eg-gout    : 20px; /* entre les photos */
  --eg-respire : 56px; /* de part et d’autre d’un filet */

  font-family: var(--sans);
  font-weight: 300;
  color: var(--grey);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 1024px) {
  body { --eg-haut: 56px; --eg-bas: 72px; --eg-cote: 32px; --eg-gout: 16px; --eg-respire: 48px; }
}
@media (max-width: 768px) {
  body {
    --eg-haut: 44px; --eg-bas: 56px; --eg-cote: 24px; --eg-gout: 12px; --eg-respire: 40px;
    --eg-fs-petit: .75rem; --eg-fs-moyen: 1rem; --eg-fs-prix: 1.125rem;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }


/* ============================================================
   2. REMISE À ZÉRO DES ÉLÉMENTS DU THÈME
   Limitée à l’en-tête, au pied de page, aux blocs et aux fenêtres :
   le contenu construit dans Elementor n’est pas touché.
   ============================================================ */

/* Elementor ajoute l’espacement des paragraphes des Réglages du site à tous les p.
   Les éléments du thème fixent leurs propres marges. */
body :is(.site-nav, .nav-mobile, .site-footer, .eg-bloc, .product-modal, .lightbox) p { margin-block-end: 0; }
:where(.site-nav, .nav-mobile, .site-footer, .eg-bloc, .product-modal, .lightbox) :where(p, h1, h2, h3, ul, li, figure) { margin: 0; padding: 0; }
:where(.site-nav, .nav-mobile, .site-footer, .eg-bloc, .product-modal, .lightbox) ul { list-style: none; }
:where(.site-nav, .nav-mobile, .site-footer, .eg-bloc, .product-modal, .lightbox) a { color: inherit; text-decoration: none; }
:where(.site-nav, .nav-mobile, .site-footer, .eg-bloc, .product-modal, .lightbox) img { display: block; max-width: 100%; height: auto; }

/* Boutons du thème : sans le style « Boutons » des Réglages du site Elementor,
   sans le fond rose de Hello Elementor au survol, sans l’apparence native de l’iPhone. */
body :is(.site-nav, .site-footer, .eg-bloc, .product-modal, .lightbox) button {
  cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: inherit; border-radius: 0;
  text-transform: none; letter-spacing: normal;
  -webkit-appearance: none; appearance: none; box-shadow: none; white-space: normal;
}
body :is(.site-nav, .site-footer, .eg-bloc, .product-modal, .lightbox) button:is(:hover, :focus, :active) {
  background-color: transparent; border: 0; box-shadow: none;
}


/* ============================================================
   3. ÉLÉMENTS COMMUNS
   ============================================================ */

.ph {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--ph);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }

.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* Étiquette en capitales : 16 px au-dessus du titre ou du texte, comme dans les pages Elementor */
.section-label {
  display: block; margin-bottom: 16px;
  font-family: var(--sans); font-weight: var(--eg-fw-label); font-size: var(--eg-fs-label);
  letter-spacing: var(--eg-ls-label); text-transform: uppercase; line-height: 1.4;
  color: var(--ultra);
}

/* Lien souligné (Voir les actualités, Commander par mail…) : le trait suit le texte */
.cta {
  display: inline-block; width: fit-content;
  font-family: var(--sans); font-weight: var(--eg-fw-bouton); font-size: var(--eg-fs-bouton);
  letter-spacing: var(--eg-ls-bouton); text-transform: uppercase; line-height: 1;
  color: var(--black); border-bottom: 1px solid var(--black); padding-bottom: 4px;
  transition: opacity .2s;
}
.cta:hover { opacity: .6; }

.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
}


/* ============================================================
   4. EN-TÊTE
   ============================================================ */

.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
}

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { display: block; width: 28px; height: 28px; object-fit: contain; }
.nav-brand-text {
  font-family: var(--serif); font-weight: 400; font-size: .8125rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--black);
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-family: var(--sans); font-weight: var(--eg-fw-label); font-size: var(--eg-fs-label);
  letter-spacing: var(--eg-ls-label); text-transform: uppercase;
  color: var(--ultra); transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--black); }

.site-nav .nav-burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.site-nav .nav-burger span {
  display: block; width: 22px; height: 1px; background: var(--black);
  transform-origin: center; transition: transform .3s, opacity .3s;
}
.site-nav .nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav .nav-burger.open span:nth-child(2) { opacity: 0; }
.site-nav .nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; top: 57px; left: 0; right: 0; z-index: 99;
  padding: 24px 32px 28px; background: #fff; border-bottom: 1px solid var(--rule);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: 13px 0; border-bottom: 1px solid #f2f2f2;
  font-family: var(--sans); font-weight: var(--eg-fw-label); font-size: .6875rem; line-height: 1.3;
  letter-spacing: var(--eg-ls-label); text-transform: uppercase; color: var(--black);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a.active { color: var(--ultra); }

@media (max-width: 1024px) {
  .site-nav { padding: 16px 32px; }
}
@media (max-width: 768px) {
  .site-nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .site-nav .nav-burger { display: flex; }
  .nav-brand-text { font-size: .75rem; }
}


/* ============================================================
   5. PIED DE PAGE
   ============================================================ */

/* Hello Elementor limite la largeur de .site-footer : le sélecteur renforcé
   rend au pied de page toute la largeur de l’écran. */
body .site-footer:not(.dynamic-footer) {
  max-width: none; width: 100%; margin: 0;
  padding: 40px var(--eg-cote) 24px;
  background: #fff; border-top: 1px solid var(--rule);
}
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-text {
  font-family: var(--serif); font-weight: 300; font-size: .8125rem; line-height: 1.3;
  letter-spacing: .18em; text-transform: uppercase; color: var(--black);
}
.footer-brand-text span {
  display: block; margin-top: 3px;
  font-family: var(--sans); font-weight: 300; font-size: var(--eg-fs-label); line-height: 1.3;
  letter-spacing: .1em; color: var(--ultra);
}

.footer-insta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 300; font-size: var(--eg-fs-label);
  letter-spacing: .14em; text-transform: uppercase; color: var(--grey); transition: color .2s;
}
.footer-insta svg { opacity: .7; }
.footer-email {
  font-family: var(--sans); font-weight: 300; font-size: .75rem;
  letter-spacing: .1em; color: var(--ultra); transition: color .2s;
}
.footer-insta:hover,
.footer-email:hover { color: var(--black); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 16px; border-top: 1px solid #f2f2f2;
}
.footer-copy,
.footer-legal a {
  font-family: var(--sans); font-weight: 300; font-size: .6875rem; letter-spacing: .04em; color: var(--ultra);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-legal a { transition: color .2s; }
.footer-legal a:hover { color: var(--black); }
@media (hover: hover) {
  .footer-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

@media (max-width: 768px) {
  body .site-footer:not(.dynamic-footer) { padding: 32px var(--eg-cote) 20px; }
  .footer-top { flex-wrap: wrap; justify-content: flex-start; gap: 14px 28px; margin-bottom: 16px; }
  .footer-brand { flex-basis: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 14px; }
  .footer-copy, .footer-legal a { font-size: .625rem; }
  .footer-legal { gap: 14px; }
}


/* ============================================================
   6. ACCUEIL – bloc [accueil_apercu]
   ============================================================ */

.home-preview { border-top: 1px solid var(--rule); }
.home-preview .ph { aspect-ratio: 4 / 5; height: auto; }

.home-expo { text-align: center; padding: var(--eg-respire) var(--eg-cote) var(--eg-bas); }
.home-expo .expo-next {
  font-family: var(--serif); font-weight: 300; font-size: var(--eg-fs-moyen);
  line-height: 1.4; color: var(--black); margin-bottom: 16px;
}

@media (max-width: 768px) {
  .home-preview { grid-template-columns: 1fr; }
  .home-preview .ph { border-bottom: 1px solid var(--rule); }
}


/* ============================================================
   7. GALERIE – bloc [galerie] et agrandissement
   ============================================================ */

.gallery-header { text-align: center; padding: var(--eg-haut) var(--eg-cote) 28px; }
.gallery-header .section-label { margin-bottom: 0; }

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--eg-gout); padding: 0 var(--eg-cote) var(--eg-bas);
}
.gallery-item { cursor: pointer; overflow: hidden; aspect-ratio: 4 / 5; }
.gallery-item .ph { width: 100%; height: 100%; transition: opacity .25s; }
.gallery-item:hover .ph { opacity: .85; }
.gallery-item:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }

/* Sur ordinateur, écart de 12 px entre les photos, comme l’ancien site */
@media (min-width: 1025px) {
  .gallery-grid { gap: 12px; }
}
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,.88);
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 86vw; max-height: 86vh; object-fit: contain; }
.lightbox .lightbox-close {
  position: absolute; top: 28px; right: 36px;
  font-family: var(--sans); font-weight: var(--eg-fw-label); font-size: var(--eg-fs-label);
  letter-spacing: var(--eg-ls-label); text-transform: uppercase;
  color: rgba(255,255,255,.75); transition: color .2s;
}
.lightbox .lightbox-close:hover { color: #fff; }
@media (max-width: 768px) {
  .lightbox .lightbox-close { top: 22px; right: 20px; }
}


/* ============================================================
   8. AGENDA – bloc [agenda]
   ============================================================ */

.news-wrap {
  max-width: calc(680px + 2 * var(--eg-cote)); margin: 0 auto;
  padding: var(--eg-haut) var(--eg-cote) var(--eg-bas);
}
.expo-list { margin-top: 8px; }

.expo-item {
  display: flex; align-items: baseline; gap: 28px;
  padding: 22px 0; border-bottom: 1px solid #f2f2f2;
}
.expo-item:last-child { border-bottom: none; }
.expo-date {
  flex-shrink: 0; min-width: 140px;
  font-family: var(--sans); font-weight: 300; font-size: var(--eg-fs-petit);
  letter-spacing: .06em; color: var(--ultra);
}
.eg-bloc .expo-title {
  font-family: var(--serif); font-weight: 300; font-size: var(--eg-fs-moyen);
  line-height: 1.3; color: var(--black); margin-bottom: 2px;
}
.eg-bloc .expo-lieu {
  font-family: var(--sans); font-weight: 300; font-size: var(--eg-fs-petit);
  letter-spacing: .04em; color: var(--light);
}

/* L’affiche entière tient dans l’écran */
.news-flyer-wrap { display: flex; justify-content: center; padding-top: 4px; }
.news-flyer-img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 200px); }

/* Même espace de part et d’autre du filet */
.news-contact { margin-top: var(--eg-respire); padding-top: var(--eg-respire); border-top: 1px solid var(--rule); }
.eg-bloc .news-contact p {
  font-family: var(--sans); font-weight: 300; font-size: var(--eg-fs-texte);
  line-height: var(--eg-lh-texte); color: var(--grey); margin-bottom: 16px;
}

.eg-bloc .eg-vide { padding: 20px 0; color: var(--light); font-size: var(--eg-fs-petit); }

@media (max-width: 768px) {
  .expo-item { flex-direction: column; gap: 6px; }
}


/* ============================================================
   9. COLLECTIONS – bloc [pieces_collection]
   ============================================================ */

.boutique-sub-nav { padding: 32px var(--eg-cote) 0; }
/* Lien « Boutique » : flèche dessinée, centrée sur la hauteur des capitales */
.boutique-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: var(--eg-fw-label); font-size: var(--eg-fs-label);
  letter-spacing: var(--eg-ls-label); text-transform: uppercase;
  color: var(--ultra); transition: color .2s;
}
.boutique-back:hover { color: var(--black); }
.boutique-back svg { display: block; flex-shrink: 0; width: 16px; height: 10px; }

/* Taille du titre : réglage H1 d’Elementor (Réglages du site › Typographie › Titres) */
h1.boutique-sub-title {
  display: block; width: 100%; padding: 24px var(--eg-cote) 0;
  font-family: var(--serif); font-weight: 300; line-height: 1.2;
  color: var(--black); text-align: center;
}

.shop-header { text-align: center; padding: 28px var(--eg-cote) 0; }
.eg-bloc .shop-header p {
  max-width: 520px; margin: 0 auto var(--eg-respire);
  font-family: var(--sans); font-weight: 300; font-size: var(--eg-fs-texte);
  line-height: var(--eg-lh-texte); color: var(--grey);
}

.shop-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  column-gap: var(--eg-gout); row-gap: calc(var(--eg-gout) * 2);
  padding: 0 var(--eg-cote) var(--eg-bas);
}
.shop-item { cursor: pointer; }
.shop-item .ph { aspect-ratio: 4 / 5; height: auto; margin-bottom: 14px; transition: opacity .25s; }
.shop-item:hover .ph { opacity: .85; }
.shop-item:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }

/* Prix et nom vont ensemble : écart réduit à 2 px */
.eg-bloc .shop-price {
  font-family: var(--serif); font-weight: 300; font-size: var(--eg-fs-prix); line-height: 1.2;
  color: var(--black); margin-bottom: 2px;
}
.eg-bloc .shop-name {
  font-family: var(--sans); font-weight: 300; font-size: var(--eg-fs-label); line-height: 1.4;
  letter-spacing: .08em; color: var(--light);
}
.vendue-badge {
  display: inline-block; margin-bottom: 6px;
  font-family: var(--sans); font-weight: var(--eg-fw-label); font-size: var(--eg-fs-label);
  letter-spacing: var(--eg-ls-label); text-transform: uppercase; color: var(--light);
}

@media (max-width: 768px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .shop-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   10. FICHE DES PIÈCES (fenêtre de détail)
   Écarts : 4 px entre une donnée et son libellé, 28 px entre deux rubriques.
   ============================================================ */

.product-modal {
  display: none; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0,0,0,.75);
}
.product-modal.open { display: flex; }

.modal-inner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr 1fr;
  width: 100%; max-width: min(1080px, 92vw); max-height: 90vh;
  background: #fff;
}

.modal-photo-wrap { position: relative; overflow: hidden; background: var(--ph); }
.modal-photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.modal-photo.fading { opacity: 0; }

.product-modal .modal-prev,
.product-modal .modal-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  color: var(--black); background: rgba(255,255,255,.85) !important;
  transition: background .2s;
}
.product-modal .modal-prev { left: 10px; }
.product-modal .modal-next { right: 10px; }
.product-modal .modal-prev:hover,
.product-modal .modal-next:hover { background: #fff !important; }
.product-modal .modal-prev svg,
.product-modal .modal-next svg { display: block; width: 14px; height: 14px; }
.product-modal .modal-prev[hidden],
.product-modal .modal-next[hidden],
.product-modal .modal-dots[hidden] { display: none; }

.modal-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; gap: 6px;
}
.product-modal .modal-dot {
  width: 7px; height: 7px; border-radius: 50% !important;
  background: rgba(255,255,255,.55) !important;
  transition: background .2s, transform .2s;
}
.product-modal .modal-dot.active { background: #fff !important; transform: scale(1.2); }

.modal-details {
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 48px; overflow-y: auto;
}
.product-modal .modal-titre,
.product-modal .modal-prix {
  font-family: var(--serif); font-weight: 300; font-size: var(--eg-fs-fenetre);
  line-height: 1.2; color: var(--black);
}
.product-modal .modal-titre { margin-bottom: 4px; }
.product-modal .modal-prix { margin-bottom: 32px; }

.modal-bloc[hidden] { display: none; }
.modal-section-label {
  display: block; margin-bottom: 4px;
  font-family: var(--sans); font-weight: var(--eg-fw-label); font-size: var(--eg-fs-label);
  letter-spacing: var(--eg-ls-label); text-transform: uppercase; color: var(--ultra);
}
.product-modal .modal-dimensions-val,
.product-modal .modal-entretien-val,
.product-modal .modal-quantite-val,
.product-modal .modal-infos-sup {
  font-family: var(--sans); font-weight: 300; font-size: var(--eg-fs-texte);
  line-height: 1.55; color: var(--grey); margin-bottom: 28px;
}
.product-modal .modal-unicite {
  margin-top: -6px; margin-bottom: 24px;
  font-family: var(--sans); font-style: italic; font-weight: 300; font-size: var(--eg-fs-petit);
  line-height: 1.6; color: var(--ultra);
}
.modal-vendue-badge {
  display: inline-block; padding: 5px 10px; border: 1px solid var(--light);
  font-family: var(--sans); font-weight: var(--eg-fw-label); font-size: var(--eg-fs-label);
  letter-spacing: var(--eg-ls-label); text-transform: uppercase; color: var(--light);
}
.product-modal .modal-close {
  position: absolute; top: 18px; right: 22px; z-index: 10;
  font-family: var(--sans); font-weight: var(--eg-fw-label); font-size: var(--eg-fs-label);
  letter-spacing: var(--eg-ls-label); text-transform: uppercase;
  color: var(--ultra); transition: color .2s;
}
.product-modal .modal-close:hover { color: var(--black); }

/* Téléphone : photo au-dessus du texte. « Fermer » est fixé au-dessus de la fiche, en clair.
   La hauteur se cale sur le plus petit écran visible (svh) : la fiche garde la même taille
   que la barre d’adresse soit grande ou réduite, et reste centrée. */
@media (max-width: 768px) {
  .product-modal { padding: 64px 16px; }
  .modal-inner {
    grid-template-columns: 1fr; max-width: 100%; overflow-y: auto;
    max-height: calc(100vh - 128px); max-height: calc(100svh - 128px);
  }
  .modal-photo-wrap { height: 300px; }
  .modal-details { padding: 32px 24px; }
  .product-modal .modal-titre,
  .product-modal .modal-prix { font-size: 1.375rem; }
  .product-modal .modal-dimensions-val,
  .product-modal .modal-entretien-val,
  .product-modal .modal-quantite-val,
  .product-modal .modal-infos-sup { margin-bottom: 24px; }
  .product-modal .modal-close { position: fixed; top: 22px; right: 20px; color: rgba(255,255,255,.85); }
  .product-modal .modal-close:hover { color: #fff; }
  /* le menu de l’en-tête ne transparaît pas sous « Fermer » */
  body:has(.product-modal.open) .site-nav .nav-burger { visibility: hidden; }
}


/* ============================================================
   11. FORMULAIRE DE CONTACT (Contact Form 7)
   ============================================================ */

.wpcf7-form { width: 100%; }
.wpcf7-form p { margin: 0; }
.wpcf7-form label {
  display: block;
  font-family: var(--sans); font-weight: 300; font-size: var(--eg-fs-texte);
  letter-spacing: .02em; color: var(--grey);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  display: block; width: 100%; margin: 4px 0 22px; padding: 10px 0;
  background: transparent; border: none; border-bottom: 1px solid #d9d9d9; border-radius: 0;
  font-family: var(--sans); font-weight: 300; font-size: 1rem; color: var(--black);
  text-transform: none; letter-spacing: normal;
  outline: none; transition: border-color .2s;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus { border-bottom-color: var(--black); }
.wpcf7-form textarea { height: 110px; resize: vertical; }
.wpcf7-form input[type="submit"] {
  display: inline-block; padding: 0 0 4px; cursor: pointer;
  background: transparent; border: none; border-bottom: 1px solid var(--black); border-radius: 0;
  font-family: var(--sans); font-weight: var(--eg-fw-bouton); font-size: var(--eg-fs-bouton);
  letter-spacing: var(--eg-ls-bouton); text-transform: uppercase; color: var(--black);
  transition: opacity .2s;
}
.wpcf7-form input[type="submit"]:hover { opacity: .6; }
.wpcf7-not-valid-tip {
  display: block; margin-top: -16px; margin-bottom: 14px;
  font-family: var(--sans); font-size: var(--eg-fs-petit); color: #b03a2e;
}
.wpcf7-response-output {
  font-family: var(--sans); font-size: var(--eg-fs-petit); color: var(--grey);
  border: 1px solid var(--rule) !important; border-radius: 0 !important;
  padding: 12px 14px !important; margin: 16px 0 0 !important;
}
.wpcf7-spinner { margin-left: 10px; }


/* ============================================================
   12. CLASSES À UTILISER DANS ELEMENTOR (widget › Avancé › Classes CSS)
   ============================================================ */

/* eg-legal – pages légales, widget « Éditeur de texte » : bloc centré de 680 px.
   Titre 1 = réglage H1 d’Elementor ; Titre 2 = petite étiquette en capitales.
   !important : Elementor force la largeur des widgets à 100 %. */
.eg-legal { width: 100%; max-width: 680px !important; margin-inline: auto !important; }
.eg-legal h1 { margin-bottom: 40px; }
body .eg-legal h2 {
  margin: 40px 0 14px;
  font-family: var(--sans); font-weight: var(--eg-fw-label); font-size: var(--eg-fs-label);
  letter-spacing: var(--eg-ls-label); text-transform: uppercase; line-height: 1.4;
  color: var(--ultra);
}
.eg-legal p, .eg-legal li { line-height: 1.8; }
.eg-legal ul { padding-left: 20px; list-style: disc; }
.eg-legal a { color: var(--black); border-bottom: 1px solid var(--rule); text-decoration: none; }

/* eg-texte-fin – texte plus fin et plus clair, comme sur l’ancien site (page À propos).
   Raleway 300, 13 px, interligne 1,9, gris #888888. */
body .eg-texte-fin, body .eg-texte-fin p {
  font-family: var(--sans); font-weight: 300; font-size: 13px; line-height: 1.9; color: #888888;
}
body .eg-texte-fin p { margin: 0 0 16px; }
body .eg-texte-fin p:last-child { margin-bottom: 0; }

/* eg-photo – photo qui remplit tout son conteneur (À propos, Contact).
   Le conteneur donne la taille ; sur téléphone, la photo s’affiche en entier. */
.e-con:has(> .eg-photo), .e-con-inner:has(> .eg-photo) { position: relative; }
.eg-photo { position: absolute !important; inset: 0; width: 100% !important; height: 100%; margin: 0 !important; }
.eg-photo .elementor-widget-container { height: 100%; }
.eg-photo img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
@media (max-width: 768px) {
  .eg-photo { position: static !important; height: auto; }
  .eg-photo img { height: auto !important; }
  .e-con:has(> .eg-photo) { min-height: 0 !important; }
}

/* eg-vignette – photo de la page Boutique : format 4/5 (presque carré sur téléphone),
   léger zoom au survol. */
.eg-vignette { overflow: hidden; }
.eg-vignette a, .eg-vignette .elementor-widget-container { display: block; width: 100%; }
.eg-vignette img {
  display: block; width: 100% !important; height: auto !important;
  aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease;
}
.eg-vignette:hover img { transform: scale(1.03); }

/* Cartes de la page Boutique (conteneur qui contient une eg-vignette) :
   prix, titre et « Découvrir » forment un seul groupe au-dessus de la photo.
   Marges posées sur le widget et sur son conteneur : leur place varie selon la version d’Elementor. */
.e-con:has(> .eg-vignette) > :is(.elementor-widget-heading, .elementor-widget-button) > .elementor-widget-container { margin: 0 !important; }
.e-con:has(> .eg-vignette) > .elementor-widget-heading:nth-child(1) { margin-block-end: 4px !important; }
.e-con:has(> .eg-vignette) > .elementor-widget-heading:nth-child(2) { margin-block-end: 8px !important; }
.e-con:has(> .eg-vignette) > .elementor-widget-heading .elementor-heading-title { line-height: 1.2; }
/* « Découvrir » sans marge intérieure : il s’aligne sur le bord de la photo */
.e-con:has(> .eg-vignette) .elementor-button { padding: 0 !important; }

@media (max-width: 768px) {
  .eg-vignette img { aspect-ratio: 1 / 1; }
  /* textes en retrait, comme l’ancien site */
  .e-con:has(> .eg-vignette) > .elementor-widget:not(.eg-vignette) { padding-inline: 24px; }
}


/* ============================================================
   13. ÉDITEUR ELEMENTOR
   ============================================================ */

.elementor-widget-shortcode .elementor-shortcode { width: 100%; }
/* Titres Elementor en balise p (étiquettes, prix) : sans l’espacement des paragraphes
   des Réglages du site ; l’espace se règle par la marge du widget. */
.elementor-widget-heading p.elementor-heading-title { margin-block-end: 0; }
/* Le fondu d’apparition (js/main.js) ne s’applique pas dans l’éditeur */
body.elementor-editor-active { opacity: 1 !important; }


/* ============================================================
   14. PAGE INTROUVABLE (404.php)
   ============================================================ */

.eg-404 {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 56vh; padding: var(--eg-haut) var(--eg-cote) var(--eg-bas);
  text-align: center;
}
body .eg-404 .eg-404-titre {
  margin: 0 0 12px;
  font-family: var(--serif); font-weight: 300; line-height: 1.2; color: var(--black);
}
body .eg-404 p { margin: 0 0 var(--eg-respire); max-width: 420px; line-height: var(--eg-lh-texte); }


/* ============================================================
   15. ÉCRANS TACTILES
   Pas d’effet de survol : il resterait « collé » après un toucher.
   ============================================================ */

@media (hover: none) {
  .gallery-item:hover .ph,
  .shop-item:hover .ph { opacity: 1; }
  .eg-vignette:hover img { transform: none; }
  .cta:hover { opacity: 1; }
  .product-modal .modal-prev:hover,
  .product-modal .modal-next:hover { background: rgba(255,255,255,.85) !important; }
}


/* ============================================================
   16. BARRE D’ADMINISTRATION (visible seulement une fois connecté)
   L’en-tête passe sous la barre ; la fiche et l’agrandissement
   se centrent dans l’espace qui reste.
   ============================================================ */

.admin-bar .site-nav { top: 32px; }
.admin-bar .product-modal,
.admin-bar .lightbox { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-nav,
  .admin-bar .product-modal,
  .admin-bar .lightbox { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .product-modal,
  .admin-bar .lightbox { top: 0; }
}
