/*
Theme Name: Activité Île Maurice
Theme URI: https://activite-ile-maurice.com
Author: Seobooster Ltd
Description: Thème code-pur pour activite-ile-maurice.com — agrégateur/booking d'activités touristiques à l'île Maurice. Capture de leads (devis, WhatsApp, téléphone), zéro page builder.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: activite-ile-maurice
*/

/* ==========================================================================
   0. RESET SOBRE + PROPRIÉTÉS DE CONTRASTE (clair ET sombre — P-110/P-351)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:root {
	/* Lagon turquoise profond + corail coucher de soleil + basalte volcanique sombre */
	--bg:            #F3FAF9;
	--surface:       #FFFFFF;
	--surface-2:     #EAF4F2;
	--ink:           #0E2224;
	--ink-soft:      #3B5457;
	--line:          #D3E6E3;

	--accent:        #0E7C74; /* lagon */
	--accent-fonce:  #0A5F59;
	--accent-clair:  #E3F3F1;

	--corail:        #FF6B4A; /* coucher de soleil */
	--corail-fonce:  #E0512F;

	--basalte:       #14201F; /* volcanique sombre — sections contrastées, en clair ET en sombre */
	--basalte-2:     #1D2C2A;
	--sur-basalte:   #F3FAF9;
	--sur-basalte-soft: #AFC7C4;

	--on-accent:     #FFFFFF;
	--on-corail:     #201008;

	--radius: 18px;
	--radius-sm: 10px;
	--ombre: 0 16px 34px -16px rgba(14, 34, 36, .30);

	--font-head: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

	--barre-h: 64px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg:            #0F1817;
		--surface:       #16211F;
		--surface-2:     #1C2927;
		--ink:           #EAF6F4;
		--ink-soft:      #AFC7C4;
		--line:          #263735;

		--accent:        #35D6C0;
		--accent-fonce:  #21A392;
		--accent-clair:  #16302C;

		--corail:        #FF8A67;
		--corail-fonce:  #E0653F;

		--basalte:       #0A1211;
		--basalte-2:     #0F1B19;
		--sur-basalte:   #EAF6F4;
		--sur-basalte-soft: #8FADAA;

		--on-accent:     #06201D;
		--on-corail:     #26120A;

		--ombre: 0 16px 34px -16px rgba(0, 0, 0, .6);
	}
}

/* ==========================================================================
   1. TYPOGRAPHIE — self-hosted (P-086). Binaires à déposer par l'orchestrateur
   dans assets/fonts/ (voir NOTES-DESIGNER.md) ; repli système tant qu'absents.
   ========================================================================== */
