/* ==========================================================================
   DOMOSAFE - MAISON CONNECTÉE & PRÉVENTION ANTI-SINISTRE
   Design System Apple Lumineux, Rassurant, Serein et Épuré (Safe White Theme)
   ========================================================================== */

:root {
  /* Palette Apple Lumineuse & Rassurante */
  --bg-body: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-card: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.88);
  --bg-nav-sub: rgba(248, 250, 252, 0.95);

  /* Couleurs d'action & de confiance */
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-blue-light: #0284c7;
  --apple-blue-subtle: rgba(0, 113, 227, 0.07);

  /* Vert de sécurité & validation (100% Safe) */
  --apple-green: #10b981;
  --apple-green-deep: #059669;
  --apple-green-bg: rgba(16, 185, 129, 0.1);
  --apple-green-light: #34d399;

  /* Teintes chaudes et rassurantes */
  --apple-orange: #ea580c;
  --apple-orange-bg: rgba(234, 88, 12, 0.08);
  --apple-yellow: #ca8a04;
  --apple-yellow-bg: rgba(202, 138, 4, 0.08);
  --apple-red: #dc2626;

  /* Typographie & Lisibilité maximale */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;

  /* Bordures subtiles & Ombres douces */
  --border-subtle: #e2e8f0;
  --border-light: #cbd5e1;
  --border-card: rgba(226, 232, 240, 0.8);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.08);
  --shadow-green: 0 10px 25px -5px rgba(16, 185, 129, 0.25);

  /* Rayons arrondis Apple */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 980px;

  /* Transitions fluides */
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 0.2s var(--ease-apple);
  --transition-smooth: 0.35s var(--ease-apple);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Conteneurs */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--apple-blue);
  background: var(--apple-blue-subtle);
  border: 1px solid rgba(0, 113, 227, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.eyebrow.green {
  color: var(--apple-green-deep);
  background: var(--apple-green-bg);
  border-color: rgba(16, 185, 129, 0.2);
}

.eyebrow.orange {
  color: var(--apple-orange);
  background: var(--apple-orange-bg);
  border-color: rgba(234, 88, 12, 0.2);
}

.section-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ==========================================================================
   1. NAVIGATION STYLE APPLE LUMINEUSE (MISE EN VALEUR DE DOMOSAFE)
   ========================================================================== */
.apple-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.apple-nav-inner {
  max-width: 1360px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 32px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-text {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.1;
}

.brand-text span {
  color: var(--apple-green-deep);
}

.brand-subline {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.apple-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: hidden;
}

.apple-menu-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.apple-menu-link:hover {
  color: var(--apple-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}


.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-pill-primary {
  background: var(--apple-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
}

.btn-pill-primary:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.4);
}

.btn-pill-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-pill-secondary:hover {
  background: #e2e8f0;
}

.menu-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Bandeau informatif supérieur rassurant */
.apple-ribbon {
  background: #f1f5f9;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 64px;
}

.apple-ribbon a {
  color: var(--apple-blue);
  margin-left: 8px;
  font-weight: 600;
}

.apple-ribbon a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   2. HERO STYLE APPLE LUMINEUX & RASSURANT
   ========================================================================== */
.hero-apple {
  padding-top: 50px;
  padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.brand-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: #ffffff;
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
  margin-bottom: 24px;
}

.badge-brand-highlight {
  font-size: 1.1rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.badge-brand-highlight span {
  color: var(--apple-green-deep);
}

.badge-brand-desc {
  font-size: 0.83rem;
  color: var(--text-tertiary);
  font-weight: 500;
  border-left: 1px solid var(--border-subtle);
  padding-left: 12px;
}

.hero-headline {
  font-size: clamp(2.3rem, 4.2vw, 3.7rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #0f172a;
  text-wrap: balance;
  max-width: 1060px;
  margin: 0 auto 18px;
}

.hero-headline .brand-color {
  color: var(--apple-blue);
}

.hero-slogan-apple {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 820px;
  margin: 0 auto 34px;
  line-height: 1.5;
}

/* Mots colorés Eau · Gaz · Électricité · Température */
.slogan-water {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 900;
  color: #0284c7;
  letter-spacing: -0.02em;
  margin-right: 6px;
  display: inline-block;
}

.slogan-gas {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 900;
  color: var(--apple-orange);
  letter-spacing: -0.02em;
  margin-right: 6px;
  display: inline-block;
}

.slogan-electric {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 900;
  color: #ca8a04;
  letter-spacing: -0.02em;
  margin-right: 6px;
  display: inline-block;
}

.slogan-temp {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 900;
  color: var(--apple-green-deep);
  letter-spacing: -0.02em;
  display: inline-block;
}

.hero-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 48px;
}

.btn-apple-large {
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
}

.hero-link-arrow {
  color: var(--apple-blue);
  font-size: 1.05rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-link-arrow:hover {
  text-decoration: underline;
}

/* Grande photo Hero lumineuse */
.hero-visual-frame {
  max-width: 1140px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
  background: #ffffff;
}

.hero-visual-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-visual-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 18px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Rangée 1 : 3 badges de protection */
.caption-badges-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.caption-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-safe 2.5s infinite;
}

.badge-dot.blue {
  background: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.55);
}

.badge-dot.green {
  background: var(--apple-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.55);
}

.badge-dot.yellow {
  background: #ca8a04;
  box-shadow: 0 0 8px rgba(202, 138, 4, 0.55);
}

@keyframes pulse-safe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.88); }
}

