/* ==========================================================================
   Caidal — CSS de pont Elementor (v1.8 · 2026-11-13)
   --------------------------------------------------------------------------
   Fait le lien entre les widgets Elementor NATIFS (Heading, Text Editor,
   Button, grid Caidal…) posés dans les sections reconstruites — marquées
   .cai-eb — et le design d'origine (assets/css/original.css).
   Portée volontairement limitée aux sections .cai-eb : aucun effet sur le
   reste du site ni sur les pages encore rendues par le thème.
   ========================================================================== */

/* 1. Espacements : neutraliser la marge par défaut (20 px) entre widgets
      Elementor ; les espacements d'origine sont portés par les classes du
      thème (h2, .tzt, .rmx h2…), exactement comme dans le HTML d'origine. */
.cai-eb .elementor-widget { margin-bottom: 0 !important; }

/* 2. Titres natifs : neutraliser les styles globaux par défaut d'Elementor
      (post-XXX.css applique .elementor-widget-heading .elementor-heading-title
      = Roboto 600 var(--e-global-color-primary)) et restaurer la typographie
      Caidal d'origine (Cormorant Garamond / Jost, couleurs du thème). */
.cai-eb h1.elementor-heading-title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 400;
	color: var(--fg);
	line-height: normal;
	margin: 0.67em 0;
}
.cai-eb h2.elementor-heading-title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 400;
	color: var(--fg);
	line-height: normal;
	margin: 0.83em 0;
}
.cai-eb h3.elementor-heading-title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 400;
	color: var(--fg);
	line-height: normal;
	margin: 1em 0;
}
.rmx.cai-eb .cai-eb-title .elementor-heading-title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 400;
	color: #f6ecd2;
	line-height: normal;
}

/* 2ter. Intitulés de blocs « .ab .ln » (Livraison, Paiement, Besoin d'aide ?,
      « Ainsi est née leur marque » reste dans l'éditeur de texte) portés par
      des widgets Titre natifs marqués .cai-eb-ln. */
.ab.cai-eb .cai-eb-ln .elementor-heading-title {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 400;
	font-size: 26px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-align: center;
	margin: 44px 0 26px;
	padding: 0;
	line-height: normal;
	color: var(--fg);
}

/* 2septies. Restaurer la « fusion des marges » d'origine aux coutures entre
      widgets : dans le HTML d'origine, tous les blocs étaient frères dans un
      même conteneur ; séparés en widgets, leurs marges s'additionnent. */
.cai-eb .elementor-widget-text-editor > :last-child { margin-bottom: 0 !important; }
.cai-eb .elementor-widget-heading + .elementor-widget-text-editor > :first-child { margin-top: 0 !important; }
.cai-eb .elementor-widget-text-editor.crumb p { margin: 0; }
.ph.cai-eb .elementor-widget-heading { margin-bottom: 0 !important; }

/* 2quater. Photo des fondateurs (widget Image natif, remplace <figure class="fig">). */
.ab.cai-eb .cai-eb-fig { margin: 38px auto 0; max-width: 620px; }
.ab.cai-eb .cai-eb-fig img { width: 100%; height: auto; display: block; }

/* 2quinquies. Cartes boutiques : la grille d'origine (.stores) ne peut pas être
      posée sur une section Elementor (elle ferait de .elementor-container un
      simple item de grille) — on réplique ses styles et on s'appuie sur les
      colonnes 50/50 d'Elementor. */
.cai-eb-stores { padding: 28px 2px 0; margin-bottom: 60px; }
.cai-eb-stores > .elementor-container { gap: 2px; }
.store.cai-eb .cai-eb-sp img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center 20%;
	display: block;
}

/* 2sexies. Liens façon .wa (Itinéraire / Contacter sur WhatsApp) portés par
      des widgets Bouton natifs marqués .cai-eb-wa. */
.cai-eb .cai-eb-wa .elementor-button {
	display: block !important;
	width: 100% !important;
	max-width: 340px;
	margin: 16px auto 0 !important;
	padding: 15px !important;
	background: transparent !important;
	color: var(--fg) !important;
	border: 1px solid var(--fg) !important;
	border-radius: 0 !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: background-color 0.25s ease, color 0.25s ease !important;
}
.cai-eb .cai-eb-wa .elementor-button:hover,
.cai-eb .cai-eb-wa .elementor-button:focus {
	background: var(--fg) !important;
	color: var(--bg) !important;
}

