/* ==========================================================================
   Croix décoratives LC2R
   Utilisation dans Elementor : sur un conteneur, onglet Avancé > Classes CSS,
   par exemple :  lc2r-croix lc2r-croix--haut-droite lc2r-croix--c6 lc2r-croix--l5
     - position : --haut-gauche | --haut-droite | --bas-gauche | --bas-droite
     - colonnes : --c3 à --c11   (7 par défaut)
     - lignes   : --l3 à --l10   (4 par défaut)
     - pas 35 px (page Qui sommes-nous) : --pas35
     - garder le bloc sur mobile : --mobile
     - bloc en escalier (triangle collé au coin du bloc) : --diagonale
   Le bloc est dessiné en CSS (::after) : rien dans le HTML, donc ignoré
   par les lecteurs d'écran sans avoir besoin d'aria-hidden.
   ========================================================================== */

.lc2r-croix {
	position: relative;  /* repère pour le bloc en position absolue */
	isolation: isolate;  /* le z-index: -1 du bloc reste DANS ce conteneur */
	overflow-x: clip;    /* un bloc qui dépasse ne crée pas de scroll horizontal
	                        (clip, pas hidden : le débordement vertical reste visible) */
	--lc2r-croix-cols: 7;
	--lc2r-croix-rows: 4;
	--lc2r-croix-pas: 30px;    /* distance entre deux croix (Figma : 30 px) */
	/* Tuile SVG de la taille du pas, écrite directement dans le CSS (data URI) :
	   pas de requête en plus, pas de fichier SVG à envoyer dans WordPress.
	   %3C = <, %3E = >, %23 = # (caractères à encoder dans une URL). */
	--lc2r-croix-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M4.28 0h1.75v10.31H4.28zM0 4.28h10.31v1.75H0z' fill='%23154B8F'/%3E%3C/svg%3E");
	--lc2r-croix-marge: 24px;  /* distance au bord de la section */
	--lc2r-croix-opacite: 0.5; /* Figma : calque des croix à 50 % */
}

/* ::after et pas ::before : Elementor utilise déjà ::before sur ses
   conteneurs pour la superposition d'arrière-plan. */
.lc2r-croix::after {
	content: "";
	position: absolute;
	z-index: -1;           /* derrière le contenu de la section */
	pointer-events: none;  /* ne bloque jamais un clic */
	/* Opacité sur le pseudo-élément entier : comme dans Figma, toutes
	   les croix s'estompent ensemble sur le fond de la section. */
	opacity: var(--lc2r-croix-opacite);
	top: var(--lc2r-croix-marge);
	right: var(--lc2r-croix-marge);
	/* Le dernier pas n'a pas d'espace après la croix : (n - 1) pas + 11 px. */
	width: calc((var(--lc2r-croix-cols) - 1) * var(--lc2r-croix-pas) + 11px);
	height: calc((var(--lc2r-croix-rows) - 1) * var(--lc2r-croix-pas) + 11px);
	/* Une tuile = une croix en haut à gauche + du vide jusqu'au pas suivant.
	   Elle est répétée telle quelle : la croix garde ses 11 px. */
	background: var(--lc2r-croix-img) 0 0 / var(--lc2r-croix-pas) var(--lc2r-croix-pas) repeat;
}

/* Position */
.lc2r-croix--haut-gauche::after,
.lc2r-croix--bas-gauche::after  { right: auto; left: var(--lc2r-croix-marge); }
.lc2r-croix--bas-gauche::after,
.lc2r-croix--bas-droite::after  { top: auto; bottom: var(--lc2r-croix-marge); }

/* Diagonale : on garde la moitié du bloc côté coin, en escalier.
   Un masque (mask-image) cache la moitié opposée : un dégradé noir/transparent
   sans transition (même valeur 50 % des deux côtés) tracé dans un carré de
   la largeur du bloc, ce qui donne une coupe exactement à 45°, quel que
   soit le nombre de lignes.
   Le « + 0.35 pas » décale la coupe pour garder entières les croix posées
   pile sur la diagonale au lieu de les couper en deux. */
