/* =====================================================
   cdm-contenu.css — habillage des anciens contenus (pages harmonisées)
   Source : _dev/refonte/contenu-legacy.css (copiée dans public/ par build.js).
   Tout est limité à <main class="contenu-legacy"> : l'en-tête, le pied de page et les
   pages non migrées ne sont pas concernés. Les <style> propres à chaque page restent
   chargés APRÈS ce fichier et gardent la priorité : les règles ci-dessous utilisent :where()
   pour garder la même force que les anciennes règles globales de styles.css.
   ===================================================== */

/* 1. Anciennes variables de styles.css → nouvelles couleurs de la direction B */
.contenu-legacy {
  --navy-d: var(--navy-deep);
  --gold-lt: var(--gold-light);
  --green: #25D366;
  --green-d: #1da851;
  --text: var(--ink);
  --light: var(--ivory);
  --cream: var(--sand);
  --border: var(--sand-deep);
  --shadow: 0 4px 24px rgba(14, 35, 71, .08);
  --shadow-lg: 0 12px 48px rgba(14, 35, 71, .14);
  --radius-lg: 8px;
  --transition: .3s ease;
  display: block;
  color: var(--ink);
  background: var(--ivory);
}

/* 2. Base des anciens contenus (reprise de styles.css, limitée au contenu) */
:where(.contenu-legacy *, .contenu-legacy *::before, .contenu-legacy *::after) { margin: 0; padding: 0; }
:where(.contenu-legacy) a { color: inherit; text-decoration: none; }
:where(.contenu-legacy) ul { list-style: none; }
:where(.contenu-legacy) img { display: block; max-width: 100%; }
:where(.contenu-legacy) h1, :where(.contenu-legacy) h2, :where(.contenu-legacy) h3 { font-family: var(--ff-title); font-weight: 600; color: var(--navy); }
:where(.contenu-legacy) h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; }
:where(.contenu-legacy) h3 { font-size: 1.5rem; line-height: 1.3; }
:where(.contenu-legacy) h4 { font-family: var(--ff-body); font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.4; }
:where(.contenu-legacy) .container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* 3. Composants courants de l'ancien site, au style de la direction B */
:where(.contenu-legacy) .section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
:where(.contenu-legacy) .section-header h2 { margin-top: 12px; }
:where(.contenu-legacy) .section-header h2::after { content: ''; display: block; width: 72px; height: 10px; margin: 14px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 10'%3E%3Cpath d='M0 5 Q9 0 18 5 T36 5 T54 5 T72 5' fill='none' stroke='%23C5A55A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain; }
:where(.contenu-legacy) .section-header p { color: var(--muted); font-size: .95rem; margin-top: 14px; }
:where(.contenu-legacy) .section-tag { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sea-text); }
:where(.contenu-legacy) .section-tag::before { content: ''; width: 30px; height: 1px; background: var(--sea); }
:where(.contenu-legacy) .btn-main { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 13px 28px; background: var(--gold); color: var(--navy-deep); border-radius: var(--radius); font-weight: 600; font-size: .95rem; transition: background-color .15s ease; }
:where(.contenu-legacy) .btn-main:hover { background: #d3b56c; }
:where(.contenu-legacy) .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 26px; border: 1px solid var(--navy); color: var(--navy); border-radius: var(--radius); font-weight: 600; font-size: .95rem; transition: background-color .15s ease, color .15s ease; }
:where(.contenu-legacy) .btn-outline:hover { background: var(--navy); color: #fff; }
:where(.contenu-legacy) .btn-text { font-size: .88rem; font-weight: 600; color: var(--gold-text); }
:where(.contenu-legacy) .btn-text:hover { color: var(--navy); }

/* 4. Boutons Calendly des pages locales et de marque (popup Calendly inchangé) */
:where(.contenu-legacy) .btn-calendly-main { display: block; width: 100%; min-height: 50px; background: var(--gold); color: var(--navy-deep); border: 0; padding: 15px 24px; border-radius: var(--radius); font-family: var(--ff-body); font-size: .95rem; font-weight: 600; cursor: pointer; text-align: center; transition: background-color .15s ease; }
:where(.contenu-legacy) .btn-calendly-main:hover { background: #d3b56c; }
:where(.contenu-legacy) .btn-calendly-contact, :where(.contenu-legacy) .btn-calendly-hero { display: inline-block; min-height: 50px; background: var(--gold); color: var(--navy-deep); border: 0; padding: 15px 28px; border-radius: var(--radius); font-family: var(--ff-body); font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background-color .15s ease; }
:where(.contenu-legacy) .btn-calendly-contact:hover, :where(.contenu-legacy) .btn-calendly-hero:hover { background: #d3b56c; }
:where(.contenu-legacy) .btn-calendly-band { display: inline-block; min-height: 50px; background: #fff; color: var(--navy); border: 0; padding: 15px 28px; border-radius: var(--radius); font-family: var(--ff-body); font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: box-shadow .15s ease; }
:where(.contenu-legacy) .btn-calendly-band:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
:where(.contenu-legacy) .btn-calendly-secondary { background: none; border: 0; color: rgba(255, 255, 255, .8); font-size: .88rem; text-decoration: underline; cursor: pointer; padding: 0; }
:where(.contenu-legacy) .btn-calendly-secondary:hover { color: var(--gold-light); }

/* =====================================================
   5. Gabarit « pages locales » (gestion locative Torrox, conciergerie Airbnb, Nerja, Frigiliana)
   Restylage au design B, sans changer le HTML ni le contenu.
   Limité à body:is(.legacy-commercial, .legacy-marque) : aucune autre page n'est concernée.
   Le préfixe « body:is(.legacy-commercial, .legacy-marque) .contenu-legacy » l'emporte sur le <style> de la page.
   ===================================================== */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy { font-size: 16px; }

/* Bandeau du haut : photo réelle avec voile marine latéral, texte aligné à gauche (comme le simulateur) */
body.legacy-commercial .contenu-legacy .page-hero { min-height: 0; padding: 96px 0 104px; align-items: flex-end; }
body.legacy-commercial .contenu-legacy .page-hero-overlay { background: linear-gradient(90deg, rgba(14,35,71,.9) 0%, rgba(14,35,71,.72) 45%, rgba(14,35,71,.3) 100%); }
body.legacy-commercial .contenu-legacy .page-hero-inner { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
body.legacy-commercial .contenu-legacy .page-hero-inner > * { max-width: 720px; }
body.legacy-commercial .contenu-legacy .breadcrumb { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
body.legacy-commercial .contenu-legacy .breadcrumb a { color: rgba(255,255,255,.75); }
body.legacy-commercial .contenu-legacy .page-hero h1 { font-weight: 600; font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.1; letter-spacing: -.005em; margin-bottom: 22px; }
body.legacy-commercial .contenu-legacy .page-hero h1 em { color: var(--gold-light); }
body.legacy-commercial .contenu-legacy .page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.9); margin-bottom: 30px; }
body.legacy-commercial .contenu-legacy .page-hero-btns { gap: 14px 18px; }
body.legacy-commercial .contenu-legacy .page-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
body.legacy-commercial .contenu-legacy .page-hero .btn-outline:hover { background: rgba(255,255,255,.12); }

/* Sections : rythme et fonds de la version B (ivoire, sable, marine) */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section { padding: 104px 0; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section.alt { background: var(--sand); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section.dark { background: var(--navy); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .container { max-width: var(--max); padding: 0 var(--gutter); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .section-header { text-align: left; max-width: 760px; margin: 0 0 56px; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .section-header h2::after { margin: 16px 0 0; background-position: left center; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .section-header p { font-size: 1.05rem; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section.dark .section-tag { color: var(--gold-light); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section.dark .section-tag::before { background: var(--gold); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy h2 { font-weight: 600; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .text-block h2 { font-weight: 600; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.12; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy h2 em { color: var(--gold-text); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section.dark h2 em, body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .cta-band h2 em { color: var(--gold-light); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .text-block .highlight-text { font-size: 1.12rem; color: var(--ink); font-weight: 400; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .text-block p { color: var(--muted); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .two-col { gap: 72px; }

/* Listes à coches : coche bleu mer, lignes discrètes */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .check-list li { position: relative; display: block; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); color: var(--ink); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .check-list li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 12px; height: 6px; margin: 0; border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg); }

/* Grilles de prestations et cartes : cartes blanches comme les blocs de « Nos services » */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .prestations-grid { gap: 20px; border: 0; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .prestation-item { background: #fff; border: 0; border-radius: var(--radius); padding: 32px 30px; box-shadow: 0 6px 18px rgba(14,35,71,.05); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section:not(.alt):not(.dark) .prestation-item { background: var(--sand); box-shadow: none; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .prestation-num { font-family: var(--ff-title); font-size: 1.8rem; font-weight: 500; letter-spacing: 0; color: var(--gold-text); margin-bottom: 10px; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .prestation-content h3 { font-size: 1.45rem; font-weight: 600; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .prestation-content p { font-size: .92rem; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy :is(.ao-card, .star-card, .niche-item, .marche-stat, .int-link-card) { background: #fff; border: 0; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(14,35,71,.06); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section:not(.alt):not(.dark) :is(.ao-card, .star-card, .niche-item, .marche-stat) { background: var(--sand); box-shadow: none; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy :is(.ao-num, .ni-num, .ms-num) { font-family: var(--ff-title); color: var(--gold-text); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy :is(.ao-card, .star-card, .niche-item) h3, body:is(.legacy-commercial, .legacy-marque) .contenu-legacy :is(.niche-item, .marche-stat) h4 { font-family: var(--ff-title); font-size: 1.35rem; font-weight: 600; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .vut-airbnb-band { background: #fff; border: 0; border-left: 4px solid var(--gold); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(14,35,71,.06); }
/* Titre de section placé hors du conteneur (ex. « La recette des avis 5 étoiles ») : même alignement que le reste */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy section > .section-header { max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy section > .section-header > * { max-width: 760px; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .stars-section { background: var(--sand); padding: 104px 0; }

/* Étapes : numéros bleu mer */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .etape-item { border-bottom-color: var(--line); padding: 18px 0; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .etape-num { background: var(--sea-text); width: 40px; height: 40px; font-family: var(--ff-title); font-size: 1.15rem; font-weight: 600; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .etape-body h4 { font-family: var(--ff-title); font-size: 1.3rem; font-weight: 600; }

/* FAQ : questions en Cormorant, lignes fines (comme la FAQ de l'accueil) */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .faq-page-list { border-top: 1px solid var(--line); max-width: 860px; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .faq-page-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; background: transparent; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .faq-page-q { padding: 22px 8px 22px 0; font-family: var(--ff-title); font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .faq-page-q:hover { background: transparent; color: var(--sea-text); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .faq-page-ico { font-family: var(--ff-body); font-size: 1.5rem; color: var(--gold-text); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .faq-page-a { padding: 0 0 24px; font-size: .95rem; line-height: 1.75; }

/* Appel final : section marine avec liseré doré (comme les sections marine de l'accueil) */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .cta-band { position: relative; background: var(--navy); padding: 104px 0; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .cta-band::before { content: ''; position: absolute; left: 50%; top: 0; width: 120px; height: 3px; margin-left: -60px; background: var(--gold); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .cta-band h2 { font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); color: #fff; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .cta-band p { color: rgba(255,255,255,.86); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .btn-calendly-band, body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .cta-band .btn-white { background: var(--gold); color: var(--navy-deep); border-radius: var(--radius); font-weight: 600; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .btn-outline-white { border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius); }

/* Liens vers les autres pages : puces devenues cartes / étiquettes de la version B */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .internal-links-section { background: var(--sand); padding: 64px 0; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .zone-ed-cities li a { border-radius: var(--radius); border: 0; border-left: 3px solid var(--sea); background: #fff; padding: 10px 16px; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .zone-ed-cities li a:hover, body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .zone-ed-cities li a.active { background: var(--navy); border-left-color: var(--gold); color: #fff; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .int-link-card { border-left: 3px solid var(--sea); }

@media (max-width: 760px) {
  body.legacy-commercial .contenu-legacy .page-hero { padding: 56px 0 64px; }
  body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section, body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .cta-band { padding: 68px 0; }
  body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .section-header { margin-bottom: 36px; }
  body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .two-col { gap: 36px; }
  body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .faq-page-q { font-size: 1.15rem; }
}

/* ---------- 5 bis. Détails de l'accueil B reportés sur les pages locales ---------- */
/* Bandeau : photo puis panneau sable qui la chevauche, liseré bleu mer (comme le haut de l'accueil) */
body.legacy-commercial .contenu-legacy .page-hero { display: block; padding: 340px 0 0; background: var(--ivory); }
body.legacy-commercial .contenu-legacy .page-hero-img { height: calc(100% - 120px); }
body.legacy-commercial .contenu-legacy .page-hero-overlay { height: calc(100% - 120px); background: linear-gradient(180deg, rgba(14,35,71,.15) 0%, rgba(14,35,71,.35) 100%); }
/* Pages où la photo du bandeau est un fond (::before, ex. conciergerie Airbnb) : même photo, affichée pleinement */
body.legacy-commercial .contenu-legacy .page-hero::before { height: calc(100% - 120px); opacity: 1; background-position: center 72%; }
body.legacy-commercial .contenu-legacy .page-hero-inner { z-index: 1; }
body.legacy-commercial .contenu-legacy .page-hero-inner { padding: 0 var(--gutter); }
body.legacy-commercial .contenu-legacy .page-hero-inner::before { content: ''; position: absolute; left: var(--gutter); top: 0; bottom: 0; width: min(800px, calc(100% - 2 * var(--gutter))); background: var(--sand); border-top: 4px solid var(--sea); border-radius: var(--radius); z-index: -1; }
body.legacy-commercial .contenu-legacy .page-hero-inner > * { position: relative; margin-left: 52px; max-width: 680px; }
body.legacy-commercial .contenu-legacy .page-hero-inner > :first-child { padding-top: 44px; }
body.legacy-commercial .contenu-legacy .page-hero-inner > :last-child { padding-bottom: 46px; margin-bottom: 0; }
body.legacy-commercial .contenu-legacy .breadcrumb, body.legacy-commercial .contenu-legacy .breadcrumb a { color: var(--sea-text); }
body.legacy-commercial .contenu-legacy .breadcrumb span { color: var(--muted); }
body.legacy-commercial .contenu-legacy .page-hero h1 { color: var(--navy); }
body.legacy-commercial .contenu-legacy .page-hero h1 em { color: var(--gold-text); }
body.legacy-commercial .contenu-legacy .page-hero p { color: var(--muted); }
body.legacy-commercial .contenu-legacy .page-hero .btn-outline { color: var(--navy); border-color: var(--navy); }
body.legacy-commercial .contenu-legacy .page-hero .btn-outline:hover { background: var(--navy); color: #fff; }

/* Citation mise en avant : carte marine (comme le premier avis de l'accueil) */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .two-col > div > div[style*="var(--light)"] { position: relative; background: var(--navy) !important; border-radius: var(--radius) !important; padding: 36px 34px !important; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .two-col > div > div[style*="var(--light)"]::before { content: ''; position: absolute; left: 34px; top: 0; width: 60px; height: 3px; background: var(--gold); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .two-col > div > div[style*="var(--light)"] p { color: rgba(255,255,255,.86) !important; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .two-col > div > div[style*="var(--light)"] > p:only-child { color: #fff !important; font-size: 1.35rem !important; line-height: 1.5 !important; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .two-col > div > div[style*="var(--light)"] h3 { color: #fff !important; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .two-col > div > div[style*="var(--light)"] .check-list li { color: rgba(255,255,255,.88); border-bottom-color: rgba(255,255,255,.14); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .two-col > div > div[style*="var(--light)"] .check-list li strong { color: #fff; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .two-col > div > div[style*="var(--light)"] .check-list li::before { border-color: var(--gold-light); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .two-col > div > div[style*="var(--light)"] [style*="color:var(--muted)"] { color: rgba(255,255,255,.7) !important; }

/* Chiffres clés : cases sable, chiffres bleu mer en Cormorant */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy div[style*="grid-template-columns:1fr 1fr"] > div[style*="border:1px solid"] { background: var(--sand) !important; border: 0 !important; border-top: 3px solid var(--sea) !important; border-radius: var(--radius) !important; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy div[style*="grid-template-columns:1fr 1fr"] > div[style*="border:1px solid"] > div:first-child { color: var(--sea-text) !important; font-weight: 600 !important; }

/* Sections « méthode » (étapes) et sections sombres : bleu mer, comme « Comment ça marche » de l'accueil */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section:has(.etapes-list), body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section.dark { background: var(--sea-text); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section:has(.etapes-list) :is(h2, h3, h4, .etape-body h4), body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section.dark :is(h2, h3, h4) { color: #fff; }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section:has(.etapes-list) h2 em { color: var(--gold-light); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section:has(.etapes-list) :is(p, .etape-body p, .section-header p) { color: rgba(255,255,255,.86); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section:has(.etapes-list) .section-tag { color: var(--gold-light); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section:has(.etapes-list) .section-tag::before { background: var(--gold); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section:has(.etapes-list) .etape-item { border-bottom-color: rgba(255,255,255,.18); }
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section:has(.etapes-list) .etape-num { background: transparent; border: 1px solid var(--gold); color: var(--gold-light); }

/* Cartes : liseré bleu mer en haut (rappel du panneau de l'accueil) */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy :is(.prestation-item, .ao-card, .star-card, .niche-item, .marche-stat) { border-top: 3px solid var(--sea) !important; }
/* Frigiliana : la liste « Peu de concurrence… » est dans une section marine, texte blanc : pas de carte blanche */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .content-section.dark .niche-item { background: rgba(255,255,255,.06); box-shadow: none; padding: 1.4rem 1.6rem; }

@media (max-width: 760px) {
  body.legacy-commercial .contenu-legacy .page-hero { padding-top: 220px; }
  body.legacy-commercial .contenu-legacy .page-hero-img, body.legacy-commercial .contenu-legacy .page-hero-overlay, body.legacy-commercial .contenu-legacy .page-hero::before { height: 300px; }
  body.legacy-commercial .contenu-legacy .page-hero-inner::before { left: 10px; width: calc(100% - 20px); }
  body.legacy-commercial .contenu-legacy .page-hero-inner > * { margin-left: 14px; margin-right: 14px; }
  body.legacy-commercial .contenu-legacy .page-hero-inner > :first-child { padding-top: 28px; }
  body.legacy-commercial .contenu-legacy .page-hero-inner > :last-child { padding-bottom: 30px; }
  body.legacy-commercial .contenu-legacy .page-hero h1 { font-size: 2rem; }
  body.legacy-commercial .contenu-legacy .page-hero-img { object-position: center 78%; }
  body.legacy-commercial .contenu-legacy .page-hero::before { background-position: center 85%; }
}

/* ---------- 6. Photos des logements (propositions validées le 20/10/2026) ---------- */
.contenu-legacy .cdm-photo { position: relative; margin: 0; }
.contenu-legacy .cdm-photo img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius); }
.contenu-legacy .cdm-photo figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(250,247,240,.95); color: var(--navy); font-size: .8rem; font-weight: 600; letter-spacing: .02em; padding: 7px 14px; border-radius: var(--radius); }
/* Bandeau plein écran entre deux sections : grande photo panoramique */
.contenu-legacy .cdm-photo-bandeau { background: var(--ivory); }
.contenu-legacy .cdm-photo--bandeau img { aspect-ratio: 21 / 8; border-radius: 0; object-position: center 60%; max-height: 620px; }
.contenu-legacy .cdm-photo--bandeau figcaption { left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); bottom: 24px; }
/* Photo à côté du titre de section (section bleu mer « méthode ») */
.contenu-legacy .cdm-photo--flottante { float: right; width: 40%; margin: 0 0 32px 56px; }
.contenu-legacy .cdm-photo--flottante img { aspect-ratio: 4 / 3; box-shadow: 0 20px 44px rgba(10,26,54,.28); border: 6px solid rgba(255,255,255,.95); }
.contenu-legacy .cdm-photo--flottante ~ * { clear: none; }
.contenu-legacy :has(> .cdm-photo--flottante) .etapes-list { clear: both; }
/* Grande photo panoramique en ouverture de section */
.contenu-legacy .cdm-photo--large { margin-bottom: 56px; }
.contenu-legacy .cdm-photo--large img { aspect-ratio: 16 / 7; box-shadow: 0 18px 40px rgba(14,35,71,.12); }

@media (max-width: 960px) {
  .contenu-legacy .cdm-photo--flottante { float: none; width: 100%; margin: 0 0 32px; }
}
@media (max-width: 760px) {
  .contenu-legacy .cdm-photo--bandeau img { aspect-ratio: 4 / 3; }
  .contenu-legacy .cdm-photo--bandeau figcaption { left: 16px; bottom: 16px; }
  .contenu-legacy .cdm-photo--large img { aspect-ratio: 4 / 3; }
  .contenu-legacy .cdm-photo--large { margin-bottom: 36px; }
}

/* =====================================================
   7. Gabarit « pages de marque » (À propos / Why us / Por qué nosotros, Conciergerie IA)
   Blocs communs : voir section 5 (partagée). Ici : bandeau et blocs propres à ces pages.
   ===================================================== */
/* Bandeau marine avec la photo existante en fond, texte à gauche (comme l'en-tête du simulateur) */
body.legacy-marque .contenu-legacy .page-hero { padding: 104px 0 112px; background: var(--navy); }
body.legacy-marque .contenu-legacy .page-hero::before { opacity: .28; }
body.legacy-marque .contenu-legacy .page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,35,71,.92) 0%, rgba(14,35,71,.55) 100%); }
body.legacy-marque .contenu-legacy .page-hero-inner { z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
body.legacy-marque .contenu-legacy .page-hero-inner > * { max-width: 720px; }
body.legacy-marque .contenu-legacy .breadcrumb { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
body.legacy-marque .contenu-legacy .breadcrumb a { color: rgba(255,255,255,.75); }
body.legacy-marque .contenu-legacy .page-hero h1 { font-weight: 600; font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.1; margin-bottom: 22px; }
body.legacy-marque .contenu-legacy .page-hero h1 em { color: var(--gold-light); }
body.legacy-marque .contenu-legacy .page-hero p { color: rgba(255,255,255,.88); }
body.legacy-marque .contenu-legacy .hero-ai-badge { background: transparent; border: 0; padding: 0; border-radius: 0; color: var(--gold-light); letter-spacing: .18em; font-size: .74rem; font-weight: 600; gap: 12px; }
body.legacy-marque .contenu-legacy .hero-ai-badge::before { content: ''; width: 30px; height: 1px; background: var(--gold); }

/* Six piliers : cartes blanches, liseré bleu mer, carte mise en avant sur fond marine */
body.legacy-marque .contenu-legacy .why-grid { gap: 20px; }
body.legacy-marque .contenu-legacy .why-card { background: var(--sand); border: 0; border-top: 3px solid var(--sea); border-radius: var(--radius); padding: 32px 30px; }
body.legacy-marque .contenu-legacy .why-card:hover { transform: none; box-shadow: 0 10px 26px rgba(14,35,71,.08); }
body.legacy-marque .contenu-legacy .why-card.featured { background: var(--navy); border-top-color: var(--gold); }
body.legacy-marque .contenu-legacy .why-card.featured h3 { color: #fff; }
body.legacy-marque .contenu-legacy .why-card.featured p, body.legacy-marque .contenu-legacy .why-card.featured ul li { color: rgba(255,255,255,.86); border-bottom-color: rgba(255,255,255,.14); }
body.legacy-marque .contenu-legacy .why-card h3 { font-size: 1.45rem; font-weight: 600; }
body.legacy-marque .contenu-legacy .why-card ul li { position: relative; display: block; padding: 7px 0 7px 24px; border-bottom-color: var(--line); }
body.legacy-marque .contenu-legacy .why-card ul li::before { content: ''; position: absolute; left: 2px; top: .95em; width: 11px; height: 6px; border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg); }
body.legacy-marque .contenu-legacy .why-card.featured ul li::before { border-color: var(--gold-light); }

/* Partenaire : carte blanche avec liseré doré */
body.legacy-marque .contenu-legacy .partner-card { border: 0; border-left: 4px solid var(--gold); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(14,35,71,.08); }
body.legacy-marque .contenu-legacy .partner-logo-wrap { background: var(--navy); border: 2px solid var(--gold); }
body.legacy-marque .contenu-legacy .partner-initials { color: var(--gold-light); }
body.legacy-marque .contenu-legacy .partner-tags span { background: var(--sand); border-radius: var(--radius); }
body.legacy-marque .contenu-legacy .partner-list li { position: relative; display: block; padding: 8px 0 8px 26px; border-bottom-color: var(--line); }
body.legacy-marque .contenu-legacy .partner-list li::before { content: ''; position: absolute; left: 2px; top: 1em; width: 11px; height: 6px; border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg); }

/* Tableau comparatif : colonne CDM marine, coins discrets */
body.legacy-marque .contenu-legacy .vs-section { background: var(--sand); padding: 104px 0; }
body.legacy-marque .contenu-legacy .vs-table { border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(14,35,71,.06); }
body.legacy-marque .contenu-legacy .vs-table th.th-cdm { background: var(--navy); color: var(--gold-light); border-radius: 0; }
body.legacy-marque .contenu-legacy .vs-table td.td-cdm { background: #fff; border-left: 3px solid var(--sea); color: var(--navy); }
body.legacy-marque .contenu-legacy .vs-table td { border-bottom-color: var(--line); }
/* Téléphone : le tableau comparatif tient dans l'écran, 3 colonnes visibles (il était coupé à droite) */
@media (max-width: 760px) {
  body.legacy-marque .contenu-legacy .vs-table { display: table; table-layout: fixed; width: 100%; font-size: .8rem; }
  body.legacy-marque .contenu-legacy .vs-table th { padding: 12px 8px; font-size: .64rem; letter-spacing: .04em; line-height: 1.3; }
  body.legacy-marque .contenu-legacy .vs-table td { padding: 11px 8px; line-height: 1.4; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
  body.legacy-marque .contenu-legacy .vs-table th:first-child, body.legacy-marque .contenu-legacy .vs-table td:first-child { width: 32%; }
}
body.legacy-marque .contenu-legacy .check-yes { color: var(--sea-text); }
body.legacy-marque .contenu-legacy .check-no { color: #b3261e; }

/* Conciergerie IA : fonctionnalités, philosophie (marine), IA + humain (bloc bleu mer) */
body.legacy-marque .contenu-legacy .ai-features-grid { gap: 20px; }
body.legacy-marque .contenu-legacy .ai-feature-card { background: var(--sand); border: 0; border-top: 3px solid var(--sea); border-radius: var(--radius); padding: 32px 30px; }
body.legacy-marque .contenu-legacy .ai-feature-card:hover { transform: none; box-shadow: 0 10px 26px rgba(14,35,71,.08); }
body.legacy-marque .contenu-legacy .ai-feat-body h3 { font-size: 1.45rem; font-weight: 600; }
body.legacy-marque .contenu-legacy .ai-feat-list li::before { color: var(--sea-text); }
body.legacy-marque .contenu-legacy .ai-philosophy { position: relative; background: var(--navy); padding: 104px 0; }
body.legacy-marque .contenu-legacy .ai-philosophy::before { content: ''; position: absolute; left: 50%; top: 0; width: 120px; height: 3px; margin-left: -60px; background: var(--gold); }
body.legacy-marque .contenu-legacy .ai-philosophy h2 { font-weight: 600; }
body.legacy-marque .contenu-legacy .ai-philosophy h2 em { color: var(--gold-light); }
body.legacy-marque .contenu-legacy .ai-why-item { background: rgba(255,255,255,.06); border: 0; border-top: 2px solid var(--sea); border-radius: var(--radius); }
body.legacy-marque .contenu-legacy .ai-human-section { background: var(--ivory); padding: 104px 0; }
body.legacy-marque .contenu-legacy .ai-human-text h2 { font-weight: 600; font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
body.legacy-marque .contenu-legacy .ai-human-text h2 em { color: var(--gold-text); }
body.legacy-marque .contenu-legacy .ai-human-visual { background: var(--sea-text); border-radius: var(--radius); padding: 40px 36px; box-shadow: 0 20px 44px rgba(14,35,71,.16); }
body.legacy-marque .contenu-legacy .ai-vs-item h4 { color: var(--gold-light); font-family: var(--ff-title); font-size: 1.25rem; font-weight: 600; }
body.legacy-marque .contenu-legacy .ai-vs-item p { color: rgba(255,255,255,.86); }
body.legacy-marque .contenu-legacy .ai-vs-item { border-bottom-color: rgba(255,255,255,.18); }

@media (max-width: 760px) {
  body.legacy-marque .contenu-legacy .page-hero { padding: 60px 0 68px; }
  body.legacy-marque .contenu-legacy .page-hero h1 { font-size: 2rem; }
  body.legacy-marque .contenu-legacy :is(.vs-section, .ai-philosophy, .ai-human-section) { padding: 68px 0; }
  body.legacy-marque .contenu-legacy .ai-feature-card { flex-direction: column; gap: 12px; padding: 26px 22px; }
}
/* Corrections des pages de marque : paragraphe sous le titre aligné, étiquette sans pastille sur fond marine */
body:is(.legacy-commercial, .legacy-marque) .contenu-legacy .section-header p { margin-left: 0; margin-right: 0; max-width: 720px; }
body.legacy-marque .contenu-legacy .ai-philosophy .section-tag { background: none !important; border: 0; padding: 0; color: var(--gold-light) !important; }
body.legacy-marque .contenu-legacy .ai-philosophy .section-tag::before { background: var(--gold); }

/* ---------- 7 bis. Photos des pages À propos et IA (propositions A à E validées le 20/10/2026) ---------- */
/* A et D : vos propres photos en fond des bandeaux, à la place des photos Wikimedia (même ambiance, plus visibles) */
body.lp-pourquoi-nous .contenu-legacy .page-hero::before { background-image: url('/Photos/web/MDM_vue_mer-1280.jpg'); background-position: center 60%; opacity: .5; }
body.lp-conciergerie-ia .contenu-legacy .page-hero::before { background-image: url('/Photos/web/hero-torrox-1280.jpg'); background-position: center 70%; opacity: .55; }
/* B : portrait du fondateur à côté du titre « Six raisons » (cercle doré, comme sur l'accueil) */
.contenu-legacy .cdm-photo--portrait { float: right; width: 240px; margin: 0 0 24px 56px; text-align: center; }
.contenu-legacy .cdm-photo--portrait img { aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--gold); object-fit: cover; object-position: center 30%; }
.contenu-legacy .cdm-photo--portrait figcaption { position: static; display: inline-block; margin-top: 14px; background: none; padding: 0; font-family: var(--ff-title); font-size: 1.15rem; font-style: italic; font-weight: 500; color: var(--navy); }
.contenu-legacy :has(> .cdm-photo--portrait) > :is(.why-grid, .ai-features-grid) { clear: both; }
/* E : médaillon du fondateur dans le bloc « IA + Humain » */
.contenu-legacy .cdm-photo--avatar { width: 96px; margin: 0 0 22px; }
.contenu-legacy .cdm-photo--avatar img { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; object-position: center 30%; }
@media (max-width: 760px) {
  .contenu-legacy .cdm-photo--portrait { float: none; width: 180px; margin: 0 auto 32px; display: block; }
}

/* =====================================================
   8. Gabarit « logements » (nos-logements / our-apartments / apartamentos-costa-del-sol)
   Les liens « Réserver » (site de réservation Holidu) ne sont pas modifiés.
   ===================================================== */
body.legacy-logements .contenu-legacy .page-hero { padding: 104px 0 112px; background: var(--navy); }
body.legacy-logements .contenu-legacy .page-hero::before { opacity: .45; background-position: center 70%; }
body.legacy-logements .contenu-legacy .page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,35,71,.9) 0%, rgba(14,35,71,.45) 100%); }
body.legacy-logements .contenu-legacy .page-hero-inner { z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter); text-align: left; }
body.legacy-logements .contenu-legacy .page-hero-inner > * { max-width: 720px; margin-left: 0; margin-right: 0; }
body.legacy-logements .contenu-legacy .page-hero h1 { font-weight: 600; font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.1; }
body.legacy-logements .contenu-legacy .page-hero h1 em { color: var(--gold-light); }
body.legacy-logements .contenu-legacy .apartments-section { background: var(--sand); padding: 104px 0; }
body.legacy-logements .contenu-legacy .apartments-grid { max-width: var(--max); padding: 0 var(--gutter); gap: 28px; }
body.legacy-logements .contenu-legacy .apt-card { border-radius: var(--radius); border-top: 3px solid var(--sea); box-shadow: 0 10px 30px rgba(14,35,71,.07); }
body.legacy-logements .contenu-legacy .apt-card:hover { transform: none; box-shadow: 0 16px 40px rgba(14,35,71,.12); }
body.legacy-logements .contenu-legacy .apt-img { height: 260px; }
body.legacy-logements .contenu-legacy .apt-badge { border-radius: var(--radius); background: var(--navy); }
body.legacy-logements .contenu-legacy .apt-badge.top { background: var(--gold); color: var(--navy-deep); }
body.legacy-logements .contenu-legacy .apt-body { padding: 26px 26px 28px; }
body.legacy-logements .contenu-legacy .apt-location { color: var(--sea-text); letter-spacing: .14em; }
body.legacy-logements .contenu-legacy .apt-name { font-size: 1.7rem; font-weight: 600; }
body.legacy-logements .contenu-legacy .apt-amenity { background: var(--sand); border-radius: var(--radius); }
body.legacy-logements .contenu-legacy .apt-rating-score { background: var(--sea-text); border-radius: var(--radius); }
body.legacy-logements .contenu-legacy .apt-cta { border-radius: var(--radius); min-height: 50px; padding: 15px; }
body.legacy-logements .contenu-legacy .apt-cta:hover { background: var(--navy-deep); color: #fff; }
body.legacy-logements .contenu-legacy .booking-banner { position: relative; padding: 104px var(--gutter); }
body.legacy-logements .contenu-legacy .booking-banner::before { content: ''; position: absolute; left: 50%; top: 0; width: 120px; height: 3px; margin-left: -60px; background: var(--gold); }
body.legacy-logements .contenu-legacy .booking-banner h2 { font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); }
body.legacy-logements .contenu-legacy .booking-banner .btn-gold { border-radius: var(--radius); color: var(--navy-deep); }
body.legacy-logements .contenu-legacy .booking-banner .btn-gold:hover { transform: none; background: #d3b56c; }

/* =====================================================
   9. Gabarit « villas » : thème « luxe » ramené à la direction B
   (marine au lieu du noir, boutons et cartes de la version B). Contenus et photos inchangés.
   ===================================================== */
/* Les règles globales du thème luxe (*, body, h1-h4) ne doivent pas toucher l'en-tête et le pied de page communs */
body.legacy-villas { background: var(--ivory); color: var(--ink); }
body.legacy-villas :is(.site-header, .site-footer, .mobile-menu, .mobile-bar) :is(p, ul, li, h4) { margin: revert; }
body.legacy-villas .site-footer p { margin: 0 0 1em; }
body.legacy-villas .site-footer ul { padding: 0; margin: 0; }
body.legacy-villas .site-footer li { margin-bottom: 10px; }
body.legacy-villas .site-footer h4 { margin: 0 0 16px; }
body.legacy-villas .contenu-legacy .luxe-hero { min-height: min(86vh, 760px); background: var(--navy); justify-content: flex-start; }
body.legacy-villas .contenu-legacy .luxe-hero-bg img { opacity: .6; filter: none; }
body.legacy-villas .contenu-legacy .luxe-hero-overlay { background: linear-gradient(90deg, rgba(14,35,71,.9) 0%, rgba(14,35,71,.5) 60%, rgba(14,35,71,.2) 100%); }
body.legacy-villas .contenu-legacy .luxe-hero-content { text-align: left; max-width: var(--max); width: 100%; margin: 0 auto; padding: 40px var(--gutter); }
body.legacy-villas .contenu-legacy .luxe-hero-content > * { max-width: 760px; }
body.legacy-villas .contenu-legacy .luxe-hero-tag { border: 0; padding: 0; letter-spacing: .18em; font-size: .74rem; font-weight: 600; color: var(--gold-light); display: inline-flex; align-items: center; gap: 12px; }
body.legacy-villas .contenu-legacy .luxe-hero-tag::before { content: ''; width: 30px; height: 1px; background: var(--gold); }
body.legacy-villas .contenu-legacy .luxe-hero h1 { font-weight: 600; font-size: clamp(2.6rem, 5.2vw, 4.2rem); line-height: 1.08; }
body.legacy-villas .contenu-legacy .luxe-hero-lead { margin: 0 0 36px; font-weight: 400; }
body.legacy-villas .contenu-legacy .luxe-hero-btns { justify-content: flex-start; }
body.legacy-villas .contenu-legacy .btn-luxe { text-transform: none; letter-spacing: 0; border-radius: var(--radius); min-height: 54px; padding: 14px 30px; font-size: .96rem; }
body.legacy-villas .contenu-legacy .btn-luxe-gold { color: var(--navy-deep); }
body.legacy-villas .contenu-legacy .btn-luxe-gold:hover { transform: none; box-shadow: none; background: #d3b56c; }
body.legacy-villas .contenu-legacy .luxe-stats { background: var(--navy); border-top: 3px solid var(--gold); }
body.legacy-villas .contenu-legacy .luxe-stat-num { font-weight: 600; color: var(--gold-light); }
body.legacy-villas .contenu-legacy .luxe-section { padding: 104px var(--gutter); }
body.legacy-villas .contenu-legacy .luxe-container { max-width: var(--max); }
body.legacy-villas .contenu-legacy .luxe-section-header { text-align: left; margin-bottom: 56px; }
body.legacy-villas .contenu-legacy .luxe-section-header p { margin: 0; max-width: 720px; }
body.legacy-villas .contenu-legacy .luxe-section-header h2::after { content: ''; display: block; width: 72px; height: 10px; margin-top: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 10'%3E%3Cpath d='M0 5 Q9 0 18 5 T36 5 T54 5 T72 5' fill='none' stroke='%23C5A55A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat left center / contain; }
body.legacy-villas .contenu-legacy .luxe-tag { color: var(--sea-text); display: inline-flex; align-items: center; gap: 12px; letter-spacing: .18em; font-size: .74rem; }
body.legacy-villas .contenu-legacy .luxe-tag::before { content: ''; width: 30px; height: 1px; background: var(--sea); }
body.legacy-villas .contenu-legacy .luxe-services-grid { gap: 20px; }
body.legacy-villas .contenu-legacy .luxe-service-card { background: var(--sand); border: 0; border-top: 3px solid var(--sea); border-radius: var(--radius); text-align: left; padding: 36px 30px; }
body.legacy-villas .contenu-legacy .luxe-service-card:hover { transform: none; box-shadow: 0 10px 26px rgba(14,35,71,.08); }
body.legacy-villas .contenu-legacy .luxe-gallery { background: var(--sand); }
body.legacy-villas .contenu-legacy .luxe-gallery-caption { background: none; left: 16px; right: auto; bottom: 16px; padding: 7px 14px; background-color: rgba(250,247,240,.95); color: var(--navy); border-radius: var(--radius); text-transform: none; letter-spacing: 0; font-weight: 600; }
body.legacy-villas .contenu-legacy .luxe-process-num { border-color: var(--sea); color: var(--sea-text); font-weight: 600; }
body.legacy-villas .contenu-legacy .luxe-zone-overlay { background: linear-gradient(transparent 40%, rgba(14,35,71,.85)); }
body.legacy-villas .contenu-legacy .luxe-cta { position: relative; padding: 104px var(--gutter); }
body.legacy-villas .contenu-legacy .luxe-cta::before { content: ''; position: absolute; left: 50%; top: 0; width: 120px; height: 3px; margin-left: -60px; background: var(--gold); }
body.legacy-villas .contenu-legacy .luxe-cta h2 { font-weight: 600; }

@media (max-width: 760px) {
  body.legacy-logements .contenu-legacy .page-hero { padding: 60px 0 68px; }
  body.legacy-logements .contenu-legacy :is(.apartments-section, .booking-banner) { padding-top: 68px; padding-bottom: 68px; }
  body.legacy-villas .contenu-legacy .luxe-hero { min-height: 0; padding: 72px 0; }
  body.legacy-villas .contenu-legacy .luxe-hero h1 { font-size: 2.3rem; }
  body.legacy-villas .contenu-legacy :is(.luxe-section, .luxe-cta) { padding: 68px var(--gutter); }
}
/* Ajustements de composition : 4 logements en 2 × 2 avec de plus grandes photos ; dernière image de la galerie des villas en pleine largeur */
body.legacy-logements .contenu-legacy .apartments-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.legacy-logements .contenu-legacy .apt-img { height: 320px; }
body.legacy-villas .contenu-legacy .luxe-gallery-item:last-child:nth-child(4) { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
@media (max-width: 760px) {
  body.legacy-logements .contenu-legacy .apartments-grid { grid-template-columns: 1fr; }
  body.legacy-logements .contenu-legacy .apt-img { height: 240px; }
  body.legacy-villas .contenu-legacy .luxe-gallery-item:last-child:nth-child(4) { aspect-ratio: 4 / 3; }
}

/* L1 : vraie photo de logement (vue mer de Mirador del Mar) en fond du bandeau de « Nos logements » */
body.lp-nos-logements .contenu-legacy .page-hero::before { background-image: url('/Photos/web/MDM_vue_mer-1280.jpg'); background-position: center 55%; opacity: .55; }

/* =====================================================
   10. Pages pratiques (licence VUT, décret 31/2024, tribunal suprême), articles (fiscalité…) et index du blog
   Design B par la feuille de style seulement : contenus, tableaux, formulaire et widget inchangés.
   ===================================================== */
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy :is(.page-hero, .vut-hero) { background: var(--navy); padding: 96px 0 104px; text-align: left; }
/* Photo du bandeau visible, comme sur l'accueil : l'ancienne page l'affichait à 10–25 % ; voile marine dégradé, plus dense côté texte */
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy :is(.page-hero, .vut-hero) { background: var(--navy); }
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy .page-hero::before { opacity: 1; background-size: cover; background-position: center 60%; }
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy :is(.page-hero, .vut-hero)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,35,71,.9) 0%, rgba(14,35,71,.66) 45%, rgba(14,35,71,.22) 100%); pointer-events: none; }
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy :is(.page-hero-inner, .vut-hero-inner) { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter); text-align: left; }
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy :is(.page-hero-inner, .vut-hero-inner) > * { max-width: 780px; margin-left: 0; margin-right: 0; justify-content: flex-start; }
/* Photos de bandeau Wikimedia disparues (404, déjà invisibles en production) remplacées par les photos de CDM (validé par Grégory le 20/10/2026) :
   décret 31/2024 et Tribunal suprême → hero-torrox ; s'expatrier EN/ES → Plage_torecillo (la version FR garde sa photo) */
body:is(.lp-decreto-31-2024-vut, .lp-tribunal-supremo-nra-2026) .contenu-legacy .page-hero::before { background-image: url("/Photos/web/hero-torrox-1280.jpg"); background-position: center 70%; }
:is(html[lang="en"], html[lang="es"]) body.lp-sexpatrier-torrox-costa .contenu-legacy .page-hero::before { background-image: url("/Photos/web/Plage_torecillo-1280.jpg"); background-position: center 55%; }
@media (max-width: 760px) {
  body:is(.lp-decreto-31-2024-vut, .lp-tribunal-supremo-nra-2026) .contenu-legacy .page-hero::before { background-image: url("/Photos/web/hero-torrox-800.jpg"); }
  :is(html[lang="en"], html[lang="es"]) body.lp-sexpatrier-torrox-costa .contenu-legacy .page-hero::before { background-image: url("/Photos/web/Plage_torecillo-800.jpg"); }
}

/* Fil d'Ariane discret : petites lettres claires, page en cours tronquée si elle est longue */
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy .breadcrumb { justify-content: flex-start; flex-wrap: nowrap; min-width: 0; font-size: .78rem; font-weight: 500; letter-spacing: .02em; text-transform: none; color: rgba(255,255,255,.7); }
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy .breadcrumb > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: rgba(255,255,255,.9); }
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy .breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy .breadcrumb a:hover { color: var(--gold-light); }
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy :is(.page-hero, .vut-hero) h1 { font-weight: 600; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.1; color: #fff; }
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy :is(.page-hero, .vut-hero) h1 em { color: var(--gold-light); }
body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy .hero-meta { justify-content: flex-start; }
body.legacy-pratique .contenu-legacy .qa-pill { border-radius: var(--radius); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }

/* Corps des articles : typographie de l'accueil, colonne de lecture confortable */
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.article-body, .vut-body) h2 { font-weight: 600; font-size: clamp(1.7rem, 2.8vw, 2.2rem); line-height: 1.15; }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.article-body, .vut-body) h3 { font-weight: 600; }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.article-body, .vut-body) p { color: var(--ink); line-height: 1.8; }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy .article-divider, body.legacy-pratique .contenu-legacy .vut-divider { background: var(--line); }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy .sec-label { color: var(--sea-text); letter-spacing: .18em; }

/* Encadrés : information (sable + bleu mer), attention (doré), bon à savoir (bleu mer clair) */
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.highlight-box, .box-info, .tip-box) { background: var(--sand) !important; border: 0 !important; border-left: 4px solid var(--sea) !important; border-radius: var(--radius) !important; }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.warning-box, .box-warn) { background: #FBF4E4 !important; border: 0 !important; border-left: 4px solid var(--gold) !important; border-radius: var(--radius) !important; }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.success-box, .box-ok) { background: rgba(43,132,151,.08) !important; border: 0 !important; border-left: 4px solid var(--sea-text) !important; border-radius: var(--radius) !important; }

/* Tableaux : en-tête marine, lignes discrètes */
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.tax-table, .sanctions-table) { border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(14,35,71,.06); }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.tax-table, .sanctions-table) th { background: var(--navy); color: var(--gold-light); }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.tax-table, .sanctions-table) td { border-bottom-color: var(--line); }

/* Étapes numérotées et comparatifs */
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.step-num, .step-list .icon) { background: var(--sea-text); color: #fff; font-family: var(--ff-title); font-weight: 600; }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy .step-item { border-color: var(--line); }
body.legacy-pratique .contenu-legacy .compare-card { border-radius: var(--radius); border-top: 3px solid var(--sea); }

/* Colonne latérale : sommaire et blocs blancs à liseré bleu mer, encart d'appel marine */
/* Encadrés blancs (l'encart .sidebar-card est marine dans l'original, texte blanc : il reste marine) ; les listes ul.sidebar-toc sont déjà dans un encadré */
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.sidebar-box, .sb-box, .sb-toc, div.sidebar-toc) { background: #fff; border: 0; border-top: 3px solid var(--sea); border-radius: var(--radius); box-shadow: 0 6px 18px rgba(14,35,71,.06); }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.sidebar-toc, .sb-toc) a:hover { color: var(--sea-text); }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.sidebar-cta, .sb-cta, .sidebar-card) { background: var(--navy); border: 0; border-top: 3px solid var(--gold); border-radius: var(--radius); }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.article-cta, .art-cta) { background: var(--navy) !important; border: 0; border-top: 3px solid var(--gold); border-radius: var(--radius) !important; }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.btn, .btn-gold, .btn-entry.primary, .btn-main) { border-radius: var(--radius); }

/* FAQ des articles : lignes fines, questions en Cormorant */
body:is(.legacy-pratique, .legacy-article) .contenu-legacy .faq-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy .faq-item summary { font-family: var(--ff-title); font-size: 1.25rem; font-weight: 600; color: var(--navy); }

/* Articles du blog : images, légendes, tableaux d'infos et de saisons, cartes de lieux, étapes */
body.legacy-article .contenu-legacy .article-img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(14,35,71,.10); }
body.legacy-article .contenu-legacy .img-caption { color: var(--muted, #6b7280); font-style: normal; font-size: .76rem; letter-spacing: .04em; }
body.legacy-article .contenu-legacy :is(.info-table, .season-table) { border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(14,35,71,.06); }
body.legacy-article .contenu-legacy :is(.info-table, .season-table) th { background: var(--navy); color: var(--gold-light); }
body.legacy-article .contenu-legacy :is(.info-table, .season-table) td { border-bottom-color: var(--line); }
body.legacy-article .contenu-legacy :is(.info-table, .season-table) tr:nth-child(even) td { background: var(--ivory, #FAF7F0); }
body.legacy-article .contenu-legacy .info-table .highlight { background: var(--sand); color: var(--navy); }
body.legacy-article .contenu-legacy .badge { border-radius: var(--radius); letter-spacing: .04em; }
body.legacy-article .contenu-legacy .badge-high { background: rgba(43,132,151,.12); color: var(--sea-text); }
body.legacy-article .contenu-legacy .badge-mid { background: #FBF4E4; color: #8a6a1f; }
body.legacy-article .contenu-legacy .badge-low { background: var(--sand); color: var(--navy); }
body.legacy-article .contenu-legacy .place-card { background: #fff; border: 0; border-top: 3px solid var(--sea); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(14,35,71,.07); }
body.legacy-article .contenu-legacy .place-card-body h4 { font-weight: 600; font-size: 1.1rem; }
body.legacy-article .contenu-legacy .step-card { background: var(--sand); border: 0; border-left: 4px solid var(--sea); border-radius: var(--radius); }
body.legacy-article .contenu-legacy .step-card .step-num { background: var(--sea-text); color: #fff; }
/* Colonnes de l'article : jamais plus larges que l'écran (sur « que faire » EN/ES, le tableau des saisons élargissait toute la page) */
body.legacy-article .contenu-legacy .article-layout > * { min-width: 0; }
/* Téléphone : le tableau des saisons tient dans l'écran, 4 colonnes visibles (la colonne Prix était coupée) */
@media (max-width: 768px) {
  body.legacy-article .contenu-legacy .season-table { display: table; table-layout: fixed; width: 100%; font-size: .78rem; }
  body.legacy-article .contenu-legacy .season-table :is(th, td) { padding: 9px 6px; line-height: 1.35; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
  body.legacy-article .contenu-legacy .season-table .badge { padding: 2px 5px; font-size: .68rem; }
}
@media (max-width: 768px) {
  body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.sanctions-table, .tax-table) { display: table; table-layout: fixed; width: 100%; font-size: .8rem; }
  body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.sanctions-table, .tax-table) :is(th, td) { padding: 9px 7px; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
}

/* Lisibilité : encart d'appel marine en texte clair ; liens du texte en bleu mer foncé et mots clés des encadrés en marine (le doré d'origine était peu lisible sur fond clair) */
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.article-cta, .art-cta) p { color: rgba(255,255,255,.85); }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.article-body, .vut-body) :is(p, li, td) a:not([class]) { color: var(--sea-text); text-decoration: underline; text-underline-offset: 2px; }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.highlight-box, .box-info, .tip-box, .success-box, .box-ok) strong { color: var(--navy) !important; }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.warning-box, .box-warn) strong { color: #7a5a12 !important; }
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.sidebar-box, .sb-box, div.sidebar-toc) a:not([class]) { color: var(--sea-text); }
/* Liens dorés écrits dans le HTML (style="color:var(--gold)") : bleu mer foncé sur fond clair, doré conservé dans les encarts marine */
body:is(.legacy-pratique, .legacy-article) .contenu-legacy :is(.article-body, .vut-body, .sidebar-card[style*="--light"]) a[style*="color:var(--gold)"]:not(:is(.article-cta, .art-cta, .sidebar-cta, .sb-cta, .sidebar-card:not([style*="--light"])) *) { color: var(--sea-text) !important; }

/* Licence VUT : widget « Quelle démarche ? », checklist, fenêtre de contact */
body.legacy-pratique .contenu-legacy .demarche-widget { border: 0; border-top: 3px solid var(--sea); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(14,35,71,.08); }
body.legacy-pratique .contenu-legacy .dem-btn { border-radius: var(--radius); }
body.legacy-pratique .contenu-legacy .dem-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
body.legacy-pratique .contenu-legacy .chk-block { background: var(--sand); border: 0; border-top: 3px solid var(--sea); border-radius: var(--radius); }
body.legacy-pratique .contenu-legacy .modal-box { border-radius: var(--radius); border-top: 4px solid var(--sea); }
body.legacy-pratique .contenu-legacy .modal-submit { border-radius: var(--radius); background: var(--gold); color: var(--navy-deep); }

/* Index du blog : titres de rubrique, cartes, grille « Guides propriétaires » remise dans la largeur du site */
body.legacy-blog .contenu-legacy .blog-section { padding: 96px 0; }
body.legacy-blog .contenu-legacy .blog-section-title { font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); }
body.legacy-blog .contenu-legacy .blog-section-title::after { content: ''; display: block; width: 72px; height: 10px; margin: 14px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 10'%3E%3Cpath d='M0 5 Q9 0 18 5 T36 5 T54 5 T72 5' fill='none' stroke='%23C5A55A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain; }
body.legacy-blog .contenu-legacy :not(.container) > .blog-grid { max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
body.legacy-blog .contenu-legacy .blog-card { border: 0; border-top: 3px solid var(--sea); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(14,35,71,.07); }
body.legacy-blog .contenu-legacy .blog-card:hover { transform: none; box-shadow: 0 14px 34px rgba(14,35,71,.12); }
body.legacy-blog .contenu-legacy .blog-card-tag { color: var(--sea-text); letter-spacing: .14em; }
body.legacy-blog .contenu-legacy .blog-card h3, body.legacy-blog .contenu-legacy .blog-card h2 { font-weight: 600; }
body.legacy-blog .contenu-legacy .blog-section:nth-of-type(odd) { background: var(--sand); }

@media (max-width: 760px) {
  body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy :is(.page-hero, .vut-hero) { padding: 52px 0 56px; }
  body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy :is(.page-hero, .vut-hero)::after { background: linear-gradient(180deg, rgba(14,35,71,.4) 0%, rgba(14,35,71,.8) 45%, rgba(14,35,71,.9) 100%); }
  body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy :is(.page-hero, .vut-hero) h1 { font-size: 1.75rem; }
  body:is(.legacy-pratique, .legacy-article, .legacy-blog) .contenu-legacy :is(.page-hero, .vut-hero) p:not(.hero-meta) { font-size: .98rem; line-height: 1.65; }
  body.legacy-blog .contenu-legacy .blog-section { padding: 64px 0; }
}