/* Titre de ville des cartes boutiques : conserve l'interligne 1.9 de .si. */
.store.cai-eb .si .elementor-heading-title { line-height: 1.9; }

/* ------------------------------------------------------------------
   3. Page d'accueil — grilles de tuiles et surtitre .tzk générique.
   Les classes .grid / .duo (display:grid) ne peuvent pas être posées sur
   une section Elementor (le conteneur deviendrait un simple item de
   grille) : on réplique leurs réglages et on s'appuie sur les colonnes
   Elementor (33/33/33 et 50/50, empilées sur mobile comme l'original).
   ------------------------------------------------------------------ */
.cai-eb-grid, .cai-eb-duo { margin-top: 2px; }
.cai-eb-grid > .elementor-container, .cai-eb-duo > .elementor-container { gap: 2px; }

/* Surtitre .tzk porté par un widget Titre natif (section .tz de l'accueil). */
.cai-eb .cai-eb-tzk .elementor-heading-title {
	font-family: inherit;
	font-weight: 400;
	font-size: 11px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 1em 0;
	line-height: 1.6;
}

/* 3. Bannière Ramadan — section portant les classes d'origine .rmx .rmb.
      La chaîne height:100% permet au widget décor (overlay absolu) de couvrir
      toute la bannière, et align-content:center recentre le contenu comme le
      faisait .rmx{align-items:center} sur le <a> d'origine. */
.rmx.cai-eb > .elementor-container { height: 100%; }
.rmx.cai-eb .elementor-column { height: 100%; }
.rmx.cai-eb .elementor-widget-wrap { height: 100%; align-content: center; }
.rmx.cai-eb .elementor-widget:not(.cai-eb-decor) { width: 100%; }

/* Overlay décor (lune, lanternes, étoiles) : couvre la bannière sans
   capter les clics ; ses enfants SVG se positionnent comme à l'origine. */
.rmx.cai-eb .cai-eb-decor {
	position: absolute !important;
	inset: 0;
	width: auto !important;
	z-index: 1;
	pointer-events: none;
}

/* Surtitre (.tzk + .rc p du design d'origine) */
.rmx.cai-eb .cai-eb-eyebrow .elementor-heading-title {
	font-family: inherit;
	font-weight: 400;
	font-size: 11px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 10px 0;
	line-height: 1.6;
}

/* Titre « Ramadan 2027 » : stylé par .rmx h1,.rmx h2 (original.css) ;
   on ne restaure que la hauteur de ligne naturelle. */
.rmx.cai-eb .cai-eb-title .elementor-heading-title { line-height: normal; }

/* Texte arabe (.rmx .ar du design d'origine) */
.rmx.cai-eb .cai-eb-arabic .elementor-heading-title {
	font-family: "Amiri", "Noto Naskh Arabic", serif;
	font-weight: 400;
	font-size: clamp(26px, 4vw, 44px);
	color: #d9b878;
	margin: 2px 0 14px;
	line-height: 1.3;
	direction: rtl;
}

/* 2bis. Text Editor natif : neutraliser la police/couleur globale d'Elementor
      (Roboto + var(--e-global-color-text)) et rendre la main au thème. */
.cai-eb .elementor-widget-text-editor:not(.crumb) { font-family: inherit; color: inherit; }
.cai-eb .elementor-widget-text-editor.crumb { font-family: inherit; color: var(--mute); }

/* 4. Boutons natifs, habillés comme les .btn Caidal
      (.btn + variantes .rmx .btn / .tz .btn de original.css). */
.cai-eb .cai-eb-btn .elementor-button {
	display: inline-block !important;
	width: auto !important;
	background: transparent !important;
	color: inherit !important;
	border: 1px solid currentColor !important;
	border-radius: 0 !important;
	padding: 12px 28px !important;
	font-family: inherit !important;
	font-size: 11px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase !important;
	box-shadow: none !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}