.badge-label {
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Rangée 2 : Slogan valeur + CTA */
.caption-value-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  flex-wrap: wrap;
}

.caption-value-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.4;
}


/* ==========================================================================
   3. LES 4 PILIERS DE PROTECTION (EAU, GAZ, ÉLECTRICITÉ, TEMPÉRATURE)
   ========================================================================== */
.four-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--apple-blue);
  box-shadow: var(--shadow-md);
}

.pillar-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease-apple);
}

.pillar-card:hover .pillar-icon-wrap {
  transform: scale(1.08);
}

.pillar-icon-wrap.water {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

.pillar-icon-wrap.gas {
  background: var(--apple-orange-bg);
  color: var(--apple-orange);
}

.pillar-icon-wrap.electric {
  background: var(--apple-yellow-bg);
  color: var(--apple-yellow);
}

.pillar-icon-wrap.temp {
  background: var(--apple-green-bg);
  color: var(--apple-green-deep);
}

.pillar-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.pillar-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   4. BENTO GRID LUMINEUSE (EXPLICATIONS EN IMAGES RÉELLES)
   ========================================================================== */
.bento-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.bento-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.bento-card.full-width {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.bento-content {
  padding: 44px;
}

.bento-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--apple-blue);
  margin-bottom: 12px;
  display: inline-block;
}

.bento-tag.green { color: var(--apple-green-deep); }
.bento-tag.orange { color: var(--apple-orange); }

.bento-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.bento-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.bento-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.bento-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.bento-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
  height: 100%;
  min-height: 360px;
}

.bento-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-apple);
}

.bento-card:hover .bento-img-wrap img {
  transform: scale(1.03);
}

/* ==========================================================================
   5. CONFIGURATEUR & DIAGNOSTIC INTERACTIF STYLE APPLE LUMINEUX
   ========================================================================== */
.configurator-apple {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.config-step {
  margin-bottom: 40px;
}

.config-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.config-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--apple-blue-subtle);
  color: var(--apple-blue);
  border: 1px solid rgba(0, 113, 227, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.config-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.config-step-subtitle {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-left: 44px;
  margin-top: -10px;
  margin-bottom: 18px;
}

.config-property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.config-btn-card {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.config-btn-card:hover {
  background: #ffffff;
  border-color: var(--apple-blue);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.config-btn-card.active {
  background: #ffffff;
  color: var(--apple-blue);
  border-color: var(--apple-blue);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.15);
}

.config-btn-card.active strong {
  color: var(--apple-blue);
}

.config-btn-card.active .btn-card-sub {
  color: var(--text-secondary);
}

.btn-card-sub {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* Grille multi-sélection des éléments à protéger */
.config-elements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.config-chip-btn {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.config-chip-btn:hover {
  background: #ffffff;
  border-color: var(--apple-blue);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.config-chip-btn.selected {
  background: rgba(16, 185, 129, 0.06);
  border-color: var(--apple-green);
  color: #0f172a;
  font-weight: 600;
}

.chip-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all var(--transition-fast);
  font-weight: 800;
  font-size: 0.85rem;
}

.config-chip-btn.selected .chip-checkbox {
  background: var(--apple-green);
  border-color: var(--apple-green);
  color: #ffffff;
}

.chip-label {
  font-size: 0.92rem;
  line-height: 1.35;
}

/* Panneau de Synthèse Apple & Transfert */
.config-summary-bar {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 34px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.summary-info h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.summary-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.summary-badges {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.summary-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--apple-green-deep);
  font-weight: 600;
}

.btn-transfer-apple {
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--apple-blue);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.btn-transfer-apple:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.4);
}

/* ==========================================================================
   6. LES ENGAGEMENTS HUMAINS STYLE APPLE LUMINEUX
   ========================================================================== */
.commitments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.commitment-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-apple),
              border-color 0.3s ease,
              box-shadow 0.4s var(--ease-apple);
  cursor: pointer;
}

