/* ===========================================================
   Solaya Immo — Pages intérieures V14
   Se charge APRÈS style.css sur toutes les pages hors accueil.
   Même langage que l'accueil : photo plein cadre, grands titres,
   point ocre, apparitions au défilement.
   =========================================================== */

:root {
  --cadre: 1320px;
  --marge: clamp(20px, 4vw, 56px);
  --ocre-clair: #D9A45F;
  --doux: cubic-bezier(0.22, 1, 0.36, 1);
}

main .conteneur { max-width: var(--cadre); padding: 0 var(--marge); }

/* ---------- Barre de progression + apparitions ---------- */
.progression { position: fixed; top: 0; left: 0; z-index: 200; height: 2px; width: 100%; background: var(--ocre); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--doux), transform 0.9s var(--doux); }
.rv.vu { opacity: 1; transform: none; }

/* ---------- En-tête de page : photo plein cadre ---------- */
.page-entete {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(72vh, 680px);
  display: flex; align-items: flex-end;
  padding: 190px 0 clamp(56px, 8vw, 96px);
  text-align: left;
  background: var(--encre);
}
.page-entete::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--photo, none) center / cover no-repeat;
  animation: zoom-lent 14s var(--doux) both;
}
.page-entete::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(38,36,28,0.9) 0%, rgba(38,36,28,0.62) 55%, rgba(38,36,28,0.36) 100%),
    linear-gradient(180deg, rgba(38,36,28,0.75) 0%, rgba(38,36,28,0.1) 34%, rgba(38,36,28,0.9) 100%);
}
@keyframes zoom-lent { from { transform: scale(1.12); } to { transform: scale(1); } }
.page-entete .conteneur { width: 100%; }
.page-entete .eyebrow { display: flex; align-items: center; gap: 12px; color: var(--ocre-clair) !important; margin-bottom: 22px; }
.page-entete .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ocre-clair); flex: none; }
.page-entete h1 {
  font-size: clamp(36px, 5.6vw, 84px); line-height: 1.04; letter-spacing: 0;
  max-width: 15em; margin-left: 0; margin-right: 0;
}
.page-entete p, .page-entete--texte p {
  max-width: 36em; margin: 28px 0 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; opacity: 0.9;
}
.page-entete .eyebrow, .page-entete h1, .page-entete p { animation: monte 1s var(--doux) both; }
.page-entete h1 { animation-delay: 0.12s; }
.page-entete p { animation-delay: 0.28s; }
@keyframes monte { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.photo-qui { --photo: url("../assets/photos/creek-arche.jpg"); }
.photo-accompagnement { --photo: url("../assets/photos/skyline-nuit-eau.jpg"); }
.photo-pourquoi { --photo: url("../assets/photos/downtown-heure-bleue.jpg"); }
.photo-engagements { --photo: url("../assets/photos/sheikh-zayed-crepuscule.jpg"); }
.photo-investisseurs { --photo: url("../assets/photos/palm-jumeirah.jpg"); }
.photo-faq { --photo: url("../assets/photos/business-bay.jpg"); }
.photo-contact { --photo: url("../assets/photos/downtown-jour.jpg"); }
.page-entete.sans-photo { min-height: 0; padding-top: 170px; }
.page-entete.sans-photo::before, .page-entete.sans-photo::after { display: none; }

/* ---------- Sections ---------- */
main > .section-claire, main > .section-platre, main > .section-encre { padding: clamp(72px, 10vw, 140px) 0; }
.section-entete { text-align: left; max-width: 46em; margin: 0 0 clamp(36px, 5vw, 64px); }
.section-entete h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.08; letter-spacing: 0; text-wrap: balance; }
.section-entete p { margin: 22px 0 0; max-width: 36em; font-size: clamp(18px, 1.45vw, 20px); opacity: 0.85; }
main .eyebrow { display: flex; align-items: center; gap: 12px; }
main .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--majorelle); flex: none; }