.cai-eb .cai-eb-btn .elementor-button:hover,
.cai-eb .cai-eb-btn .elementor-button:focus {
	background: #fff !important;
	color: #000 !important;
}
.rmx.cai-eb .cai-eb-btn .elementor-button { color: #f6ecd2 !important; }
.rmx.cai-eb .cai-eb-btn .elementor-button:hover,
.rmx.cai-eb .cai-eb-btn .elementor-button:focus {
	background: #d9b878 !important;
	color: #0d2b2a !important;
	border-color: #d9b878 !important;
}
.tz.cai-eb .cai-eb-btn .elementor-button:hover,
.tz.cai-eb .cai-eb-btn .elementor-button:focus {
	background: var(--fg) !important;
	color: var(--bg) !important;
}

/* Boutons côte à côte dans la section .tz (comme les deux <a class="btn">
   adjacents du HTML d'origine) */
.tz.cai-eb .cai-eb-btn { display: inline-block; width: auto !important; margin: 0 !important; }
.tz.cai-eb .cai-eb-btn + .cai-eb-btn { margin-left: 5px !important; }

/* ------------------------------------------------------------------
   5. Accueil (P5, v1.5) — corrections mesurées par sonde DOM avant/après.
   ------------------------------------------------------------------ */
/* Tuiles duo : .duo .tile{aspect-ratio:4/3} ne s'applique plus (la tuile
   n'est plus enfant direct d'un .duo). */
.cai-eb-duo .tile { aspect-ratio: 4 / 3; }

/* Titres de section (h2 générique d'original.css : padding 64/28) —
   .elementor-heading-title remet padding/margin à 0. */
.cai-eb .cai-eb-h2 .elementor-heading-title {
	font-size: 28px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-align: center;
	padding: 64px 4vw 28px;
	margin: 0;
}

/* Section .tz (présentation) : surtitre sans marge, .tzt avec ses marges
   d'origine (16/26), boutons centrés comme les <a class="btn"> inline. */
.tz.cai-eb .elementor-widget-wrap { justify-content: center; }
.tz.cai-eb .cai-eb-tzk .elementor-heading-title { margin: 0; line-height: inherit; }
.tz.cai-eb .elementor-widget-text-editor .tzt { margin: 16px 0 26px !important; }

/* Section Instagram : marges .igh / .igt d'origine et bouton centré. */
.ig.cai-eb .elementor-widget-wrap { justify-content: center; }
.ig.cai-eb .elementor-widget:not(.cai-eb-btn) { width: 100%; }
.ig.cai-eb .elementor-widget-text-editor .igh { margin: 0 !important; }
.ig.cai-eb .elementor-widget-text-editor .igt { margin: 0 auto 24px !important; } /* 18px fusionnait avec les 28px de .igg */
.ig.cai-eb .cai-eb-btn { width: auto !important; }

/* ------------------------------------------------------------------
   6. Page Contact (P6, v1.6) — formulaire Contact Form 7 aux couleurs
   Caidal (mêmes réglages que les champs WooCommerce de wordpress.css).
   ------------------------------------------------------------------ */
.cai-eb-contact .wpcf7 { margin: 8px 0 0; }
.cai-eb-contact .wpcf7-form p { margin: 0 0 18px; }
.cai-eb-contact .wpcf7-form label {
	display: block;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--mute);
	line-height: 1.6;
}
.cai-eb-contact .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.cai-eb-contact .wpcf7-form input[type=text],
.cai-eb-contact .wpcf7-form input[type=email],
.cai-eb-contact .wpcf7-form input[type=tel],
.cai-eb-contact .wpcf7-form textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--line);
	border-radius: 0;
	background: var(--bg);
	color: var(--fg);
	padding: 11px;
	font: 400 15px/1.6 Jost, sans-serif;
	letter-spacing: normal;
	text-transform: none;
}
.cai-eb-contact .wpcf7-form textarea { height: 160px; resize: vertical; }
.cai-eb-contact .wpcf7-form input:focus,
.cai-eb-contact .wpcf7-form textarea:focus { outline: 1px solid var(--fg); outline-offset: 0; }
.cai-eb-contact .wpcf7-submit {
	display: block;
	width: 100%;
	max-width: 340px;
	margin: 8px auto 0;
	padding: 15px;
	background: var(--fg);
	color: var(--bg);
	border: 1px solid var(--fg);
	border-radius: 0;
	font: 400 12px/1.5 Jost, sans-serif;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}