.commitment-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--apple-blue), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.commitment-item:hover {
  transform: translateY(-6px);
  border-color: var(--apple-blue);
  box-shadow: var(--shadow-md);
}

.commitment-item:hover::before {
  opacity: 1;
}

.commitment-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--apple-blue-subtle);
  border: 1px solid rgba(0, 113, 227, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-blue);
  margin-bottom: 22px;
  transition: all 0.35s var(--ease-apple);
}

.commitment-item:hover .commitment-icon-wrap {
  background: var(--apple-blue);
  color: #ffffff;
  transform: scale(1.08);
}

.commitment-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.commitment-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex-grow: 1;
}

.commitment-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--apple-blue);
  margin-top: 20px;
  transition: gap 0.2s ease;
}

.commitment-item:hover .commitment-action-link {
  gap: 10px;
}

/* ==========================================================================
   7. FORMULAIRE DE SOUMISSION STYLE APPLE LUMINEUX
   ========================================================================== */
.form-apple-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 52px;
  box-shadow: var(--shadow-lg);
}

.form-apple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}

.apple-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.apple-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.apple-input {
  width: 100%;
  padding: 15px 18px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #0f172a;
  font-size: 0.98rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.apple-input:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

select.apple-input option {
  background: #ffffff;
  color: #0f172a;
}

textarea.apple-input {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.form-apple-submit {
  text-align: center;
  margin-top: 30px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 14px;
}

/* Toast */
.toast-apple {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  border: 1.5px solid var(--apple-green);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(150%);
  transition: transform 0.4s var(--ease-apple);
}

.toast-apple.show {
  transform: translateY(0);
}

/* ==========================================================================
   8. FAQ ÉPURÉE STYLE APPLE
   ========================================================================== */
.faq-apple-wrap {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
}

.faq-row {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-toggle-btn {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 600;
}

.faq-plus {
  font-size: 1.4rem;
  color: var(--text-tertiary);
  transition: transform var(--transition-fast);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-apple), padding 0.35s var(--ease-apple);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.faq-row.open .faq-body {
  max-height: 250px;
  padding-bottom: 24px;
}

.faq-row.open .faq-plus {
  transform: rotate(45deg);
  color: var(--apple-blue);
}

/* ==========================================================================
   9. FOOTER STYLE APPLE LUMINEUX
   ========================================================================== */
.apple-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 36px;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.apple-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

.footer-col-links li {
  margin-bottom: 10px;
}

.footer-col-links a {
  color: var(--text-secondary);
}

.footer-col-links a:hover {
  color: var(--apple-blue);
  text-decoration: underline;
}

.footer-legal-line {
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (IPAD & IPHONE)
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-card.full-width {
    grid-template-columns: 1fr;
  }
  .bento-showcase-grid {
    grid-template-columns: 1fr;
  }
  .four-pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
  .commitments-grid {
    grid-template-columns: 1fr 1fr;
  }
  .apple-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .apple-menu {
    display: none;
  }
  .apple-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    gap: 16px;
  }
  .menu-burger {
    display: block;
  }
  .config-property-grid, .form-apple-grid {
    grid-template-columns: 1fr;
  }
  .config-elements-grid {
    grid-template-columns: 1fr;
  }
  .commitments-grid {
    grid-template-columns: 1fr;
  }
  .four-pillars-grid {
    grid-template-columns: 1fr;
  }
  .apple-footer-grid {
    grid-template-columns: 1fr;
  }
  .config-summary-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-headline {
    font-size: 2.4rem;
  }
  .hero-btn-row {
    flex-direction: column;
    gap: 12px;
  }
}


/* ==========================================================================
   NAVIGATION : MENU BURGER SOUS 1280 PX POUR GARDER LES LIENS BIEN ESPACÉS
   ========================================================================== */
@media (max-width: 1280px) {
  .apple-menu { display: none; }
  .apple-menu.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    gap: 18px;
  }
  .menu-burger { display: block; }
}

/* ==========================================================================
   TOUS NOS MODULES : ONGLETS PAR NIVEAU
   ========================================================================== */
.levels {
  max-width: 960px;
  margin: 0 auto;
}

.levels-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border-subtle);
}