.lc2r-croix--diagonale::after {
	--lc2r-croix-coupe: linear-gradient(var(--lc2r-croix-diag-sens),
		#000 calc(50% + var(--lc2r-croix-pas) * 0.35),
		transparent calc(50% + var(--lc2r-croix-pas) * 0.35));
	-webkit-mask: var(--lc2r-croix-coupe) var(--lc2r-croix-diag-coin) / 100% auto no-repeat;
	        mask: var(--lc2r-croix-coupe) var(--lc2r-croix-diag-coin) / 100% auto no-repeat;
	-webkit-mask-size: 100% calc((var(--lc2r-croix-cols) - 1) * var(--lc2r-croix-pas) + 11px);
	        mask-size: 100% calc((var(--lc2r-croix-cols) - 1) * var(--lc2r-croix-pas) + 11px);
}
/* Sens de la coupe selon la position (haut-droite par défaut). */
.lc2r-croix                  { --lc2r-croix-diag-sens: to bottom left;  --lc2r-croix-diag-coin: top right; }
.lc2r-croix--haut-gauche     { --lc2r-croix-diag-sens: to bottom right; --lc2r-croix-diag-coin: top left; }
.lc2r-croix--bas-gauche      { --lc2r-croix-diag-sens: to top right;    --lc2r-croix-diag-coin: bottom left; }
.lc2r-croix--bas-droite      { --lc2r-croix-diag-sens: to top left;     --lc2r-croix-diag-coin: bottom right; }

/* Pas */
.lc2r-croix--pas35 {
	--lc2r-croix-pas: 35px;
	--lc2r-croix-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='35' height='35'%3E%3Cpath d='M4.28 0h1.75v10.31H4.28zM0 4.28h10.31v1.75H0z' fill='%23154B8F'/%3E%3C/svg%3E");
}

/* Colonnes */
.lc2r-croix--c3  { --lc2r-croix-cols: 3; }
.lc2r-croix--c4  { --lc2r-croix-cols: 4; }
.lc2r-croix--c5  { --lc2r-croix-cols: 5; }
.lc2r-croix--c6  { --lc2r-croix-cols: 6; }
.lc2r-croix--c7  { --lc2r-croix-cols: 7; }
.lc2r-croix--c8  { --lc2r-croix-cols: 8; }
.lc2r-croix--c9  { --lc2r-croix-cols: 9; }
.lc2r-croix--c10 { --lc2r-croix-cols: 10; }
.lc2r-croix--c11 { --lc2r-croix-cols: 11; }

/* Lignes */
.lc2r-croix--l3  { --lc2r-croix-rows: 3; }
.lc2r-croix--l4  { --lc2r-croix-rows: 4; }
.lc2r-croix--l5  { --lc2r-croix-rows: 5; }
.lc2r-croix--l6  { --lc2r-croix-rows: 6; }
.lc2r-croix--l7  { --lc2r-croix-rows: 7; }
.lc2r-croix--l8  { --lc2r-croix-rows: 8; }
.lc2r-croix--l9  { --lc2r-croix-rows: 9; }
.lc2r-croix--l10 { --lc2r-croix-rows: 10; }

/* Tablette : blocs plus petits pour ne pas gêner le contenu. */
@media (max-width: 1024px) {
	.lc2r-croix {
		--lc2r-croix-cols: 5 !important;
		--lc2r-croix-rows: 3 !important;
		--lc2r-croix-marge: 16px;
	}
}

/* Mobile : masqué par défaut, sauf avec --mobile. */
@media (max-width: 767px) {
	.lc2r-croix:not(.lc2r-croix--mobile)::after { display: none; }
	.lc2r-croix--mobile {
		--lc2r-croix-cols: 4 !important;
		--lc2r-croix-rows: 2 !important;
	}
}

/* --------------------------------------------------------------------------
   Section « Suivez-nous » : deux blocs aux formes libres (un à gauche, un à
   droite). Trop irréguliers pour les classes génériques : chaque bloc est
   un SVG unique généré depuis les positions exactes des croix dans Figma.
   Utilisation : classe  lc2r-croix-suivez-nous  sur le conteneur de la
   section, SEULE (pas avec lc2r-croix : les deux utilisent ::after).
   -------------------------------------------------------------------------- */
