/*
Theme Name: Location Auto Maurice
Theme URI: https://location-auto-maurice.com
Author: Seobooster LTD
Description: Thème sur-mesure, code-pur — location de voiture pratique à Maurice pour familles et professionnels résidents/expatriés. Livraison à domicile/hôtel/aéroport, location longue durée.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: location-auto-maurice
*/

/* ==========================================================================
   PALETTE — famille FROIDE, choisie pour être distincte des 3 autres sites
   crème + accent chaud du même compte serveur :
     location-voiture-pas-cher-maurice.com : fond #F5F2EC, accent #FF5A1F, pied #1B1710
     plumbermauritius.com                  : fond #F3EFE7
     taxi-ile-maurice.fr                   : fond #F4F2EE, accent #8A4B2E
   Ici : fond gris-bleu très clair (pas de crème), encre bleu-nuit profond,
   accent teal/pétrole franc (ni orange, ni brun). Pile typographique système
   (aucun fichier de police à charger) — la personnalité vient des graisses,
   tailles et espacements, pas d'un fichier tiers.

   PROCÉDÉS relevés sur la référence du réseau (fighter-360.com), transposés
   ici SANS reprendre sa palette (P-203). Note de méthode : cet environnement
   de travail n'a pas d'outil de navigation web — ces procédés reprennent les
   conventions documentées du kit pour ce type de site à forte conversion
   (renoncement assumé, voir rapport de fin de mission) :
     1. Titre héros surdimensionné, graisse maximale, tracking négatif serré.
     2. Rythme de sections alterné (fond neutre / fond--alt) plutôt qu'un long
        déroulé monotone, pour scander la page sans ajouter de couleur.
     3. Cartes qui se soulèvent au survol (translateY + ombre progressive),
        jamais un simple changement de couleur plat.
     4. Barre d'action fixe mobile à 4 icônes + libellés courts, priorité
        absolue à l'appel/au message plutôt qu'au scroll.
     5. Pastilles rondes (chips) pour les métadonnées répétitives (villes),
        plus denses qu'une liste à puces classique.
     6. Bandeau CTA de fin de page toujours sur fond « inversé » fixe (encre
        profonde) pour marquer une rupture visuelle avant le pied de page.
     7. Icônes tracées à la main (SVG en ligne), jamais une police d'icônes.
   ========================================================================== */

:root {
	--bg: #F7F9FA;
	--bg-alt: #EDF2F4;
	--surface: #FFFFFF;
	--encre: #0B1F33;
	--encre-douce: #3C5468;
	--encre-att: #64798C;
	--accent: #0E7C86;
	--accent-fonce: #0A5D64;
	--accent-clair: #E1F1F1;
	--ligne: #DCE3E7;
	--ombre: 0 12px 30px -18px rgba(11, 31, 51, .35);
	--rayon: 16px;
	--rayon-sm: 10px;
	--police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--marge-max: 1180px;

	/* Bandeau « inversé » : toujours sombre, dans les deux modes (P-351 vérifié
	   dans les deux : blanc sur bleu-nuit passe l'AA en clair comme en sombre). */
	--panel-fonce: #0B1F33;
	--panel-texte: #FFFFFF;
	--panel-texte-att: #C9D6DD;

	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0A1420;
		--bg-alt: #0F1E2C;
		--surface: #122132;
		--encre: #EAF2F5;
		--encre-douce: #B7C7D2;
		--encre-att: #8CA0AF;
		--accent: #2FB6AC;
		--accent-fonce: #6FD1C8;
		--accent-clair: #123A3A;
		--ligne: #22394A;
		--ombre: 0 12px 30px -16px rgba(0, 0, 0, .6);
	}
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--encre);
	font-family: var(--police);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; background: none; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (max-width: 959px) { body { padding-bottom: 64px; } }

/* ==========================================================================
   TYPOGRAPHIE
   ========================================================================== */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; color: var(--encre); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--encre-douce); }