.levels-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 14px 10px 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.levels-tab-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.levels-tab-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.levels-tab:hover .levels-tab-name { color: var(--text-primary); }

.levels-tab[aria-selected="true"] { border-bottom-color: var(--apple-blue); }
.levels-tab[aria-selected="true"] .levels-tab-name { color: var(--text-primary); }
.levels-tab[aria-selected="true"] .levels-tab-sub { color: var(--text-secondary); }

.levels-tab:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
}

.levels-panel { padding: 28px 10px 8px; }

.levels-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 48px;
}

.levels-list li {
  break-inside: avoid;
  position: relative;
  padding: 9px 0 9px 26px;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.45;
}

.levels-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--apple-green);
}

.levels-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 20px 10px 0;
  border-top: 1px solid var(--border-subtle);
}

.levels-foot p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .levels-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .levels-list { columns: 1; }
  .levels-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Barre du haut sur cellulaire : logo + burger seulement */
@media (max-width: 768px) {
  .apple-nav-inner { gap: 12px; }
  .nav-actions .btn-pill { display: none; }
  .brand-subline { display: none; }
}

/* ==========================================================================
   AJOUTS SITE MULTIPAGE (même style que la page d'origine)
   ========================================================================== */
.skip { position: absolute; left: -999px; top: 8px; background: #0f172a; color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 2000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--apple-blue); outline-offset: 2px; border-radius: 6px; }
a.inline, .prose a, .section-intro a, .lead-apple a, .apple-ribbon-text a, .faq-body a, .form-note a, .encadre a { color: var(--apple-blue); text-decoration: underline; text-underline-offset: 3px; }

/* Menu : sous-menus Services et Régions */
.apple-menu { overflow: visible; }
.menu-sub { position: relative; }
.menu-sub summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.menu-sub summary::-webkit-details-marker { display: none; }
.menu-sub summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.menu-sub-list { position: absolute; top: calc(100% + 18px); left: -16px; min-width: 290px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 8px; z-index: 1100; }
.menu-sub-list a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.88rem; color: var(--text-secondary); white-space: nowrap; }
.menu-sub-list a:hover, .menu-sub-list a[aria-current="page"], .apple-menu-link[aria-current="page"] { color: var(--apple-blue); }
.menu-sub-list a:hover { background: var(--bg-subtle); }
.nav-tel { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); white-space: nowrap; }
.menu-only-mobile { display: none; }
@media (max-width: 1280px) {
  .apple-menu.mobile-open { max-height: calc(100vh - 64px); overflow-y: auto; }
  .menu-sub-list { position: static; box-shadow: none; border: 0; padding: 4px 0 4px 12px; min-width: 0; }
  .menu-only-mobile { display: block; }
  .nav-tel { display: none; }
}
.menu-burger { min-width: 44px; min-height: 44px; }

/* Fil d'Ariane */
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; font-size: 0.85rem; color: var(--text-tertiary); }
.ariane li + li::before { content: "›"; margin-right: 6px; color: var(--text-muted); }
.ariane a:hover { color: var(--apple-blue); }

/* Haut des pages intérieures */
.hero-page { padding-top: 34px; padding-bottom: 56px; }
.hero-page .hero-headline { font-size: clamp(2.1rem, 3.8vw, 3.2rem); max-width: 900px; }
.lead-apple { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--text-secondary); max-width: 760px; margin: 0 auto 30px; line-height: 1.6; }
.hero-page .hero-visual-frame { max-width: 980px; }