.lc2r-croix-suivez-nous {
	position: relative;
	isolation: isolate;
	overflow-x: clip;
}
.lc2r-croix-suivez-nous::after {
	content: "";
	position: absolute;
	inset: 0;              /* couvre toute la section */
	z-index: -1;
	pointer-events: none;
	opacity: 0.5;          /* Figma : calque des croix à 50 % */
	/* Deux images de fond, séparées par une virgule : une par bloc.
	   Bloc gauche : 281x281 px, à 10 px du bord gauche, centré en hauteur.
	   Bloc droit  : 182x284 px, à 10 px du bord droit, centré en hauteur.
	   « center » : les blocs restent au milieu même si la hauteur
	   de la section change (padding, contenu). */
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='281' height='281'%3E%3Cpath fill='%23154B8F' d='M4.28 0h1.75v10.31h-1.75zM0 4.28h10.31v1.75h-10.31zM37.28 0h1.75v10.31h-1.75zM33 4.28h10.31v1.75h-10.31zM70.28 0h1.75v10.31h-1.75zM66 4.28h10.31v1.75h-10.31zM105.28 0h1.75v10.31h-1.75zM101 4.28h10.31v1.75h-10.31zM138.28 0h1.75v10.31h-1.75zM134 4.28h10.31v1.75h-10.31zM173.28 0h1.75v10.31h-1.75zM169 4.28h10.31v1.75h-10.31zM206.28 0h1.75v10.31h-1.75zM202 4.28h10.31v1.75h-10.31zM241.28 0h1.75v10.31h-1.75zM237 4.28h10.31v1.75h-10.31zM274.28 0h1.75v10.31h-1.75zM270 4.28h10.31v1.75h-10.31zM4.28 30h1.75v10.31h-1.75zM0 34.28h10.31v1.75h-10.31zM37.28 30h1.75v10.31h-1.75zM33 34.28h10.31v1.75h-10.31zM70.28 30h1.75v10.31h-1.75zM66 34.28h10.31v1.75h-10.31zM105.28 30h1.75v10.31h-1.75zM101 34.28h10.31v1.75h-10.31zM138.28 30h1.75v10.31h-1.75zM134 34.28h10.31v1.75h-10.31zM173.28 30h1.75v10.31h-1.75zM169 34.28h10.31v1.75h-10.31zM206.28 30h1.75v10.31h-1.75zM202 34.28h10.31v1.75h-10.31zM241.28 30h1.75v10.31h-1.75zM237 34.28h10.31v1.75h-10.31zM4.28 60h1.75v10.31h-1.75zM0 64.28h10.31v1.75h-10.31zM37.28 60h1.75v10.31h-1.75zM33 64.28h10.31v1.75h-10.31zM70.28 60h1.75v10.31h-1.75zM66 64.28h10.31v1.75h-10.31zM105.28 60h1.75v10.31h-1.75zM101 64.28h10.31v1.75h-10.31zM138.28 60h1.75v10.31h-1.75zM134 64.28h10.31v1.75h-10.31zM173.28 60h1.75v10.31h-1.75zM169 64.28h10.31v1.75h-10.31zM4.28 90h1.75v10.31h-1.75zM0 94.28h10.31v1.75h-10.31zM37.28 90h1.75v10.31h-1.75zM33 94.28h10.31v1.75h-10.31zM70.28 90h1.75v10.31h-1.75zM66 94.28h10.31v1.75h-10.31zM105.28 90h1.75v10.31h-1.75zM101 94.28h10.31v1.75h-10.31zM138.28 90h1.75v10.31h-1.75zM134 94.28h10.31v1.75h-10.31zM173.28 90h1.75v10.31h-1.75zM169 94.28h10.31v1.75h-10.31zM4.28 120h1.75v10.31h-1.75zM0 124.28h10.31v1.75h-10.31zM37.28 120h1.75v10.31h-1.75zM33 124.28h10.31v1.75h-10.31zM70.28 120h1.75v10.31h-1.75zM66 124.28h10.31v1.75h-10.31zM105.28 120h1.75v10.31h-1.75zM101 124.28h10.31v1.75h-10.31zM138.28 120h1.75v10.31h-1.75zM134 124.28h10.31v1.75h-10.31zM4.28 150h1.75v10.31h-1.75zM0 154.28h10.31v1.75h-10.31zM37.28 150h1.75v10.31h-1.75zM33 154.28h10.31v1.75h-10.31zM70.28 150h1.75v10.31h-1.75zM66 154.28h10.31v1.75h-10.31zM105.28 150h1.75v10.31h-1.75zM101 154.28h10.31v1.75h-10.31zM138.28 150h1.75v10.31h-1.75zM134 154.28h10.31v1.75h-10.31zM4.28 180h1.75v10.31h-1.75zM0 184.28h10.31v1.75h-10.31zM37.28 180h1.75v10.31h-1.75zM33 184.28h10.31v1.75h-10.31zM70.28 180h1.75v10.31h-1.75zM66 184.28h10.31v1.75h-10.31zM105.28 180h1.75v10.31h-1.75zM101 184.28h10.31v1.75h-10.31zM138.28 180h1.75v10.31h-1.75zM134 184.28h10.31v1.75h-10.31zM4.28 210h1.75v10.31h-1.75zM0 214.28h10.31v1.75h-10.31zM37.28 210h1.75v10.31h-1.75zM33 214.28h10.31v1.75h-10.31zM70.28 210h1.75v10.31h-1.75zM66 214.28h10.31v1.75h-10.31zM105.28 210h1.75v10.31h-1.75zM101 214.28h10.31v1.75h-10.31zM138.28 210h1.75v10.31h-1.75zM134 214.28h10.31v1.75h-10.31zM4.28 240h1.75v10.31h-1.75zM0 244.28h10.31v1.75h-10.31zM37.28 240h1.75v10.31h-1.75zM33 244.28h10.31v1.75h-10.31zM70.28 240h1.75v10.31h-1.75zM66 244.28h10.31v1.75h-10.31zM105.28 240h1.75v10.31h-1.75zM101 244.28h10.31v1.75h-10.31zM138.28 240h1.75v10.31h-1.75zM134 244.28h10.31v1.75h-10.31zM4.28 270h1.75v10.31h-1.75zM0 274.28h10.31v1.75h-10.31zM37.28 270h1.75v10.31h-1.75zM33 274.28h10.31v1.75h-10.31zM70.28 270h1.75v10.31h-1.75zM66 274.28h10.31v1.75h-10.31zM105.28 270h1.75v10.31h-1.75zM101 274.28h10.31v1.75h-10.31zM138.28 270h1.75v10.31h-1.75zM134 274.28h10.31v1.75h-10.31zM173.28 270h1.75v10.31h-1.75zM169 274.28h10.31v1.75h-10.31z'/%3E%3C/svg%3E") left 10px center no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='182' height='284'%3E%3Cpath fill='%23154B8F' d='M4.28 0h1.75v10.31h-1.75zM0 4.28h10.31v1.75h-10.31zM39.28 0h1.75v10.31h-1.75zM35 4.28h10.31v1.75h-10.31zM72.28 0h1.75v10.31h-1.75zM68 4.28h10.31v1.75h-10.31zM107.28 0h1.75v10.31h-1.75zM103 4.28h10.31v1.75h-10.31zM140.28 0h1.75v10.31h-1.75zM136 4.28h10.31v1.75h-10.31zM175.28 0h1.75v10.31h-1.75zM171 4.28h10.31v1.75h-10.31zM39.28 31h1.75v10.31h-1.75zM35 35.28h10.31v1.75h-10.31zM72.28 31h1.75v10.31h-1.75zM68 35.28h10.31v1.75h-10.31zM107.28 31h1.75v10.31h-1.75zM103 35.28h10.31v1.75h-10.31zM140.28 31h1.75v10.31h-1.75zM136 35.28h10.31v1.75h-10.31zM175.28 31h1.75v10.31h-1.75zM171 35.28h10.31v1.75h-10.31zM39.28 62h1.75v10.31h-1.75zM35 66.28h10.31v1.75h-10.31zM72.28 62h1.75v10.31h-1.75zM68 66.28h10.31v1.75h-10.31zM107.28 62h1.75v10.31h-1.75zM103 66.28h10.31v1.75h-10.31zM140.28 62h1.75v10.31h-1.75zM136 66.28h10.31v1.75h-10.31zM175.28 62h1.75v10.31h-1.75zM171 66.28h10.31v1.75h-10.31zM72.28 93h1.75v10.31h-1.75zM68 97.28h10.31v1.75h-10.31zM107.28 93h1.75v10.31h-1.75zM103 97.28h10.31v1.75h-10.31zM140.28 93h1.75v10.31h-1.75zM136 97.28h10.31v1.75h-10.31zM175.28 93h1.75v10.31h-1.75zM171 97.28h10.31v1.75h-10.31zM72.28 123h1.75v10.31h-1.75zM68 127.28h10.31v1.75h-10.31zM107.28 123h1.75v10.31h-1.75zM103 127.28h10.31v1.75h-10.31zM140.28 123h1.75v10.31h-1.75zM136 127.28h10.31v1.75h-10.31zM175.28 123h1.75v10.31h-1.75zM171 127.28h10.31v1.75h-10.31zM72.28 153h1.75v10.31h-1.75zM68 157.28h10.31v1.75h-10.31zM107.28 153h1.75v10.31h-1.75zM103 157.28h10.31v1.75h-10.31zM140.28 153h1.75v10.31h-1.75zM136 157.28h10.31v1.75h-10.31zM175.28 153h1.75v10.31h-1.75zM171 157.28h10.31v1.75h-10.31zM39.28 183h1.75v10.31h-1.75zM35 187.28h10.31v1.75h-10.31zM72.28 183h1.75v10.31h-1.75zM68 187.28h10.31v1.75h-10.31zM107.28 183h1.75v10.31h-1.75zM103 187.28h10.31v1.75h-10.31zM140.28 183h1.75v10.31h-1.75zM136 187.28h10.31v1.75h-10.31zM175.28 183h1.75v10.31h-1.75zM171 187.28h10.31v1.75h-10.31zM39.28 213h1.75v10.31h-1.75zM35 217.28h10.31v1.75h-10.31zM72.28 213h1.75v10.31h-1.75zM68 217.28h10.31v1.75h-10.31zM107.28 213h1.75v10.31h-1.75zM103 217.28h10.31v1.75h-10.31zM140.28 213h1.75v10.31h-1.75zM136 217.28h10.31v1.75h-10.31zM175.28 213h1.75v10.31h-1.75zM171 217.28h10.31v1.75h-10.31zM39.28 243h1.75v10.31h-1.75zM35 247.28h10.31v1.75h-10.31zM72.28 243h1.75v10.31h-1.75zM68 247.28h10.31v1.75h-10.31zM107.28 243h1.75v10.31h-1.75zM103 247.28h10.31v1.75h-10.31zM140.28 243h1.75v10.31h-1.75zM136 247.28h10.31v1.75h-10.31zM175.28 243h1.75v10.31h-1.75zM171 247.28h10.31v1.75h-10.31zM6.28 273h1.75v10.31h-1.75zM2 277.28h10.31v1.75h-10.31zM39.28 273h1.75v10.31h-1.75zM35 277.28h10.31v1.75h-10.31zM72.28 273h1.75v10.31h-1.75zM68 277.28h10.31v1.75h-10.31zM107.28 273h1.75v10.31h-1.75zM103 277.28h10.31v1.75h-10.31zM140.28 273h1.75v10.31h-1.75zM136 277.28h10.31v1.75h-10.31zM175.28 273h1.75v10.31h-1.75zM171 277.28h10.31v1.75h-10.31z'/%3E%3C/svg%3E") right 10px center no-repeat;
}
@media (max-width: 1024px) {
	/* Sur tablette et mobile, les blocs passeraient sous les boutons. */
	.lc2r-croix-suivez-nous::after { display: none; }
}
