
/* ==========================================================
   PAGE SPECIAL — PORTFOLIO
   Mise en page éditoriale réutilisable
========================================================== */


/* ==========================================================
   01 — VARIABLES ET STRUCTURE GÉNÉRALE
========================================================== */

#body.special-page {

  /* Largeurs */
  --special-largeur-page: 1200px;
  --special-largeur-contenu: 950px;

  /* Fonds */
  --special-fond-clair: #f4f3f1;
  --special-fond-secondaire: #f6f6f5;

  /* Textes sur fond sombre */
  --special-texte-clair: #e0e0e0;
  --special-titre-clair: #f5f5f5;

  /* Textes sur fond clair */
  --special-texte-fonce: #333333;
  --special-titre-fonce: #202020;

  /* Couleurs complémentaires */
  --special-accent: #9b7b44;
  --special-accent-fonce: #806637;
  --special-bordure: #dddddd;

  /* Espacements */
  --special-espace-section: 85px;
  --special-espace-colonnes: 60px;
  --special-espace-galerie: 45px;

  /* Conteneur général */
  width: calc(100% - 40px);
  max-width: var(--special-largeur-page);

  margin-left: auto;
  margin-right: auto;
}


/* Box-sizing limité à la page spéciale */

#body.special-page *,
#body.special-page *::before,
#body.special-page *::after {
  box-sizing: border-box;
}


/* Contenu principal */

#body.special-page .special-content {
  width: 100%;
  max-width: none;

  margin: 0 auto;
  padding: 30px 0 70px;

  float: none;
  clear: both;

  color: var(--special-texte-clair);
}


/* ==========================================================
   02 — IMAGES ET FIGURES
========================================================== */

#body.special-page .special-content img {
  display: block;

  width: 100%;
  max-width: 100%;
  height: auto;

  float: none;
}

#body.special-page figure {
  margin: 0;
}

#body.special-page .special-media {
  min-width: 0;
}


/* Légendes sur fond sombre */

#body.special-page figcaption {
  margin-top: 12px;

  font-size: 12px;
  line-height: 1.5;

  color: #bcbcbc;
  text-align: center;
}


/* Légendes sur fond clair */

#body.special-page .special-hero figcaption,
#body.special-page .special-wide figcaption,
#body.special-page .special-conclusion figcaption {
  color: #666666;
}


/* ==========================================================
   03 — TYPOGRAPHIE
========================================================== */

/* Titres H2 */

#body.special-page .special-content h2 {
  margin: 0 0 24px;

  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.22;
  font-weight: 600;

  color: var(--special-titre-clair);
  text-align: left;
}


/* Paragraphes */

#body.special-page .special-content p {
  margin: 0 0 18px;

  font-size: 16px;
  line-height: 1.75;

  color: var(--special-texte-clair);
}


/* Surtitres */

#body.special-page .special-content .special-label {
  margin-bottom: 18px;

  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;

  letter-spacing: 2px;
  text-transform: uppercase;

  color: var(--special-accent);
}


/* Texte d'introduction */

#body.special-page .special-content .special-lead {
  font-size: 19px;
  line-height: 1.55;
  font-weight: 500;
}


/* ==========================================================
   04 — COULEURS DES SECTIONS À FOND CLAIR
========================================================== */

/* Fonds */

#body.special-page .special-hero,
#body.special-page .special-conclusion {
  background: var(--special-fond-clair);
  color: var(--special-texte-fonce);
}

#body.special-page .special-wide {
  background: var(--special-fond-secondaire);
  color: var(--special-texte-fonce);
}


/* Titres */

#body.special-page .special-hero h2,
#body.special-page .special-wide h2,
#body.special-page .special-conclusion h2 {
  color: var(--special-titre-fonce);
}


/* Paragraphes */

#body.special-page .special-hero p,
#body.special-page .special-wide p,
#body.special-page .special-conclusion p {
  color: var(--special-texte-fonce);
}


/* Surtitres */

#body.special-page .special-hero .special-label,
#body.special-page .special-wide .special-label,
#body.special-page .special-conclusion .special-label {
  color: var(--special-accent-fonce);
}


/* ==========================================================
   05 — INTRODUCTION / HERO
========================================================== */

#body.special-page .special-hero {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(0, 1fr);

  gap: 55px;
  align-items: center;

  padding: 45px;
}

#body.special-page .special-hero-text {
  min-width: 0;
  text-align: left;
}


/* ==========================================================
   06 — CHIFFRES CLÉS
========================================================== */

#body.special-page .special-stats {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 20px;

  width: 100%;
  max-width: var(--special-largeur-contenu);

  margin: 0 auto;
  padding: 45px 0;

  text-align: center;

  border-bottom: 1px solid var(--special-bordure);
}


/* Valeurs */

#body.special-page .special-stats strong {
  display: block;

  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;

  color: #ffffff;
}


/* Descriptions */

#body.special-page .special-stats span {
  display: block;

  margin-top: 8px;

  font-size: 13px;
  color: #cccccc;
}


/* ==========================================================
   07 — SECTIONS ET COLONNES
========================================================== */

/* Espacement général des sections */

#body.special-page .special-section {
  margin-top: var(--special-espace-section);
}


/* Sections à deux colonnes */

#body.special-page .special-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: var(--special-espace-colonnes);
  align-items: start;

  width: 100%;
  max-width: var(--special-largeur-contenu);

  margin: 60px auto 35px;
}


/* Blocs de texte */

#body.special-page .special-text {
  min-width: 0;
  text-align: left;
}


/* ==========================================================
   08 — SECTION GRAND FORMAT
========================================================== */

#body.special-page .special-wide {
  padding: 60px 35px;
  text-align: left;
}


/* Introduction d'une section */

