/* =====================================================================
   PAGE « À PROPOS » – styles propres à cette page
   Les styles communs viennent de ../homepage/css/style.css
   (même unité --u = 1 px de la maquette de 1920 px).
   ===================================================================== */

.page-apropos main { padding-top: 0; }


/* ---------- 1. PRÉSENTATION (portrait pleine hauteur collé au bord gauche + texte) ---------- */
.about--page { padding: 0 0 calc(73 * var(--u)) 0; }
/* cadre du portrait (il coupe l'image quand elle est agrandie) + même effet de dézoom au survol que les autres photos */
.about--page .about__photo-wrap {
  flex: none;
  width: calc(958 * var(--u) + var(--gutter));
  height: calc(1128 * var(--u));
  overflow: hidden;
}
.about--page .about__photo-wrap picture { display: contents; }
.about--page .about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 67%;   /* cadrage mesuré sur la maquette */
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (hover: hover) { .about--page .about__photo-wrap:hover .about__photo { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .about--page .about__photo { transition: none; } }
.about--page .about__content {
  box-sizing: border-box;
  width: calc(962 * var(--u));
  height: calc(1128 * var(--u));
  margin-left: 0;
  padding: calc(133 * var(--u)) 0 0 calc(108 * var(--u));
  position: relative;
  isolation: isolate;
}
.about--page .about__text { width: calc(740 * var(--u)); }

/* bandeau gris derrière le titre et le 1er paragraphe : part du bord de la photo
   et va jusqu'au bord droit de l'écran (il ne bouge pas avec le texte) */
.about--page .about__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(117 * var(--u));
  left: 0;
  height: calc(181 * var(--u));
  width: calc(100vw - 958 * var(--u) - var(--gutter));
  background: #ededed;
}

/* bouton « RENCONTRONS-NOUS → » */
.about__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--u));
  width: calc(450 * var(--u));
  height: calc(55 * var(--u));
  margin: auto 0 calc(31 * var(--u)) calc(107 * var(--u));
  border-radius: calc(5 * var(--u));
  background: var(--brun);
  color: var(--blanc);
  font-size: calc(15 * var(--u));
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.about__cta svg { width: calc(27 * var(--u)); height: auto; }


/* ---------- 2. BANDEAU PHOTO AVEC VOILE NOIR 20 % ---------- */
.band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(838 * var(--u));
  overflow: hidden;
  color: var(--blanc);
}
/* la photo (même effet de dézoom au survol que les autres) */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../../images/piece11.webp") no-repeat;
  background-size: max(calc(1956 * var(--u)), 100%) auto;
  background-position: calc(50% - 6 * var(--u)) calc(-408 * var(--u));
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* le voile noir à 20 % */
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}
@media (hover: hover) { .band:hover::before { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .band::before { transition: none; } }

.band__text {
  position: relative;
  z-index: 1;
  margin: calc(30 * var(--u)) 0 0 calc(16 * var(--u));
  font-size: calc(40 * var(--u));
  line-height: 1.2;
  text-align: center;
}


/* ---------- 3. ESPACES PROPRES À CETTE PAGE ---------- */
.page-apropos .values { height: calc(548 * var(--u)); padding-top: calc(100 * var(--u)); }
.page-apropos .reviews__photo::before {
  background-size: max(calc(1026 * var(--u)), 100%) auto;
  background-position: 50% calc(-322 * var(--u));
}


.page-apropos .marquee { height: calc(178 * var(--u)); padding-top: 0; }
.page-apropos .reviews { margin-top: calc(11 * var(--u)); }
.page-apropos .partners { margin: calc(106 * var(--u)) calc(143 * var(--u) + var(--gutter)) calc(80 * var(--u)) calc(113 * var(--u) + var(--gutter)); }


/* =====================================================================
   MOBILE – maquette « homepage_mobile_V4 », tailles de texte de la V5
   Mesures prises sur la maquette ramenée à 1500 px de large (--m).
   ===================================================================== */
@media (max-width: 820px) {

  /* en-tête : le même que sur l'accueil */
  .page-apropos main { padding-top: calc(267 * var(--m)); }

  /* ---------- photo pleine largeur ---------- */
  .about--page { position: relative; flex-direction: column; align-items: stretch; padding: 0 0 var(--espace); }
  .about--page .about__photo-wrap { overflow: hidden; width: 100%; height: calc(773 * var(--m)); }
  .about--page .about__photo {
    width: calc(1624 * var(--m));
    height: auto;
    max-width: none;
    margin: calc(-282 * var(--m)) 0 0 calc(-100 * var(--m));
    clip-path: none;           /* le cadre, ici, c'est le bloc qui entoure la photo */
    object-fit: fill;
    transform: none;
  }

  /* ---------- nom et texte ---------- */
  .about--page .about__content { position: static; isolation: auto; align-items: center; width: 100%; height: auto; margin: 0; padding: 0; text-align: center; }
  .about--page .about__content::before { display: none; }
  .about--page .about__heading { transform: none; }
  .about--page .about__title { margin-top: calc(250 * var(--m)); }   /* même espace qu'entre deux blocs sous le bouton */
  .about--page .about__label { margin-top: calc(7 * var(--m)); }
  .about--page .about__text--mobile {
    width: auto;
    margin-top: calc(67 * var(--m));
    transform: none;
    padding: 0 calc(110 * var(--m));
    font-size: var(--corps);
    line-height: var(--interligne);
    white-space: normal;
    text-wrap: pretty;
  }
  .about--page .about__text--mobile br { display: none; }
  .about--page .about__text--mobile p + p { margin-top: var(--interligne); }

  /* ---------- bouton blanc à cheval sur le bas de la photo (sans flèche) ---------- */
  .about--page .about__cta {
    position: absolute;
    z-index: 2;
    left: calc(809 * var(--m));
    top: calc(708 * var(--m));
    width: calc(541 * var(--m));
    height: calc(101 * var(--m));
    margin: 0;
    gap: 0;
    border: 1px solid var(--brun);
    border-radius: calc(20 * var(--m));
    background: var(--blanc);
    box-shadow: 0 calc(8 * var(--m)) calc(26 * var(--m)) rgba(0, 0, 0, 0.14);
    color: var(--noir);
    font-size: calc(34.4 * var(--m));
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
  .page-apropos .about--page .about__cta::after { content: none; }

  /* ---------- rubriques communes ---------- */
  .band { height: calc(810 * var(--m)); }
  .band::before { background-size: cover; background-position: center; transform: none; }
  .band__text { margin: 0; font-size: var(--titre); line-height: calc(91 * var(--m)); white-space: nowrap; }
  .page-apropos .reviews__photo::before { background-size: cover; background-position: center 40%; }
  .page-apropos .values { height: auto; padding-top: calc(195 * var(--m)); }
  .page-apropos .marquee { height: calc(490 * var(--m)); }
  .page-apropos .partners { margin: 0; }   /* le bloc « projet » qui suit apporte déjà l'espace */
  .page-apropos .reviews { margin: 0 0 var(--espace); }

  /* ---------- ordre des rubriques : la maquette montre présentation,
     « À l'affiche » puis la citation ; la suite reprend l'ordre de l'accueil mobile ---------- */
  .page-apropos main { display: flex; flex-direction: column; }
  .page-apropos .about    { order: 1; }
  .page-apropos .annonces { order: 2; }
  .page-apropos .network  { order: 3; }
  .page-apropos .values   { order: 4; }
  .page-apropos .reviews  { order: 5; }
  .page-apropos .partners { order: 6; }
  .page-apropos .projet   { order: 7; }
  .page-apropos .band     { order: 8; }
}