/* ---------- À propos (portrait + texte) ---------- */
.apropos__grille { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.apropos__image { position: sticky; top: 110px; overflow: visible; }
.apropos__image::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--majorelle); border-radius: 4px; }
.apropos__image::after { content: ""; position: absolute; right: -29px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--ocre); }
.apropos__image img { position: relative; height: auto; width: 100%; border-radius: 4px; }
.apropos__texte h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: 0; }
.apropos__texte .titre-sec { font-size: clamp(24px, 2.4vw, 32px); margin-top: 48px; }
.apropos__texte p, .apropos__texte .liste-points li { font-size: clamp(17.5px, 1.4vw, 19.5px); opacity: 0.88; }
.apropos__citation { font-family: var(--font-titre); font-size: clamp(24px, 2.8vw, 38px); line-height: 1.22; color: var(--majorelle); border-left: 2px solid var(--ocre); padding-left: 28px; opacity: 1 !important; }

/* ---------- Cartes (atouts, engagements) ---------- */
.atouts__grille { gap: clamp(16px, 2vw, 28px); counter-reset: carte; }
.atout {
  position: relative; counter-increment: carte;
  padding: clamp(28px, 3vw, 44px); border: 0; border-radius: 6px;
  background: var(--chaux);
  box-shadow: 0 30px 60px -48px rgba(38,36,28,0.5);
  transition: transform 0.6s var(--doux), box-shadow 0.6s ease, opacity 0.9s var(--doux);
  overflow: hidden;
}
.section-claire .atout { background: var(--platre); }
.atout::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--majorelle); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.7s var(--doux); }
.atout:hover, .atout--ligne:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -44px rgba(38,36,28,0.6); }
.atout:hover::before, .atout--ligne::before { transform: scaleX(1); }
.atout__icone { width: auto; height: auto; background: none; color: var(--ocre); justify-content: flex-start; font-size: 0; margin-bottom: 26px; }
.atout__icone::before { content: counter(carte, decimal-leading-zero); font-family: var(--font-titre); font-size: 34px; line-height: 1; letter-spacing: 0.04em; }
.atout__icone::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--majorelle); margin-left: 6px; align-self: flex-start; }
.atout h2, .atout h3 { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.18; margin-bottom: 14px; }
.atout p, .atouts__grille--2 .atout p, .atouts__grille--3 .atout p, .atout .liste-points li { font-size: 17.5px; line-height: 1.6; opacity: 0.86; }

/* ---------- Étapes : grands chiffres au trait ---------- */
.etapes { gap: 0; border-top: 1px solid var(--sable); }
.etape, .etape--ligne { background: none; border: 0; border-right: 1px solid var(--sable); padding: clamp(28px, 3vw, 48px); }
.etape:first-child { padding-left: 0; }
.etape:last-child { border-right: 0; }
.etape__num { width: auto; height: auto; background: none; border-radius: 0; justify-content: flex-start; font-size: clamp(84px, 9vw, 132px); line-height: 0.85; color: transparent; -webkit-text-stroke: 1px var(--ocre); margin-bottom: 28px; }
.etape h3, .etape--ligne h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 14px; }
.etape p, .etape--ligne p { font-size: 17.5px; opacity: 0.86; }

/* ---------- Contenu éditorial ---------- */
.contenu { max-width: 820px; }
.contenu--large { max-width: 1040px; }
.contenu h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: 0; margin: clamp(56px, 7vw, 96px) 0 24px; }
.contenu p { font-size: clamp(17.5px, 1.4vw, 19.5px); opacity: 0.88; }
.liste-points li { font-size: clamp(17.5px, 1.4vw, 19.5px); padding-left: 30px; margin-bottom: 14px; }
.liste-points li::before { background: var(--ocre); }

/* ---------- Tableaux ---------- */
.tableau-cadre { border-radius: 6px; box-shadow: 0 30px 60px -48px rgba(38,36,28,0.5); }
.tableau { background: var(--chaux); font-size: 17px; }
.section-claire .tableau { background: var(--platre); }
.tableau th { background: var(--encre); color: var(--chaux); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; padding: 18px 24px; text-align: left; }
.tableau td { padding: 22px 24px; transition: background 0.3s ease; }
.tableau td:first-child { font-size: 1.2rem; color: var(--majorelle); }
.tableau tbody tr:hover td { background: rgba(75,68,190,0.05); }