.cai-eb-contact .wpcf7-submit:hover,
.cai-eb-contact .wpcf7-submit:focus { background: transparent; color: var(--fg); }
.cai-eb-contact .wpcf7-spinner { display: block; margin: 10px auto 0; }
.cai-eb-contact .wpcf7-not-valid-tip { font-size: 12px; letter-spacing: normal; text-transform: none; margin-top: 4px; }
.cai-eb-contact .wpcf7-response-output { margin: 18px 0 0 !important; padding: 12px !important; font-size: 13px; text-align: center; }
.cai-eb-contact .elementor-widget-text-editor a { text-decoration: underline; }

/* ------------------------------------------------------------------
   7. Newsletter de l'accueil (v1.7) — formulaire de l'extension Newsletter
   ([newsletter_form type="minimal"]) habillé comme le formulaire d'origine :
   champ souligné (règle .news input d'original.css) + bouton noir .news button.
   ------------------------------------------------------------------ */
.news.cai-eb .cai-newsletter-shortcode { max-width: 660px; margin: 0 auto; }
.news.cai-eb .tnp-subscription-minimal { margin: 0; padding: 0; background: none; border: 0; max-width: none; }
.news.cai-eb .tnp-subscription-minimal form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
}
.news.cai-eb .tnp-subscription-minimal input.tnp-email {
	border: 0;
	border-bottom: 1px solid var(--fg);
	border-radius: 0;
	background: transparent;
	color: var(--fg);
	padding: 10px 4px;
	width: min(340px, 70vw);
	max-width: none;
	font: inherit;
	outline: 0;
	margin: 0;
	box-shadow: none;
}
.news.cai-eb .tnp-subscription-minimal input.tnp-submit {
	background: var(--fg);
	color: var(--bg);
	border: 0;
	border-radius: 0;
	padding: 12px 24px;
	width: auto;
	font: inherit;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	margin: 0 0 0 8px;
	line-height: normal;
}
@media (max-width: 760px) {
	.news.cai-eb .tnp-subscription-minimal form { gap: 8px; }
	.news.cai-eb .tnp-subscription-minimal input.tnp-submit { margin-left: 0; }
}

/* 8. Bannière Ramadan : rendre le contenu cliquable / sélectionnable (v1.8).
      wordpress.css pose .rmx .rc et .rmx .btn en pointer-events:none, prévu pour
      l'ancienne bannière entièrement cliquable (<a class="rmx">). Dans les sections
      Elementor, la colonne porte .rc : sans ce correctif, ni le bouton (site public)
      ni les widgets (éditeur Elementor) ne reçoivent les clics. Le décor reste inerte. */
.rmx.cai-eb .rc,
.rmx.cai-eb .btn,
.rmx.cai-eb .elementor-widget:not(.cai-eb-decor) { pointer-events: auto; }

/* 9. Widget Elementor Pro « Produits » (classe .cai-eb-pgrid) habillé comme les
      cartes Caidal (.cards/.card). Colonnes, espacements, typo et couleurs sont
      réglés dans le widget ; seul ce que le widget ne propose pas est ici. (v1.8) */
.cai-eb-pgrid ul.products { padding: 2px !important; margin: 0 !important; }
.cai-eb-pgrid ul.products li.product { padding: 0 0 28px !important; margin: 0 !important; }
.cai-eb-pgrid ul.products li.product img {
	aspect-ratio: 3 / 4; width: 100%; object-fit: cover; object-position: center top;
	transition: filter .4s ease;
}
.cai-eb-pgrid ul.products li.product a:hover img { filter: brightness(.98); }
.cai-eb-pgrid ul.products li.product .woocommerce-loop-product__title { padding: 0 4px !important; }
.cai-eb-pgrid ul.products li.product .price .amount { color: inherit; }
.cai-eb-pgrid ul.products li.product .button,
.cai-eb-pgrid ul.products li.product .added_to_cart,
.cai-eb-pgrid ul.products li.product .star-rating { display: none !important; }