/* Contenu des pages */
.prose { max-width: 820px; margin: 0 auto; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--text-primary); letter-spacing: -0.025em; line-height: 1.2; margin: 8px 0 16px; }
.prose h2:not(:first-child) { margin-top: 48px; }
.prose h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin: 30px 0 12px; }
.prose p { margin-bottom: 1em; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li { position: relative; padding: 7px 0 7px 36px; }
.prose ul li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--apple-green-bg); color: var(--apple-green-deep); font-size: 0.75rem; font-weight: 800; display: grid; place-items: center; }
.answer-first { font-size: 1.15rem; color: var(--text-primary); }
.encadre { background: var(--apple-green-bg); border: 1px solid rgba(16,185,129,.25); border-radius: var(--radius-lg); padding: 20px 24px; color: var(--text-primary); margin: 24px 0; }
.encadre p:last-child { margin-bottom: 0; }
.a-completer { background: #fff3c4; color: #713f12; padding: 1px 5px; border-radius: 5px; font-size: 0.95em; }
.section.alt { background: var(--bg-subtle); }

/* Cartes de liens (services, régions) */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.link-cards.four { grid-template-columns: repeat(4, 1fr); }
.link-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition-fast); }
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0,113,227,.35); }
.link-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.link-card p { color: var(--text-secondary); font-size: 0.95rem; flex: 1; }
.link-card .more { margin-top: 14px; color: var(--apple-blue); font-weight: 600; font-size: 0.9rem; }
@media (max-width: 1024px) { .link-cards, .link-cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .link-cards, .link-cards.four { grid-template-columns: 1fr; } }

/* Bandeau d'appel à l'action (couleurs de la section soumission d'origine) */
.cta-apple { background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%); padding: 70px 0; text-align: center; }
.cta-apple .section-intro { margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* FAQ (même apparence que l'accordéon d'origine) */
.faq-apple-wrap details.faq-row summary { list-style: none; }
.faq-apple-wrap details.faq-row summary::-webkit-details-marker { display: none; }
.faq-apple-wrap details.faq-row[open] .faq-plus { transform: rotate(45deg); }
.faq-apple-wrap details.faq-row .faq-body { max-height: none; opacity: 1; padding-bottom: 22px; }

/* Formulaire : cases à cocher dans le style des pastilles du diagnostic d'origine */
.check-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--border-subtle); border-radius: var(--radius-md); background: #fff; cursor: pointer; font-size: 0.93rem; color: var(--text-primary); transition: var(--transition-fast); }
.check-chip input { width: 18px; height: 18px; accent-color: var(--apple-blue); flex-shrink: 0; }
.check-chip:has(input:checked) { border-color: var(--apple-blue); background: var(--apple-blue-subtle); }
@media (max-width: 768px) { .check-chips { grid-template-columns: 1fr; } }
fieldset.apple-field { border: 0; padding: 0; margin: 0 0 18px; }
fieldset.apple-field legend { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.consent-box { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-subtle); border-radius: var(--radius-md); padding: 14px 16px; font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 14px; cursor: pointer; }
.consent-box input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--apple-blue); flex-shrink: 0; }
.hp { position: absolute; left: -5000px; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-side h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; color: var(--text-primary); }
.contact-side p { color: var(--text-secondary); margin-bottom: 14px; }
.map-box { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle); background: var(--bg-subtle); aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 20px; font-size: 0.9rem; color: var(--text-secondary); }
.map-box iframe { width: 100%; height: 100%; border: 0; }