/* ---------- FAQ en accordéon ---------- */
.faq__item { padding: 0; border-top: 1px solid var(--sable); }
.faq__item:first-child { border-top: 1px solid var(--sable); }
.faq__item:last-child { border-bottom: 1px solid var(--sable); }
.faq h2 { margin: 0; font-size: clamp(21px, 2.2vw, 28px); }
.faq__q { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 28px 0; cursor: pointer; font: inherit; color: inherit; transition: color 0.25s ease; }
.faq__q:hover { color: var(--majorelle); }
.faq__q:focus-visible { outline: 3px solid var(--majorelle); outline-offset: 4px; }
.faq__q::after { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ocre); transition: background 0.3s ease, transform 0.5s var(--doux); }
.faq__item.ouvert .faq__q::after { background: var(--ocre); transform: scale(1.25); }
.faq__rep { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--doux); }
.faq__rep > div { overflow: hidden; }
.faq__item.ouvert .faq__rep { grid-template-rows: 1fr; }
.faq__rep > div > *:last-child { padding-bottom: 30px; }
.faq__rep p { max-width: 44em; }

/* ---------- Citation : Majorelle + photo ---------- */
.bandeau-citation {
  position: relative; padding: clamp(96px, 13vw, 190px) 0; text-align: left;
  background-color: var(--majorelle);
  background-image: linear-gradient(rgba(75,68,190,0.6), rgba(75,68,190,0.6)), url("../assets/photos/creek-silhouette.jpg");
  background-size: cover; background-position: center;
  background-blend-mode: normal, luminosity;
}
.bandeau-citation blockquote { font-size: clamp(28px, 4.4vw, 66px); line-height: 1.14; max-width: 17em; margin: 0; text-wrap: balance; }
.bandeau-citation cite { display: block; margin-top: 40px; font-size: 13px; letter-spacing: 0.22em; }

/* ---------- Appel final : photo plein cadre ---------- */
main > section.appel-action:last-child {
  position: relative; isolation: isolate; color: var(--chaux);
  padding: clamp(110px, 14vw, 200px) 0;
  background: var(--encre) url("../assets/photos/burj-al-arab.jpg") center / cover no-repeat;
}
main > section.appel-action:last-child::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(38,36,28,0.66), rgba(38,36,28,0.84)); }
main > section.appel-action:last-child h2 { color: var(--chaux); font-size: clamp(32px, 4.6vw, 64px); line-height: 1.08; letter-spacing: 0; }
main > section.appel-action:last-child p { color: rgba(251,249,245,0.9); opacity: 1; }
main > section.appel-action:last-child .eyebrow { justify-content: center; color: var(--ocre-clair) !important; }
main > section.appel-action:last-child .eyebrow::before { background: var(--ocre-clair); }
main > section.appel-action:last-child .signature { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.12; color: var(--chaux); }
main > section.appel-action:last-child .bouton--plein:hover { background: var(--chaux); border-color: var(--chaux); color: var(--majorelle); }
main > section.appel-action:last-child .lien-texte, main > section.appel-action:last-child .lien-suite { color: var(--chaux); }

/* ---------- Contact ---------- */
.formulaire { border: 0; border-radius: 8px; padding: clamp(28px, 3.4vw, 52px); box-shadow: 0 40px 80px -56px rgba(38,36,28,0.55); }
.formulaire input, .formulaire select, .formulaire textarea { border-radius: 4px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 0; border-color: var(--majorelle); box-shadow: 0 0 0 3px rgba(75,68,190,0.18); }
.rdv { border-radius: 8px; padding: clamp(28px, 3.4vw, 52px) clamp(24px, 3vw, 44px); }
.contact__bloc h3 { font-size: clamp(20px, 1.8vw, 24px); }

/* ---------- Page légale ---------- */
.legal h2 { font-size: clamp(24px, 2.6vw, 34px); }

/* ---------- Adaptation ---------- */
@media (max-width: 960px) {
  .page-entete { min-height: 0; padding: 150px 0 56px; }
  .apropos__grille { grid-template-columns: minmax(0, 1fr); }
  .apropos__image { position: relative; top: 0; max-width: 460px; margin-right: 22px; }
  .etapes { border-top: 0; }
  .etape, .etape--ligne, .etape:first-child { border-right: 0; border-top: 1px solid var(--sable); padding: 36px 0; }
}
@media (max-width: 720px) {
  .tableau th { display: none; }
  .faq__q { padding: 22px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .page-entete::before, .page-entete .eyebrow, .page-entete h1, .page-entete p { animation: none; }
  .atout, .atout::before, .faq__rep { transition: none; }
}

main > section.appel-action:last-child .signature { text-wrap: balance; max-width: 22em; margin-left: auto; margin-right: auto; }