#body.special-page .special-section-heading {
  width: 100%;
  max-width: var(--special-largeur-contenu);

  margin: 0 auto 35px;
  text-align: left;
}


/* Image principale grand format */

#body.special-page .special-wide > .special-media {
  width: 100%;
  max-width: var(--special-largeur-contenu);

  margin: 0 auto;
}


/* ==========================================================
   09 — GALERIES DE VISUELS
========================================================== */

/* Galerie à deux colonnes par défaut */

#body.special-page .special-gallery {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  column-gap: var(--special-espace-galerie);
  row-gap: 35px;

  align-items: start;

  width: 100%;
  max-width: var(--special-largeur-contenu);

  margin: 0 auto 35px;
}


/* Variante à trois colonnes */

#body.special-page .special-gallery-three {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}


/* Les images conservent leurs proportions.
   Pas de hauteur imposée ni de fond artificiel. */


/* ==========================================================
   10 — PHOTOGRAPHIES D'IMPRESSION
========================================================== */

/* Trois images empilées verticalement */

#body.special-page .special-print-grid {
  display: grid;

  grid-template-columns: minmax(0, 1fr);
  gap: 20px;

  align-items: start;
}


/* Texte aligné en haut des photographies */

#body.special-page .special-print-grid + .special-text {
  align-self: start;
}


/* ==========================================================
   11 — CONCLUSION ET CONTACT
========================================================== */

#body.special-page .special-conclusion {
  display: grid;

  grid-template-columns:
    minmax(0, var(--special-largeur-contenu));

  justify-content: center;
  align-items: start;

  margin-top: 90px;
  padding: 65px 35px;

  text-align: left;
}


/* Titres et paragraphes dans le même axe */

#body.special-page .special-conclusion h2,
#body.special-page .special-conclusion p {
  width: 100%;
  max-width: none;

  margin-left: 0;
  margin-right: 0;
}


/* Espacement des paragraphes */

#body.special-page .special-conclusion p {
  margin-bottom: 25px;
}


/* Espacement du titre */

#body.special-page .special-conclusion h2 {
  margin-bottom: 25px;
}


/* Bouton de contact */

#body.special-page .special-button {
  display: inline-block;
  justify-self: start;

  max-width: 100%;

  padding: 16px 27px;

  background: #252525;
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;

  text-decoration: none;
  text-align: center;

  transition: background-color 0.2s ease;
}


/* Survol et navigation clavier */

#body.special-page .special-button:hover,
#body.special-page .special-button:focus-visible {
  background: var(--special-accent-fonce);
}

#body.special-page .special-button:focus-visible {
  outline: 2px solid var(--special-accent-fonce);
  outline-offset: 3px;
}


/* ==========================================================
   12 — RESPONSIVE : TABLETTES
   Écrans jusqu'à 780 px
========================================================== */

@media screen and (max-width: 780px) {

  /* Conteneur général */

  #body.special-page {
    width: calc(100% - 30px);
  }


  /* Passage des compositions en une colonne */

  #body.special-page .special-hero,
  #body.special-page .special-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }


  /* Introduction */

  #body.special-page .special-hero {
    padding: 25px;
  }


  /* Espacement des sections */

  #body.special-page .special-section {
    margin-top: 55px;
  }


  /* Sections grand format */

  #body.special-page .special-wide {
    padding: 35px 20px;
  }


  /* Typographie */

  #body.special-page .special-content h2 {
    font-size: 25px;
  }


  /* Chiffres clés */

  #body.special-page .special-stats {
    gap: 12px;
  }

  #body.special-page .special-stats strong {
    font-size: 25px;
  }


  /* Galerie à trois colonnes :
     passage à deux colonnes */

  #body.special-page .special-gallery-three {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  /* Conclusion */

  #body.special-page .special-conclusion {
    margin-top: 55px;
    padding: 40px 20px;
  }

}


/* ==========================================================
   13 — RESPONSIVE : MOBILES
   Écrans jusqu'à 568 px
========================================================== */

@media screen and (max-width: 568px) {

  /* Page sur toute la largeur disponible */

  #body.special-page {
    width: 100%;
  }


  /* Images sans retrait horizontal */

  #body.special-page .special-hero,
  #body.special-page .special-wide {
    padding-left: 0;
    padding-right: 0;
  }


  /* Retrait horizontal de 70 px :
     réservé aux contenus textuels */

  #body.special-page > h1,
  #body.special-page .special-hero-text,
  #body.special-page .special-text,
  #body.special-page .special-section-heading,
  #body.special-page .special-stats,
  #body.special-page .special-media figcaption {
    padding-left: 70px;
    padding-right: 70px;
  }


  /* Conclusion : aucun visuel à préserver */

  #body.special-page .special-conclusion {
    padding-left: 70px;
    padding-right: 70px;
  }


  /* Chiffres clés et galeries sur une colonne */

  #body.special-page .special-stats,
  #body.special-page .special-gallery,
  #body.special-page .special-gallery-three,
  #body.special-page .special-print-grid {
    grid-template-columns: minmax(0, 1fr);
  }


  /* Bouton adaptable à la largeur disponible */

  #body.special-page .special-button {
    white-space: normal;
    overflow-wrap: break-word;
  }

}


/* ==========================================================
   14 — RESPONSIVE : PETITS MOBILES
   Écrans jusqu'à 480 px
========================================================== */

@media screen and (max-width: 480px) {

  /* Paragraphes */

  #body.special-page .special-content p {
    font-size: 15px;
  }


  /* Texte d'introduction */

  #body.special-page .special-content .special-lead {
    font-size: 18px;
  }


  /* Espacements verticaux des chiffres clés */

  #body.special-page .special-stats {
    gap: 25px;
  }

}