/* Pied de page : coordonnées */
.footer-nap { line-height: 1.75; }
.footer-nap a { color: #d1d5db; }
.footer-nap a:hover { color: #fff; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { color: #fff; text-decoration: underline; }

/* Bandeau de témoins (Loi 25 : refuser aussi simple qu'accepter) */
.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 1500; max-width: 760px; margin: 0 auto; background: rgba(255,255,255,.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px 20px; display: flex; gap: 18px; align-items: center; }
.cookie[hidden] { display: none; }
.cookie p { font-size: 0.88rem; color: var(--text-secondary); }
.cookie a { color: var(--apple-blue); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-choice { background: #fff; color: var(--text-primary); border: 1.5px solid var(--text-primary); min-width: 110px; }
.btn-choice:hover { background: var(--text-primary); color: #fff; }
@media (max-width: 640px) { .cookie { flex-direction: column; align-items: stretch; } .cookie-actions .btn-pill { flex: 1; } }

/* Guide */
.guide-liste { list-style: none; counter-reset: n; }
.guide-liste li { counter-increment: n; position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--border-subtle); }
.guide-liste li::before { content: counter(n); position: absolute; left: 0; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--apple-blue-subtle); color: var(--apple-blue); font-weight: 800; display: grid; place-items: center; }
.guide-note { font-size: 0.92rem; color: var(--text-tertiary); margin-top: 18px; }

.levels { max-width: 960px; margin: 0 auto; }
.levels-tab-sub { color: var(--text-tertiary); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .apple-nav, .apple-ribbon, .apple-footer, .cta-apple, .cookie, .ariane, .hero-btn-row { display: none !important; } }

/* Mise en page des sections intérieures */
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap.prose, .wrap.narrow { max-width: 868px; }
.section .wrap > h2, .section .wrap > div > h2, .section-alt-title { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: var(--text-primary); letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 16px; }
.section .wrap p { color: var(--text-secondary); line-height: 1.7; }
.section .wrap > p a, .section .wrap div > p a { color: var(--apple-blue); text-decoration: underline; text-underline-offset: 3px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.carte { display: block; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); transition: var(--transition-fast); }
a.carte:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0,113,227,.35); }
.carte h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.carte p { color: var(--text-secondary); }
@media (max-width: 768px) { .form-apple-wrap { padding: 26px 20px; } .contact-side { padding: 22px; } }

/* Nouveau logo */
.brand-logo-full { height: 40px; width: auto; display: block; }
.footer-logo { height: 34px; width: auto; margin-bottom: 16px; }
@media (max-width: 768px) { .brand-logo-full { height: 34px; } }

/* Sélecteur de langue */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--border-light); border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.04em; }
.lang-switch:hover { border-color: var(--apple-blue); color: var(--apple-blue); }

/* Cartes décoratives (non cliquables) : aucun effet au survol */
div.pillar-card, div.commitment-item, div.link-card, div.carte { cursor: default; }
div.pillar-card:hover, div.commitment-item:hover, div.link-card:hover, div.carte:hover { transform: none; border-color: var(--border-subtle); box-shadow: var(--shadow-sm); }
div.pillar-card:hover .pillar-icon-wrap { transform: none; }
div.commitment-item:hover::before { opacity: 0; }
div.commitment-item:hover .commitment-icon-wrap { background: var(--apple-blue-subtle); color: var(--apple-blue); transform: none; }
/* Pied de page clair : coordonnées lisibles */
.footer-nap { color: var(--text-secondary); }
.footer-nap strong { color: var(--text-primary); }
.footer-nap a { color: var(--apple-blue); }
.footer-nap a:hover { color: var(--apple-blue-hover, #005bb5); }
.apple-footer .linklike:hover { color: var(--apple-blue); }

/* Formulaire en bas de page */
.form-bas .form-apple-wrap { margin-top: 32px; text-align: left; }
.form-status { margin-top: 14px; font-size: 0.95rem; font-weight: 600; min-height: 1.2em; color: var(--text-secondary); }
.form-status.ok { color: var(--apple-green-deep); }
.form-status.err { color: #b91c1c; }

/* Appareils compatibles Home Assistant */
.compat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
@media (max-width: 1024px) { .compat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .compat-grid { grid-template-columns: 1fr; } }
.compat-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.compat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--apple-blue-subtle); color: var(--apple-blue); }
.compat-icon.vert { background: var(--apple-green-bg); color: var(--apple-green-deep); }
.compat-icon.orange { background: rgba(234, 88, 12, 0.1); color: var(--apple-orange); }
.compat-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.compat-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 14px; }
.brand-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chips li { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); background: var(--bg-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); padding: 5px 12px; }
.compat-note { margin: 28px auto 0; max-width: 760px; text-align: center; font-size: 0.88rem; color: var(--text-tertiary); }
html { scroll-padding-top: 120px; } [id] { scroll-margin-top: 0; }
.form-status .form-mailto { display: inline-flex; margin-top: 10px; font-size: 0.88rem; }