.eyebrow {
	display: inline-block; font-size: .78rem; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; color: var(--accent-fonce);
	margin-bottom: .6em;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.conteneur { max-width: var(--marge-max); margin-inline: auto; padding-inline: 20px; }
.conteneur--etroit { max-width: 820px; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--bg-alt); }
.grille-3 { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 720px) { .grille-3 { grid-template-columns: repeat(3, 1fr); } }
.grille-villes { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
@media (min-width: 640px) { .grille-villes { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grille-villes { grid-template-columns: repeat(4, 1fr); } }
.grille-villes--compacte { grid-template-columns: repeat(2, 1fr); margin-top: 14px; }

/* ==========================================================================
   BOUTONS
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	min-height: 44px; padding: .65em 1.3em; border-radius: 999px;
	font-weight: 700; font-size: .95rem; border: 2px solid transparent;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-fonce); transform: translateY(-1px); }
.btn--outline { border-color: var(--encre); color: var(--encre); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-fonce); }
.btn--ghost { color: var(--accent-fonce); padding-inline: .4em; }
.btn--ghost:hover { text-decoration: underline; }
.btn--lg { padding: .85em 1.6em; font-size: 1rem; }
@media (prefers-color-scheme: dark) {
	.btn--accent { color: #04201f; }
}

/* ==========================================================================
   EN-TÊTE
   ========================================================================== */
.lam-skip {
	position: absolute; left: -999px; top: 0; z-index: 100;
	background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.lam-skip:focus { left: 0; }

.site-header {
	position: sticky; top: 0; z-index: 40;
	background: var(--bg); border-bottom: 1px solid var(--ligne);
	transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--ombre); }
.site-header__barre { position: relative; display: flex; align-items: center; gap: 16px; padding-block: 12px; }

.site-header__marque { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; margin-right: auto; min-width: 0; }
.site-header__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lam-logo { width: 38px; height: 38px; flex: none; }
.lam-logo__socle { fill: var(--encre); }
.lam-logo__trace { stroke: var(--accent); }
.lam-logo__point { fill: var(--accent); }
/* 🪤 mesuré : le nom du site + le numéro complet ne tiennent pas sur 390px avec le bouton menu.
   On masque le nom (le logo suffit à identifier la marque) ET le texte du numéro (l'icône reste
   un lien tel: cliquable) tant que la largeur est celle d'un téléphone — marge large (480px, pas
   399px) pour rester robuste sur tous les mobiles réels, pas seulement l'échantillon testé. */
@media (max-width: 480px) { .site-header__nom { display: none; } }

.lam-menu-toggle { position: absolute; }
.site-header__bouton-menu {
	order: 3; display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; cursor: pointer; color: var(--encre);
}
.site-header__bouton-menu svg { width: 24px; height: 24px; }
.site-header__icone-fermer { display: none; }
.lam-menu-toggle:checked ~ .site-header__bouton-menu .site-header__icone-menu { display: none; }
.lam-menu-toggle:checked ~ .site-header__bouton-menu .site-header__icone-fermer { display: block; }
@media (min-width: 960px) { .site-header__bouton-menu { display: none; } }

.nav-primaire { display: none; order: 2; width: 100%; }
.lam-menu-toggle:checked ~ .nav-primaire {
	display: block; position: absolute; top: 100%; left: 0; right: 0;
	background: var(--surface); border-bottom: 1px solid var(--ligne);
	padding: 18px 20px; box-shadow: var(--ombre);
}
.nav-primaire__liste { display: flex; flex-direction: column; gap: 14px; }
.nav-primaire__liste a { font-weight: 600; color: var(--encre-douce); }
.nav-primaire__liste a:hover { color: var(--accent-fonce); }
@media (min-width: 960px) {
	.nav-primaire { display: block; width: auto; order: 0; position: static; }
	.nav-primaire__liste { flex-direction: row; gap: 26px; }
}

.site-header__actions { order: 2; display: flex; align-items: center; gap: 14px; margin-left: auto; flex: none; }
@media (min-width: 960px) { .site-header__actions { order: 0; margin-left: 0; } }
.site-header__tel { display: flex; align-items: center; gap: .4em; font-weight: 700; white-space: nowrap; }
.site-header__tel svg { width: 18px; height: 18px; color: var(--accent-fonce); }
/* icône tel: toujours cliquable (44px de zone tactile via le padding du lien) ; le numéro en
   toutes lettres n'est utile que quand la place ne manque pas. */
@media (max-width: 480px) { .site-header__tel span { display: none; } .site-header__tel { padding: 10px; } }
@media (max-width: 959px) { .site-header__devis { display: none; } }

/* Sous-menus (Véhicules/Services/Villes) : empilés et indentés en mobile (menu plein écran),
   repliés en menu déroulant au survol/focus à partir du bureau — sans ça ils restent affichés en
   permanence et éventrent la barre du haut (mesuré en capture 1440px). */
.nav-primaire__liste .sub-menu { list-style: none; margin: 8px 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nav-primaire__liste .sub-menu a { font-weight: 500; font-size: .95rem; }
@media (min-width: 960px) {
	.nav-primaire__liste li.menu-item-has-children { position: relative; }
	.nav-primaire__liste .sub-menu {
		display: none; position: absolute; top: 100%; left: 0; margin: 0; min-width: 230px;
		background: var(--surface); border: 1px solid var(--ligne); border-radius: 10px;
		padding: 10px; box-shadow: var(--ombre); gap: 4px; z-index: 50;
	}
	.nav-primaire__liste li.menu-item-has-children:hover > .sub-menu,
	.nav-primaire__liste li.menu-item-has-children:focus-within > .sub-menu { display: flex; }
	.nav-primaire__liste .sub-menu a { white-space: nowrap; display: block; padding: 6px 8px; border-radius: 6px; }
	.nav-primaire__liste .sub-menu a:hover { background: var(--bg-alt); }
}

.lam-whatsapp-flottant {
	position: fixed; right: 18px; bottom: 88px; z-index: 45;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--accent); color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--ombre);
}
.lam-whatsapp-flottant svg { width: 28px; height: 28px; }
@media (min-width: 960px) { .lam-whatsapp-flottant { bottom: 26px; } }

/* Barre d'action fixe mobile */
.lam-barre-mobile {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 46;
	display: flex; background: var(--surface); border-top: 1px solid var(--ligne);
	padding-bottom: env(safe-area-inset-bottom);
	box-shadow: 0 -8px 20px -18px rgba(11, 31, 51, .4);
}
@media (min-width: 960px) { .lam-barre-mobile { display: none; } }
.lam-barre-mobile__item {
	flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 2px; padding: 8px 4px; min-height: 56px; font-size: .72rem; font-weight: 700;
	color: var(--encre-douce);
}
.lam-barre-mobile__item svg { width: 22px; height: 22px; color: var(--accent-fonce); }

/* ==========================================================================
   HÉROS
   ========================================================================== */
.hero { padding-block: 48px 56px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.hero__grille { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero__grille { grid-template-columns: 1.1fr 1fr; } }
.hero__sous-titre { font-size: 1.05rem; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__visuel { border-radius: var(--rayon); overflow: hidden; background: var(--bg-alt); }
.hero__photo { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }

.lam-illustration { width: 100%; height: auto; }
.lam-illustration__ciel { fill: var(--accent-clair); }
.lam-illustration__sol { fill: var(--bg-alt); }
.lam-illustration__route { fill: none; stroke: var(--encre-douce); stroke-width: 46; opacity: .18; }
.lam-illustration__bande { fill: none; stroke: var(--surface); stroke-width: 6; }
.lam-illustration__carrosserie { fill: var(--accent); }
.lam-illustration__roue { fill: var(--encre); }

/* ==========================================================================
   BANDEAU DE CONFIANCE
   ========================================================================== */
.bandeau-confiance { padding-block: 36px; }
.bandeau-confiance__grille { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bandeau-confiance__grille { grid-template-columns: repeat(4, 1fr); } }
.bandeau-confiance__item {
	display: flex; flex-direction: column; gap: 10px; padding: 18px;
	background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon-sm);
}
.bandeau-confiance__item svg { width: 26px; height: 26px; color: var(--accent-fonce); }
.bandeau-confiance__item p { margin: 0; font-size: .92rem; }

/* ==========================================================================
   CARTES (véhicules / services)
   ========================================================================== */
.carte {
	display: flex; align-items: center; gap: 14px; padding: 20px;
	background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); border-color: var(--accent); }
.carte__icone {
	flex: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
	background: var(--accent-clair); border-radius: 12px; color: var(--accent-fonce);
}
.carte__icone svg { width: 24px; height: 24px; }
.carte__titre { flex: 1; font-weight: 700; }
.carte__fleche { color: var(--encre-att); width: 18px; height: 18px; transition: transform .18s ease, color .18s ease; }
.carte:hover .carte__fleche { transform: translateX(4px); color: var(--accent-fonce); }

/* ==========================================================================
   CHIPS VILLES
   ========================================================================== */
.chip-ville {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
	background: var(--surface); border: 1px solid var(--ligne); border-radius: 999px;
	font-weight: 600; font-size: .9rem; transition: border-color .15s ease, color .15s ease;
}
.chip-ville svg { width: 16px; height: 16px; color: var(--accent-fonce); }
.chip-ville:hover { border-color: var(--accent); color: var(--accent-fonce); }

/* ==========================================================================
   MINI-FAQ (accueil)
   ========================================================================== */
.faq-mini__liste { display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.faq-mini__item {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 16px 18px; background: var(--surface); border: 1px solid var(--ligne);
	border-radius: var(--rayon-sm); font-weight: 600; transition: border-color .15s ease;
}
a.faq-mini__item:hover { border-color: var(--accent); }
.faq-mini__item svg { width: 18px; height: 18px; color: var(--accent-fonce); flex: none; }

/* ==========================================================================
   BANDEAU DEVIS (inversé, toujours contrasté — voir --panel-*)
   ========================================================================== */
.section--devis { background: var(--panel-fonce); }
.section--devis .eyebrow { color: var(--accent); }
.devis__grille { display: grid; gap: 28px; }
@media (min-width: 900px) { .devis__grille { grid-template-columns: 1fr 1fr; align-items: start; } }
.devis__texte h2 { color: var(--panel-texte); }
.devis__texte p { color: var(--panel-texte-att); }

/* ==========================================================================
   FORMULAIRE — le mu-plugin sb-lead-form.php rend son propre balisage (hors
   de ce thème) : on ne connaît pas ses noms de classes internes (P-204), on
   n'habille donc que le conteneur qu'on écrit nous-mêmes.
   ========================================================================== */
.lam-form-wrap { background: var(--surface); border-radius: var(--rayon); padding: 22px; border: 1px solid var(--ligne); }
.lam-form-wrap__titre { font-weight: 700; margin-bottom: 12px; }

/* ==========================================================================
   RAPPEL FINAL
   ========================================================================== */
.rappel-final { text-align: center; }
.rappel-final__contenu .hero__cta { justify-content: center; }

/* ==========================================================================
   PAGES DE CONTENU (villes, informationnel, contact)
   ========================================================================== */
.fil-ariane { padding-block: 14px; font-size: .85rem; color: var(--encre-att); border-bottom: 1px solid var(--ligne); }
.fil-ariane a { color: var(--encre-att); }
.fil-ariane a:hover { color: var(--accent-fonce); }
.fil-ariane span[aria-hidden] { margin: 0 6px; }

.page-bandeau { max-height: 340px; overflow: hidden; }
.page-bandeau__image { width: 100%; height: 340px; object-fit: cover; }

.cta-inline { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.cta-inline--bas { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--ligne); }

.zone-couverte {
	display: flex; align-items: flex-start; gap: 12px;
	background: var(--accent-clair); border-radius: var(--rayon-sm); padding: 16px 18px; margin: 22px 0;
}
.zone-couverte svg { width: 22px; height: 22px; color: var(--accent-fonce); flex: none; margin-top: 2px; }
.zone-couverte p { margin: 0; color: var(--encre); }

.contenu-page { color: var(--encre-douce); }
.contenu-page h2 { margin-top: 1.6em; }
.contenu-page h3 { margin-top: 1.3em; color: var(--encre); }
.contenu-page ul { padding-left: 1.3em; margin: 0 0 1em; list-style: disc; }
.contenu-page ol { padding-left: 1.3em; margin: 0 0 1em; list-style: decimal; }
.contenu-page a { color: var(--accent-fonce); text-decoration: underline; }
.contenu-page img { border-radius: var(--rayon-sm); margin: 1em 0; }

/* Enveloppe des tableaux posée par le socle (socle-mobile.php) — c'est ici,
   dans le thème, que le rendu visuel du défilement est stylé (P-407). */
.sbs_tableau { overflow-x: auto; margin: 1.4em 0; -webkit-overflow-scrolling: touch; }
.sbs_tableau table { width: 100%; border-collapse: collapse; min-width: 520px; }
.sbs_tableau th, .sbs_tableau td { padding: 10px 14px; border: 1px solid var(--ligne); text-align: left; }
.sbs_tableau th { background: var(--bg-alt); }

.sommaire { background: var(--bg-alt); border: 1px solid var(--ligne); border-radius: var(--rayon-sm); padding: 18px 20px; margin: 24px 0; }
.sommaire__titre { font-weight: 700; margin-bottom: 8px; color: var(--encre); }
.sommaire ol { padding-left: 1.2em; margin: 0; list-style: decimal; }
.sommaire a { color: var(--accent-fonce); font-weight: 600; }

.villes-voisines { margin: 32px 0; }
.villes-voisines__titre { font-weight: 700; margin-bottom: 10px; color: var(--encre); }
.villes-voisines ul { display: flex; flex-wrap: wrap; gap: 10px; }
.villes-voisines a {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
	border: 1px solid var(--ligne); border-radius: 999px; font-weight: 600; font-size: .88rem;
}
.villes-voisines a svg { width: 14px; height: 14px; color: var(--accent-fonce); }
.villes-voisines a:hover { border-color: var(--accent); color: var(--accent-fonce); }

.contact__grille { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact__grille { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.contact__coordonnees { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.contact__coordonnees a { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.contact__coordonnees svg { width: 20px; height: 20px; color: var(--accent-fonce); }
.zone-service { margin-top: 28px; }
.zone-service__titre { font-weight: 700; margin-bottom: 12px; color: var(--encre); }

.page-404 { text-align: center; padding-block: 60px; }

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--ligne); padding-block: 48px 24px; margin-top: 60px; }
.pied__grille { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pied__grille { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pied__grille { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.pied__marque { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 12px; }
.pied__marque .lam-logo { width: 32px; height: 32px; }
.pied__texte { font-size: .9rem; color: var(--encre-att); max-width: 38ch; }
.pied__titre { font-weight: 700; margin-bottom: 12px; color: var(--encre); }
.pied__contact { display: flex; flex-direction: column; gap: 8px; }
.pied__contact a { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--encre-douce); }
.pied__contact svg { width: 16px; height: 16px; color: var(--accent-fonce); }
.pied__liens { display: flex; flex-direction: column; gap: 8px; }
.pied__liens a { font-size: .92rem; color: var(--encre-douce); }
.pied__liens a:hover { color: var(--accent-fonce); }
.pied__bas { border-top: 1px solid var(--ligne); margin-top: 32px; padding-top: 18px; font-size: .82rem; color: var(--encre-att); }