@font-face {
	font-family: 'Space Grotesk';
	src: url('assets/fonts/space-grotesk-600.woff2') format('woff2');
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('assets/fonts/inter-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('assets/fonts/inter-600.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

body {
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--ink);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.15;
	color: var(--ink);
}
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
p { color: var(--ink-soft); }
strong { color: var(--ink); }

.skip-lien {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--accent); color: var(--on-accent); padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-lien:focus { left: 0; }

.conteneur { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(40px, 8vw, 88px); }
.section--basalte { background: var(--basalte); color: var(--sur-basalte); }
.section--basalte h2, .section--basalte h3 { color: var(--sur-basalte); }
.section--basalte p { color: var(--sur-basalte-soft); }
.section-tete { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-tete p { margin-top: 10px; font-size: 1.05rem; }
.eyebrow {
	display: inline-block; font-family: var(--font-head); font-weight: 700;
	font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
	color: var(--accent-fonce); background: var(--accent-clair);
	padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.section--basalte .eyebrow { color: var(--basalte); background: var(--corail); }

/* ==========================================================================
   2. BOUTONS
   ========================================================================== */
.bouton {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px;
	font-family: var(--font-head); font-weight: 700; font-size: .98rem;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
	white-space: nowrap;
}
.bouton:hover, .bouton:focus-visible { transform: translateY(-1px); }
.bouton--accent  { background: var(--accent); color: var(--on-accent); }
.bouton--accent:hover  { background: var(--accent-fonce); }
.bouton--corail  { background: var(--corail); color: var(--on-corail); }
.bouton--corail:hover  { background: var(--corail-fonce); }
.bouton--fantome {
	background: transparent; color: var(--ink); border: 1.5px solid var(--line);
}
.section--basalte .bouton--fantome { color: var(--sur-basalte); border-color: rgba(255,255,255,.28); }
.bouton--fantome:hover { border-color: var(--accent); color: var(--accent); }
.bouton--bloc { width: 100%; }
.bouton svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   3. EN-TÊTE / NAVIGATION (flex, sans puces)
   ========================================================================== */
.entete {
	position: sticky; top: 0; z-index: 60;
	background: var(--bg); /* repli si color-mix() n'est pas supporté */
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.entete-barre {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px; padding-block: 12px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-marque { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.logo svg { width: 38px; height: 38px; flex: none; }

.nav-principale { display: none; }
.nav-principale ul { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-principale a {
	font-weight: 600; font-size: .96rem; color: var(--ink-soft);
	padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-principale a:hover, .nav-principale a:focus-visible { color: var(--ink); border-color: var(--corail); }

.entete-actions { display: flex; align-items: center; gap: 10px; }
.entete-tel {
	display: none; align-items: center; gap: 8px; font-weight: 700; color: var(--ink);
}
.entete-tel svg { width: 18px; height: 18px; color: var(--accent); }

.menu-toggle {
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
}
.menu-toggle svg { width: 22px; height: 22px; }

.nav-mobile {
	display: none; position: fixed; inset: 0; z-index: 70;
	background: var(--bg); padding: 20px; overflow-y: auto;
}
.nav-mobile.est-ouvert { display: block; }
.nav-mobile-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav-mobile a {
	display: block; padding: 14px 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
	color: var(--ink); border-bottom: 1px solid var(--line);
}
.nav-mobile-contact { margin-top: 24px; display: grid; gap: 10px; }

@media (min-width: 960px) {
	.nav-principale { display: block; }
	.entete-tel { display: inline-flex; }
	.menu-toggle, .nav-mobile { display: none; }
}

/* ==========================================================================
   4. BANDEAU DE CONFIRMATION
   ========================================================================== */
.bandeau-envoye {
	background: var(--accent-clair); color: var(--accent-fonce); font-weight: 600;
	padding: 14px 20px; text-align: center; border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   5. HERO (accueil)
   ========================================================================== */
.hero {
	position: relative; color: var(--sur-basalte);
	background: linear-gradient(180deg, rgba(10,18,17,.55), rgba(10,18,17,.82)), var(--basalte);
	background-size: cover; background-position: center;
	padding-block: 56px 64px;
}
.hero.a-photo { background-image: linear-gradient(180deg, rgba(10,18,17,.42), rgba(10,18,17,.86)), var(--hero-photo, none); background-size: cover; background-position: center; }
.hero-contenu { max-width: 720px; }
.hero-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700;
	font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--basalte);
	background: var(--corail); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero-sous { font-size: clamp(1.02rem, 2.2vw, 1.2rem); color: rgba(255,255,255,.86); max-width: 56ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-tel {
	display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 1.02rem;
}
.hero-tel svg { width: 20px; height: 20px; color: var(--corail); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff;
	padding: 8px 14px; border-radius: 999px;
}
.chip svg { width: 16px; height: 16px; color: var(--accent); }

/* ==========================================================================
   6. GRILLES (zones / activités / croisements)
   ========================================================================== */
.grille {
	display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 620px) { .grille--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
	.grille--3 { grid-template-columns: repeat(3, 1fr); }
	.grille--4 { grid-template-columns: repeat(4, 1fr); }
}

.carte {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--ombre); height: 100%;
}
.carte-photo { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; }
.carte-corps { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.carte-corps h3 { font-size: 1.08rem; }
.carte-corps p { font-size: .92rem; margin: 0; }
.carte-lien {
	margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
	font-weight: 700; font-size: .9rem; color: var(--accent-fonce);
}
.carte-lien svg { width: 14px; height: 14px; transition: transform .15s ease; }
.carte a.carte-etirement::after { content: ""; position: absolute; inset: 0; }
.carte:hover { box-shadow: 0 20px 40px -16px rgba(14,34,36,.35); border-color: var(--accent); }
.carte:hover .carte-lien svg { transform: translateX(3px); }

/* croisements : image + texte côte à côte sur desktop */
.carte--croisement { flex-direction: column; }
@media (min-width: 720px) {
	.carte--croisement { flex-direction: row; }
	.carte--croisement .carte-photo { width: 42%; aspect-ratio: auto; }
	.carte--croisement .carte-corps { width: 58%; justify-content: center; }
}

/* ==========================================================================
   7. COMMENT ÇA MARCHE
   ========================================================================== */
.etapes { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 800px) { .etapes { grid-template-columns: repeat(3, 1fr); } }
.etape { display: flex; flex-direction: column; gap: 10px; }
.etape-numero {
	display: flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%; background: var(--corail); color: var(--on-corail);
	font-family: var(--font-head); font-weight: 700;
}
.etape h3 { font-size: 1.1rem; }
.etape p { font-size: .95rem; }

/* ==========================================================================
   8. FORMULAIRE DE DEVIS (multi-étapes)
   ========================================================================== */
.devis-bloc {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: clamp(20px, 4vw, 32px); box-shadow: var(--ombre);
}
.devis-bloc h2 { margin-bottom: 6px; }
.devis-bloc > p { margin-bottom: 20px; }
.devis-form { display: grid; gap: 16px; }
.devis-piege { position: absolute; left: -9999px; }
.devis-champ { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.devis-champ em { font-weight: 400; color: var(--ink-soft); }
.devis-champ input, .devis-champ select, .devis-champ textarea {
	border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
	background: var(--bg); color: var(--ink); font-size: .98rem; min-height: 48px;
}
.devis-champ textarea { min-height: 90px; resize: vertical; }
.devis-champ input:focus, .devis-champ select:focus, .devis-champ textarea:focus {
	outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.devis-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.devis-note { font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
.devis-etape legend { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; margin-bottom: 12px; padding: 0; }
.devis-suivant { align-self: start; }

/* ==========================================================================
   9. FIL D'ARIANE + EN-TÊTE DE PAGE + CONTENU
   ========================================================================== */
.fil-ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--ink-soft); }
.fil-ariane li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--line); }
.fil-ariane a:hover { color: var(--accent); }

.page-entete { padding-block: 32px 0; }
.page-entete h1 { margin-bottom: 10px; }
.page-chapo { font-size: 1.08rem; max-width: 70ch; }

.page-hero-photo { margin-top: 24px; border-radius: var(--radius); overflow: hidden; max-height: 420px; }
.page-hero-photo img { width: 100%; max-height: 420px; object-fit: cover; }

.page-lien-rapide {
	display: flex; flex-wrap: wrap; gap: 10px; margin-block: 24px;
	padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-clair);
}
.page-lien-rapide a, .page-lien-rapide span { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--accent-fonce); }
.page-lien-rapide svg { width: 16px; height: 16px; }

.page-wrap {
	display: grid; gap: 32px; padding-block: 12px 56px;
	grid-template-areas: "aside" "contenu";
}
.page-aside { grid-area: aside; }
.page-contenu-zone { grid-area: contenu; min-width: 0; }
@media (min-width: 980px) {
	.page-wrap { grid-template-columns: 2fr 1fr; grid-template-areas: "contenu aside"; align-items: start; }
	.page-aside { position: sticky; top: calc(var(--barre-h) + 24px); }
}

.contenu-page { font-size: 1.02rem; }
.contenu-page > * + * { margin-top: 1.1em; }
.contenu-page h2 { margin-top: 1.6em; }
.contenu-page h3 { margin-top: 1.3em; }
.contenu-page ul, .contenu-page ol { padding-left: 1.3em; }
.contenu-page ul { list-style: disc; }
.contenu-page ol { list-style: decimal; }
.contenu-page li + li { margin-top: .4em; }
.contenu-page blockquote {
	border-left: 4px solid var(--corail); padding: 4px 0 4px 18px; color: var(--ink); font-style: italic;
}
.contenu-page img { border-radius: var(--radius-sm); }
.contenu-page a { color: var(--accent-fonce); text-decoration: underline; text-underline-offset: 3px; }

/* tableaux : le socle enveloppe déjà dans .sbs_tableau, on stylise l'intérieur */
.sbs_tableau { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-block: 1.2em; -webkit-overflow-scrolling: touch; }
.sbs_tableau table { width: 100%; border-collapse: collapse; min-width: 480px; }
.sbs_tableau th, .sbs_tableau td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; }
.sbs_tableau th { background: var(--surface-2); font-family: var(--font-head); }

/* ==========================================================================
   10. PAGES LIÉES / FAQ TEASER
   ========================================================================== */
.liens-lies { display: flex; flex-wrap: wrap; gap: 10px; }
.lien-lie {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px;
	background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; font-size: .9rem;
}
.lien-lie:hover { border-color: var(--accent); color: var(--accent-fonce); }

.bandeau-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	background: var(--basalte); color: var(--sur-basalte); border-radius: var(--radius);
	padding: clamp(24px, 5vw, 40px); margin-block: 40px;
}
.bandeau-cta h2 { color: #fff; margin-bottom: 6px; }
.bandeau-cta p { color: var(--sur-basalte-soft); margin: 0; }
.bandeau-cta .devis-actions, .bandeau-cta .hero-actions { margin: 0; }

/* ==========================================================================
   11. PIED DE PAGE
   ========================================================================== */
.pied { background: var(--basalte); color: var(--sur-basalte-soft); padding-block: 48px 24px; }
.pied a { color: var(--sur-basalte-soft); }
.pied a:hover { color: var(--corail); }
.pied-grille { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 760px) { .pied-grille { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.pied-marque { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pied-marque svg { width: 34px; height: 34px; }
.pied-marque span { font-family: var(--font-head); font-weight: 700; color: #fff; }
.pied h4 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.pied ul { list-style: none; display: grid; gap: 9px; font-size: .92rem; }
.pied-contact { display: grid; gap: 10px; margin-top: 16px; }
.pied-bas { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .82rem; }
.pied-bas ul { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; }

/* ==========================================================================
   12. BARRE D'ACTION FIXE MOBILE (4 entrées max, 44px, safe-area)
   ========================================================================== */
.barre-mobile {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: var(--surface); border-top: 1px solid var(--line);
	padding-bottom: env(safe-area-inset-bottom, 0);
	box-shadow: 0 -8px 22px -14px rgba(0,0,0,.25);
}
.barre-mobile a, .barre-mobile button {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	min-height: 60px; padding: 6px 4px; background: none; border: 0;
	font-size: .68rem; font-weight: 700; color: var(--ink-soft);
}
.barre-mobile svg { width: 20px; height: 20px; }
.barre-mobile .est-corail { color: var(--corail-fonce); }
.barre-mobile .est-accent { color: var(--accent-fonce); }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0)); }
@media (min-width: 960px) {
	.barre-mobile { display: none; }
	body { padding-bottom: 0; }
}

/* Bouton WhatsApp flottant (au-dessus de la barre mobile) */
.wa-flottant {
	position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0)); z-index: 64;
	width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 24px -8px rgba(0,0,0,.4);
}
.wa-flottant svg { width: 28px; height: 28px; }
@media (min-width: 960px) {
	.wa-flottant { bottom: 24px; }
}

/* ==========================================================================
   13. UTILITAIRES
   ========================================================================== */
.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.texte-centre { text-align: center; }
.texte-centre .section-tete { margin-inline: auto; }