/* ==========================================================================
   OPTIMISATION CELLULAIRE (écrans de 768 px et moins)
   ========================================================================== */
@media (max-width: 768px) {
  /* Rythme vertical plus compact */
  .section { padding: 56px 0; }
  .cta-apple { padding: 52px 0; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .section-intro { font-size: 1rem; }
  .container, .container-wide, .wrap { padding-left: 18px; padding-right: 18px; }

  /* Haut de page */
  .hero-apple { padding-top: 36px; padding-bottom: 40px; }
  .hero-headline, .hero-page .hero-headline { font-size: clamp(1.9rem, 8.4vw, 2.4rem); line-height: 1.12; }
  .hero-slogan-apple { font-size: 1.05rem; }
  .brand-hero-badge { flex-wrap: wrap; justify-content: center; }
  .hero-btn-row { width: 100%; }
  .hero-btn-row .btn-pill { width: 100%; justify-content: center; }
  .lead-apple { font-size: 1.02rem; margin-bottom: 24px; }

  /* Grande photo : la photo d'abord, la légende en dessous (plus de texte coupé) */
  .hero-visual-frame { border-radius: 20px; }
  .hero-visual-frame img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; object-position: 72% center; }
  .hero-visual-caption { position: static; inset: auto; border: 0; border-top: 1px solid var(--border-subtle); border-radius: 0; box-shadow: none; background: #fff; padding: 16px 18px 18px; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .caption-badges-row { flex-direction: column; align-items: flex-start; gap: 10px; overflow: visible; flex-wrap: wrap; }
  .caption-badge { white-space: normal; }
  .caption-value-cta { flex-direction: column; align-items: stretch; text-align: left; }
  .caption-value-cta .btn-pill { width: 100%; justify-content: center; }

  /* Les 4 piliers en grille 2 x 2 */
  .four-pillars-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pillar-card { padding: 18px 14px; }
  .pillar-name { font-size: 1rem; }
  .pillar-summary { font-size: 0.85rem; }

  /* Grandes cartes avec photo */
  .bento-content { padding: 24px 20px 26px; }
  .bento-title { font-size: 1.4rem; }
  .bento-img-wrap { min-height: 0; height: auto; }
  .bento-img-wrap img { aspect-ratio: 16 / 10; height: auto; }
  .bento-card .btn-pill { width: 100%; justify-content: center; }

  /* Cartes de services et engagements plus compactes */
  .commitments-grid { gap: 12px; }
  .commitment-item { padding: 22px 20px; }
  .commitment-icon-wrap { width: 44px; height: 44px; margin-bottom: 12px; }

  /* Régions en 2 colonnes */
  .link-cards.four { grid-template-columns: 1fr 1fr; gap: 12px; }
  .link-card { padding: 16px 14px; }
  .link-card h3 { font-size: 1rem; }
  .link-card p { font-size: 0.85rem; }

  /* Appareils compatibles */
  .compat-card { padding: 20px; }

  /* Onglets des solutions */
  .levels-tab { padding: 12px 8px 14px; }
  .levels-list { columns: 1; }
  .levels-foot { flex-direction: column; align-items: stretch; }
  .levels-foot .btn-pill { width: 100%; justify-content: center; }

  /* Formulaire */
  .form-bas .form-apple-wrap { margin-top: 20px; }
  .form-apple-submit .btn-pill { width: 100%; }
  .apple-input { font-size: 16px; } /* évite le zoom automatique sur iPhone */

  /* Pages intérieures */
  .prose { font-size: 1rem; }
  .prose h2 { font-size: 1.45rem; }
  .ariane ol { padding-top: 12px; }
  .faq-toggle-btn { font-size: 1.02rem; padding: 18px 0; }

  /* Bandeau gris du haut */
  .apple-ribbon { font-size: 0.82rem; padding: 10px 14px; }
}

@media (max-width: 380px) {
  .four-pillars-grid, .link-cards.four { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* Le logo est déjà dans l'en-tête : on retire la pastille de marque pour aller droit au titre */
  .brand-hero-badge { display: none; }
  .apple-nav { background: rgba(255, 255, 255, 0.97); }
}
.footer-social { margin-top: 10px; } .footer-social a { color: var(--apple-blue); font-weight: 600; margin-right: 14px; }
