/* ===================================================================
   abdelaziznour.com — site public — identité ATELIERAN
   Bandeau orange, blocs navy, contenu clair, accents orange.
   =================================================================== */

:root {
  --orange: #000000;           /* accent : noir (sur fond clair) */
  --sur-accent: #FFFFFF;       /* texte posé sur l'accent */
  --navy: #000000;
  --navy-clair: #1A1A1A;
  --encre: #000000;
  --papier: #FFFFFF;
  --gris-texte: #000000; /* noir : tout le texte courant est en noir */
  --trait: #D9D9D9;
  --rouge-calque: #000000; /* alias conservé pour compat, même valeur que --orange */

  --main-noire: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 1.5c0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5V9.2c.3-.2.7-.3 1.1-.3.9 0 1.6.5 1.9 1.2.3-.2.6-.3 1-.3.9 0 1.6.5 1.9 1.2.3-.2.6-.3 1-.3 1 0 1.9.8 1.9 1.9V17c0 3.5-2.7 6-6 6h-1.6c-2.4 0-3.9-.9-5.2-2.6L3.6 15.6c-.5-.7-.4-1.6.3-2.1.7-.5 1.6-.4 2.2.2L9.5 16.6Z' fill='%23000' stroke='%23fff' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E") 11 1, pointer;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --marge: clamp(1.25rem, 4vw, 4rem);
  --largeur-lecture: 68ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--encre);
  background: var(--papier);
  line-height: 1.5;
}

.fond-calque { background: var(--papier); } /* conservé pour compat de nom, plus de grille sur fond clair */

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* --- En-tête : bandeau orange plein --- */
.entete {
  background: var(--papier);
  border-bottom: 1px solid #000;
  padding: clamp(1.8rem, 4vw, 2.6rem) var(--marge);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: none;
}
.entete-ligne {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.entete .sigle {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--encre);
}
.bouton-menu {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  color: var(--encre);
  cursor: pointer;
  padding: 0.65rem 0.25rem;
  transition: color 0.2s ease;
}
.bouton-menu:hover,
.bouton-menu:focus-visible,
.bouton-menu.actif {
  color: var(--encre);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

/* Panneau de menu déroulant : sobre et cossu, pas minimaliste */
.panneau-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: var(--marge);
  background: var(--papier);
  width: 210px;              /* rectangle vertical : plus haut que large */
  z-index: 20;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  padding: 0.75rem 0;
}
.panneau-menu.ouvert { display: block; animation: menu-apparait 0.18s ease; }
@keyframes menu-apparait {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.panneau-menu a {
  display: block;
  padding: 1.3rem 1rem;
  text-align: center;        /* pages centrées */
  text-decoration: none;
  color: var(--encre);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.panneau-menu a:hover, .panneau-menu a:focus-visible { background: var(--orange); color: var(--sur-accent); }
.panneau-menu a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--orange);
}

/* --- Hero : bloc navy + image en débordement (comme la maquette) --- */
.hero {
  position: relative;
  background: var(--orange);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(3rem, 9vw, 6rem);
  overflow: visible;
}
.hero-texte {
  background: var(--navy);
  color: var(--papier);
  padding: clamp(2rem, 6vw, 3.5rem);
  padding-right: clamp(9rem, 24vw, 15rem);
  max-width: 900px;
}
.hero-texte h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 1.25rem;
  font-weight: 700;
  max-width: 20ch;
}
.hero-texte p {
  max-width: 46ch;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.hero-image {
  position: absolute;
  top: -12px;
  right: var(--marge);
  width: min(46%, 640px);
  aspect-ratio: 3 / 2;       /* rectangle horizontal */
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 48px rgba(20,24,29,0.28);
}
.hero-image.vide {
  background: var(--navy-clair);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.hero-diapo-points {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.hero-diapo-points span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.hero-diapo-points span.actif { background: var(--orange); }
@media (max-width: 760px) {
  .hero { padding-bottom: 2rem; }
  .hero-texte { padding-right: clamp(2rem, 6vw, 3.5rem); max-width: none; }
  .hero-image {
    position: static;
    width: 100%;
    aspect-ratio: 3 / 2;
    margin-top: 1.5rem;
    box-shadow: none;
  }
}

/* Hero de l'accueil : la vidéo (format 16:9, 640 px de large à l'origine) occupe
   la zone image à droite du texte, sans recadrage ni agrandissement. */
.hero-image.hero-image-16x9 { aspect-ratio: 16 / 9; background: var(--papier); }
.hero-image video, .hero-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Sections générales --- */
main { display: block; }

.section {
  padding: clamp(2rem, 6vw, 3.5rem) var(--marge);
  border-top: 1px solid var(--trait);
}

.section-titre {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--encre);
  margin: 0 0 1.75rem;
}

/* --- Expertise : planches de projet (fond clair) --- */
.planches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.planche {
  background: var(--papier);
  position: relative;
}

/* --- Filigrane de protection sur les images (surcouche visuelle CSS
   uniquement — voir note technique communiquée : ça ne modifie pas le
   fichier lui-même, c'est une dissuasion à l'affichage, pas une protection
   absolue). Le wrapper .image-protegee doit entourer l'image concernée. */
.image-protegee {
  position: relative;
  display: block;
  overflow: hidden;
}
.image-protegee::after { content: none; }
.image-protegee img { display: block; width: 100%; height: 100%; }

.planche .cadre-photo { position: relative; display: block; margin-bottom: 1.1rem; }

.planche .photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: none;
}

.planche .photo-attente {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F2F2F2;
  border: 1px dashed var(--trait);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gris-texte);
  text-align: center;
  letter-spacing: 0.04em;
}

.code {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange);
  display: block;
  margin-bottom: 0.5rem;
}

/* Repère de plan incrusté sur la photo (identité "plaque technique" de
   l'Expertise, distincte des cartes Labs/Événements) : remplace le style
   général ci-dessus quand le code est affiché sur la vignette d'une carte. */
.planche .cadre-photo .code {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--encre);
  color: var(--papier);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem;
  z-index: 1;
}

.planche h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--encre);
}

.planche p {
  margin: 0 0 1rem;
  font-size: 0.94rem;
  color: var(--gris-texte);
}

.planche .meta {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--gris-texte);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px dotted var(--trait);
  padding-top: 0.75rem;
}

.planche .lien-planche { color: inherit; text-decoration: none; display: block; }
.planche .lien-planche h3 { transition: color 0.15s ease; }
.planche .lien-planche:hover h3 { color: var(--orange); }
.lire-la-suite {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}
#invite-articles-anciens { margin-top: 1.5rem; }
.lire-la-suite:hover { text-decoration: underline; }
#invite-articles-anciens .lire-la-suite { display: inline-block; }

/* --- Détail d'un projet (expertise) --- */
.photo-detail {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin: 1.5rem 0;
  cursor: zoom-in;
}
.galerie-vignettes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.vignette-galerie {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: zoom-in;
}

/* --- Visionneuse plein écran (album photo) --- */
.visionneuse {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 29, 0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.visionneuse-image {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
}
.visionneuse-fermer,
.visionneuse-precedent,
.visionneuse-suivant {
  position: absolute;
  background: none;
  border: none;
  color: var(--papier);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
}
.visionneuse-fermer { top: 1rem; right: 1.5rem; font-size: 1.6rem; }
.visionneuse-precedent { left: 1rem; top: 50%; transform: translateY(-50%); }
.visionneuse-suivant { right: 1rem; top: 50%; transform: translateY(-50%); }
.visionneuse-precedent:hover,
.visionneuse-suivant:hover,
.visionneuse-fermer:hover { color: var(--orange); }

/* --- Filigrane de protection sur les images : une seule mention discrète
   en bas à droite (pas de motif répété) — voir note au client : ne modifie
   pas le fichier lui-même, seulement l'affichage. --- */
.marque-eau, .image-protegee { position: relative; display: block; }
.marque-eau::after, .image-protegee::after { content: none; }
.article-corps .contenu figure { position: relative; }
.article-corps .contenu figure::after { content: none; }

/* --- Blog --- */
.liste-articles {
  display: flex;
  flex-direction: column;
  max-width: 760px;
}

.article-item {
  display: grid;
  grid-template-columns: 9ch 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--trait);
  text-decoration: none;
  color: inherit;
}

.article-item time {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--gris-texte);
  padding-top: 0.2rem;
}

.article-item h3 { margin: 0 0 0.35rem; font-size: 1.15rem; color: var(--encre); }
.article-item p { margin: 0; color: var(--gris-texte); font-size: 0.92rem; }

.article-mise-en-page {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
  max-width: calc(var(--largeur-lecture) + 220px + 2.5rem);
  margin: 0 auto;
  padding: 0 var(--marge);
  align-items: start;
}
.article-corps {
  max-width: var(--largeur-lecture);
  padding: clamp(2rem, 6vw, 3.5rem) 0;
}
.sommaire {
  position: sticky;
  top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--trait);
  font-size: 0.85rem;
  margin-top: clamp(2rem, 6vw, 3.5rem);
}
.sommaire-titre {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gris-texte);
  margin-bottom: 0.75rem;
}
.sommaire ul { list-style: none; margin: 0; padding: 0; }
.sommaire li { margin-bottom: 0.5rem; overflow: hidden; }
.sommaire a {
  color: var(--encre);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sommaire a:hover { color: var(--orange); }
.sommaire li.niveau-3 { padding-left: 0.85rem; }
.temps-lecture { font-family: var(--sans); font-size: 0.85rem; color: var(--gris-texte); }
.partage-social {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--trait);
  font-size: 0.85rem;
  color: var(--gris-texte);
}
.partage-social a { color: var(--gris-texte); display: inline-flex; }
.partage-social a:hover { color: var(--orange); }
@media (max-width: 900px) {
  .article-mise-en-page { grid-template-columns: 1fr; }
  .sommaire { position: static; margin: 0 0 2rem; }
}

.article-corps h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: var(--encre); }
.article-corps time { font-family: var(--sans); font-size: 0.85rem; color: var(--gris-texte); }
.article-corps .contenu {
  margin-top: 2rem;
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  line-height: 1.75;
  color: var(--encre);
  text-align: left;
  hyphens: none;
}
.article-corps .contenu p { margin: 0 0 1.4rem; }

.article-corps .contenu h2 {
  margin: 2.2rem 0 1rem;
  font-size: 1.35rem;
  text-align: left;
}
.article-corps .contenu h3 {
  margin: 1.8rem 0 0.8rem;
  font-size: 1.1rem;
  text-align: left;
}

.article-corps .contenu a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-corps .contenu a:hover { opacity: 0.85; }

.article-corps .contenu figure { margin: 1.75rem 0; }
.article-corps .contenu figure img,
.article-corps .contenu figure video,
.article-corps .contenu figure iframe { width: 100%; display: block; border: none; }
.article-corps .contenu figcaption {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--gris-texte);
  margin-top: 0.5rem;
  text-align: left;
}

.article-corps .contenu blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--orange);
  font-style: italic;
  color: var(--gris-texte);
  text-align: left;
}

.article-corps .contenu table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.92rem;
}
.article-corps .contenu th,
.article-corps .contenu td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--trait);
}
.article-corps .contenu th {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--encre);
  background: #F2F2F2;
}

.article-corps .contenu ul,
.article-corps .contenu ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
  text-align: left;
}
.article-corps .contenu li { margin-bottom: 0.4rem; }

.etat-vide {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--gris-texte);
  padding: 2rem 0;
}

/* --- Équipe --- */
.equipe-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}
.membre {
  padding: 1.25rem;
  border: 1px solid var(--trait);
  transition: box-shadow 0.15s ease;
}
.membre:hover { box-shadow: 0 8px 20px rgba(20,24,29,0.08); }
.membre .photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 0.85rem;
}
.membre .photo-attente {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 0.85rem;
  background: #F2F2F2;
  border: 1px dashed var(--trait);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gris-texte);
}
.membre h3 { margin: 0 0 0.15rem; font-size: 1.05rem; }
.membre .role { color: var(--orange); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; }
.membre p { color: var(--gris-texte); font-size: 0.9rem; margin: 0; }

.offres-liste { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }
.offre { border: 1px solid var(--trait); padding: 1.5rem; }
.offre h3 { margin: 0 0 0.5rem; }

/* Contenu riche (offres d'emploi), mêmes règles que le corps d'article */
.contenu-riche { color: var(--gris-texte); text-align: left; hyphens: none; }
.contenu-riche p { margin: 0 0 1rem; }
.contenu-riche a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.contenu-riche figure { margin: 1.25rem 0; }
.contenu-riche figure img,
.contenu-riche figure video,
.contenu-riche figure iframe { width: 100%; display: block; border: none; }
.contenu-riche figcaption { font-size: 0.8rem; color: var(--gris-texte); margin-top: 0.4rem; }
.contenu-riche ul, .contenu-riche ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.contenu-riche li { margin-bottom: 0.4rem; }
.contenu-riche strong { font-weight: 700; }
.contenu-riche em { font-style: italic; }

.offre-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem; flex-wrap: wrap; }
.lien-mailto { font-size: 0.88rem; color: var(--gris-texte); text-decoration: underline; }
.lien-mailto:hover { color: var(--orange); }

.form-candidature { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--trait); max-width: 440px; }
.champ-public { margin-bottom: 1rem; }
.champ-public label { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--encre); }
.champ-public input, .champ-public textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--trait);
  font-family: var(--sans);
  font-size: 0.95rem;
  box-sizing: border-box;
}
.message-ok-public {
  background: #F2F2F2; color: var(--navy); border-left: 3px solid var(--navy);
  padding: 0.6rem 0.85rem; font-size: 0.9rem;
}
.message-erreur-public {
  background: #F2F2F2; color: #000000; border-left: 3px solid var(--orange);
  padding: 0.6rem 0.85rem; font-size: 0.9rem; margin-top: 0.5rem;
}

/* --- Informations et droits (texte brut) --- */
.texte-legal {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) var(--marge);
  color: var(--encre);
  overflow-x: hidden; /* filet de sécurité : rien ne doit élargir la page */
}
.texte-legal h2 { margin-top: 2rem; font-size: 1.2rem; }
.texte-legal h3 { margin-top: 1.5rem; font-size: 1.05rem; }
.texte-legal p { color: var(--gris-texte); }
.texte-legal table {
  width: 100%;
  table-layout: fixed; /* les colonnes se partagent la largeur disponible, sans jamais la dépasser */
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}
.texte-legal th, .texte-legal td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--trait);
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word; /* un mot long se coupe plutôt que d'élargir la cellule */
}
.texte-legal th {
  font-weight: 700;
  background: #F2F2F2;
  color: var(--encre);
}

/* Tableaux à plusieurs colonnes : sur téléphone, chaque ligne devient une carte
   (chaque cellule porte son intitulé via data-label). */
@media (max-width: 640px) {
  .texte-legal table.tableau-empile,
  .texte-legal table.tableau-empile tbody,
  .texte-legal table.tableau-empile tr,
  .texte-legal table.tableau-empile td { display: block; width: 100%; box-sizing: border-box; }
  .texte-legal table.tableau-empile tr:first-child { display: none; }
  .texte-legal table.tableau-empile tr { margin-bottom: 1rem; border: 1px solid var(--trait); }
  .texte-legal table.tableau-empile td { border: 0; border-top: 1px solid var(--trait); padding: 0.55rem 0.8rem; }
  .texte-legal table.tableau-empile td:first-child { border-top: 0; background: #F2F2F2; font-weight: 700; }
  .texte-legal table.tableau-empile td:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gris-texte);
  }
}

/* --- Cartouche (pied de page, navy) --- */
.cartouche {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 2.5rem var(--marge) 2rem;
}
.cartouche-haut {
  display: flex;
  justify-content: flex-end;
  font-weight: 700;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}
.cartouche-corps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.cartouche-coordonnees .titre {
  font-weight: 700;
  color: var(--papier);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}
.cartouche-coordonnees div { font-size: 0.9rem; line-height: 1.7; }
.cartouche-liens {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.cartouche-liens a { text-decoration: none; color: rgba(255,255,255,0.85); }
.cartouche-liens a:hover { color: var(--orange); }
.cartouche-bas {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.cartouche-bas-avec-reseaux {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.reseaux-sociaux { display: flex; gap: 0.9rem; }
.reseaux-sociaux a { color: rgba(255,255,255,0.6); display: inline-flex; }
.reseaux-sociaux a:hover { color: var(--orange); }

.bouton {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--encre);
  text-decoration: none;
  color: var(--encre);
  background: transparent;
}
.bouton:hover { background: var(--encre); color: var(--papier); }

@media (max-width: 640px) {
  .article-item { grid-template-columns: 1fr; }
  .cartouche-corps { flex-direction: column; }
  .cartouche-liens { align-items: flex-start; }
  .article-corps .contenu { text-align: left; hyphens: none; }
}

/* --- Filigrane de protection sur les images (surcouche visuelle, voir
   discussion avec le client : ceci décourage capture/clic-droit basique,
   mais ne modifie pas le fichier lui-même — un vrai filigrane intégré au
   fichier nécessiterait un service de traitement d'image dédié). --- */
.image-protegee {
  position: relative;
  display: block;
  overflow: hidden;
}
.image-protegee::after { content: none; }
.contenu-riche figure,
.article-corps .contenu figure {
  position: relative;
  overflow: hidden;
}
.contenu-riche figure::after,
.article-corps .contenu figure::after { content: none; }

/* Curseur : petite main noire sur tous les éléments cliquables */
a, button:not(:disabled), select, summary, label[for], [role="button"],
input[type="submit"]:not(:disabled), input[type="file"], input[type="checkbox"],
input[type="radio"], .carte-profil {
  cursor: var(--main-noire) !important;
}

/* --- Contact : "Une question ? Un devis ?" --- */
.contact-section { max-width: 760px; margin: 0 auto; }
.contact-titre {
  display: block;
  margin: 0 0 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--orange);
  color: var(--sur-accent);
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.contact-description { text-align: center; margin: 0 0 2rem; color: var(--encre); }
.contact-formulaire .contact-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-envoyer {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.9rem 2.6rem;
  background: var(--orange);
  color: var(--sur-accent);
  border: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-envoyer:hover { background: #222222; color: var(--encre); }
.contact-envoyer:disabled { opacity: 0.6; }
@media (max-width: 640px) { .contact-formulaire .contact-ligne { grid-template-columns: 1fr; } }

/* Bloc "Une question ? Un devis ?" inséré dans un article ou une réalisation
   depuis l'éditeur de l'espace privé (bouton + phrase d'accompagnement). */
.bloc-contact { text-align: center; margin: 2.5rem 0; }
body .bloc-contact a.bouton-contact {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--orange);
  color: var(--sur-accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
body .bloc-contact a.bouton-contact:hover { background: #222222; color: var(--encre); }
.bloc-contact p { margin: 0.75rem 0 0; font-size: 0.9rem; color: var(--encre); text-align: center; }

/* --- Documents référentiels (accueil) : liste + lecteur PDF sans bouton de
   téléchargement (limite honnête : #toolbar=0 masque la barre d'outils du
   lecteur natif du navigateur dans la plupart des cas, mais un visiteur
   déterminé garde toujours Ctrl+S ou l'impression — voir note technique). --- */
/* Identité "fiche de référence" (Documents) : rangée horizontale avec icône
   de fichier, bordure pointillée — distincte des cartes à photo des trois
   autres types de contenu. */
.liste-documents-publics { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.carte-document-public {
  display: flex; align-items: center; gap: 1rem;
  border: 1px dashed var(--trait); padding: 1rem 1.25rem; cursor: pointer; background: none; text-align: left;
  width: 100%; font-family: inherit; text-decoration: none; color: inherit;
}
.carte-document-public:hover { background: #F7F7F7; border-style: solid; }
.carte-document-public .icone-document { flex: none; color: var(--orange); }
.carte-document-public .texte { flex: 1; min-width: 0; }
.carte-document-public .nom { font-weight: 700; display: block; }
.carte-document-public .desc { font-size: 0.85rem; color: var(--gris-texte); margin-top: 0.2rem; display: block; }
.carte-document-public .voir { font-size: 0.78rem; font-family: var(--mono); color: var(--orange); font-weight: 500; white-space: nowrap; flex: none; }

.grille-articles-accueil { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.carte-article-accueil { display: block; text-decoration: none; color: inherit; border: 1px solid var(--trait); }
.carte-article-accueil .apercu { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.carte-article-accueil .apercu-attente { width: 100%; aspect-ratio: 16/9; background: #F2F2F2; display:flex; align-items:center; justify-content:center; font-family: var(--mono); font-size: 0.72rem; color: var(--gris-texte); }
.carte-article-accueil .corps { padding: 1.1rem 1.25rem; }
.carte-article-accueil .badge-sur-photo {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  background: var(--orange); color: var(--sur-accent);
  font-family: var(--mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.02em;
  padding: 0.25rem 0.55rem;
}
.carte-article-accueil h3 { margin: 0.9rem 0 0.5rem; font-size: 1.05rem; color: var(--encre); }
.carte-article-accueil p { margin: 0 0 0.5rem; color: var(--gris-texte); font-size: 0.9rem; }

/* Carte événement complète (photo, type, titre, description, infos, actions) —
   utilisée à l'identique sur /evenements.html et dans l'aperçu de l'accueil. */
.grille-evenements, .grille-evenements-accueil { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.carte-evenement { border: 1px solid var(--trait); display: flex; flex-direction: column; }
.carte-evenement .apercu { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.carte-evenement .apercu-attente { width: 100%; aspect-ratio: 16/9; background: #F2F2F2; display:flex; align-items:flex-end; justify-content:flex-start; }
.badge-type-evenement {
  position: absolute; left: 0.75rem; top: 0.75rem;
  background: var(--orange); color: var(--sur-accent);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem;
}
.badge-type-evenement-sans-photo { position: static; margin: 0.75rem; }
.carte-evenement .corps { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.carte-evenement h3 { margin: 0.9rem 0 0.5rem; }
.carte-evenement .meta-evenement { list-style:none; margin: 0.5rem 0 1rem; padding: 0; font-size: 0.86rem; color: var(--gris-texte); }
.carte-evenement .meta-evenement li { padding: 0.2rem 0; }
.carte-evenement .meta-evenement strong { color: var(--encre); }
.carte-evenement .actions-evenement { margin-top: auto; display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

.lecteur-pdf-overlay {
  display: none; position: fixed; inset: 0; background: #fff; z-index: 1000; flex-direction: column;
}
.lecteur-pdf-overlay.ouvert { display: flex; }
.lecteur-pdf-barre {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.25rem; background: var(--navy); color: #fff;
}
.lecteur-pdf-barre button {
  background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff;
  padding: 0.35rem 0.75rem; cursor: pointer; font-size: 0.85rem; font-family: inherit;
}
#lecteur-pdf-cadre { flex: 1; border: none; width: 100%; }

/* --- Confort de navigation (UX) --- */

/* Boutons : transition douce au survol/focus, légère élévation */
.bouton, .contact-envoyer, .lire-la-suite, .bouton-contact {
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.bouton:hover, .contact-envoyer:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(20,24,29,0.15);
}
.bouton:active, .contact-envoyer:active { transform: translateY(0); box-shadow: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Zones de clic confortables au doigt sur mobile */
@media (max-width: 640px) {
  .bouton { padding-top: 0.85rem; padding-bottom: 0.85rem; }
}

/* Apparition douce des sections au défilement (dégradation silencieuse :
   sans JavaScript ou sans IntersectionObserver, tout reste visible). */
.reveal-attente { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-attente { opacity: 1; transform: none; transition: none; }
}

/* Bouton flottant "Retour en haut" */
.bouton-haut {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 48px; height: 48px;
  background: var(--encre);
  color: var(--papier);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.18s ease;
  z-index: 30;
}
.bouton-haut.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.bouton-haut:hover { background: var(--orange); color: var(--sur-accent); }

/* Mention de confidentialité sous les formulaires publics */
.mention-formulaire { font-size: 0.85rem; color: var(--gris-texte); margin: 0.75rem 0 0; }
.mention-formulaire a { color: inherit; text-decoration: underline; }

/* --- Mode « application » (Android) ---
   Les produits du Store sont des documents numériques : Google Play impose pour
   eux son propre système de paiement. Dans l'application, le Store est donc
   masqué ; il reste disponible sur le site, dans un navigateur. */
.store-indisponible { display: none; padding: clamp(2rem, 6vw, 3.5rem) var(--marge); }
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  a[href^="/store.html"] { display: none !important; }
  .store-contenu { display: none !important; }
  .store-indisponible { display: block; }
}

/* --- Classes remplaçant d'anciens styles en ligne --- */
.section-masquee { display: none; }          /* affichée par le script quand il y a du contenu */
.sans-filet { border-top: none; }
.section-centree { text-align: center; }
.bloc-suite { margin-top: 1.5rem; }
.hero.hero-compact { padding-bottom: 1rem; background: var(--papier); border-bottom: 1px solid #000; }
.titre-page { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 0.75rem; }
.hero h1.titre-page-grand { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.description-produit { color: var(--gris-texte); font-size: 0.9rem; }
.bloc-candidature { max-width: 560px; margin: 2.5rem auto 0; border-top: 1px solid var(--trait); padding-top: 2rem; }
.bloc-candidature h3 { margin-bottom: 0.4rem; }
.aide-candidature { color: var(--gris-texte); font-size: 0.9rem; margin-top: 0; }
#btn-envoyer-candidature-spontanee { margin: 1.25rem auto 0; }

/* Présentation du cabinet (accueil) */
.apropos-texte { max-width: var(--largeur-lecture); }
.apropos-texte p { margin: 0 0 1rem; line-height: 1.7; }
.apropos-texte a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.apropos-texte a:hover { color: var(--orange); }

/* Adresses e-mail du pied de page (assemblées par le script, pas écrites en clair dans le HTML) */
.cartouche-coordonnees a { color: inherit; text-decoration: none; }
.cartouche-coordonnees a:hover { color: var(--orange); text-decoration: underline; }

/* --- Lettre d'information : bloc navy, texte blanc, bouton orange --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bloc-newsletter {
  background: var(--navy);
  color: var(--papier);
  border-top: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.newsletter-titre { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; margin: 0 0 0.75rem; color: var(--papier); }
.newsletter-texte p { margin: 0; line-height: 1.65; color: rgba(255,255,255,0.85); max-width: 46ch; }
.newsletter-champs { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.6rem; }
.newsletter-form input[type="text"], .newsletter-form input[type="email"] {
  width: 100%; padding: 0.8rem 0.9rem; border: 2px solid transparent; border-radius: 0;
  background: var(--papier); color: var(--encre); font-family: var(--sans); font-size: 0.95rem;
}
.newsletter-form input.contact-piege { position: absolute; left: -9999px; width: 1px; height: 1px; padding: 0; }
.newsletter-envoyer {
  padding: 0.8rem 1.6rem; border: none; border-radius: 0; background: var(--orange); color: var(--sur-accent);
  font-family: var(--sans); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.newsletter-envoyer:hover { background: #222222; transform: translateY(-1px); }
.newsletter-envoyer:disabled { opacity: 0.6; cursor: default; transform: none; }
.newsletter-accord { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.9rem; font-size: 0.82rem; line-height: 1.5; color: rgba(255,255,255,0.8); cursor: pointer; }
.newsletter-accord input { margin-top: 0.2rem; accent-color: var(--orange); flex: none; }
.newsletter-accord a { color: var(--papier); text-decoration: underline; text-underline-offset: 3px; }
.newsletter-accord a:hover { color: var(--orange); }
.newsletter-etat { margin-top: 0.8rem; font-size: 0.9rem; min-height: 1.2em; }
.newsletter-etat.ok { color: var(--papier); border-left: 3px solid var(--orange); padding-left: 0.7rem; }
.newsletter-etat.erreur { color: #FFFFFF; border-left: 3px solid var(--orange); padding-left: 0.7rem; }
@media (max-width: 860px) {
  .bloc-newsletter { grid-template-columns: 1fr; }
  .newsletter-champs { grid-template-columns: 1fr; }
}





/* =====================================================================
   Charte noir et blanc : aucun bandeau rempli de noir (en-tête, pied de page,
   newsletter, accueil) — fond blanc, texte noir, filets noirs.
   Seuls les boutons restent pleins (noir, texte blanc).
   ===================================================================== */
.visionneuse { --orange: #FFFFFF; --sur-accent: #000000; }   /* surimpression plein écran des photos */
.hero { background: var(--papier); }
.hero-texte { background: var(--papier); color: var(--encre); box-shadow: none; border: 0; outline: 0; }
.hero-texte h1, .hero-texte h2 { color: var(--encre); }
.hero-texte p { color: rgba(0,0,0,0.8); }
.hero-image.vide { background: #F2F2F2; color: rgba(0,0,0,0.5); }
.hero-diapo-points span { background: rgba(0,0,0,0.25); }
.hero.hero-compact { border-bottom: 1px solid #000; }

.cartouche { background: var(--papier); color: rgba(0,0,0,0.8); border-top: 1px solid #000; }
.cartouche-haut { color: rgba(0,0,0,0.4); }
.cartouche-coordonnees .titre { color: var(--encre); }
.cartouche-liens a { color: rgba(0,0,0,0.85); }
.cartouche-bas { border-top: 1px solid rgba(0,0,0,0.15); color: rgba(0,0,0,0.55); }
.reseaux-sociaux a { color: rgba(0,0,0,0.65); }

.bloc-newsletter { background: var(--papier); color: var(--encre); border-top: 1px solid #000; }
.newsletter-titre { color: var(--encre); }
.newsletter-texte p { color: rgba(0,0,0,0.8); }
.newsletter-form input[type="text"], .newsletter-form input[type="email"] { border: 1px solid #000; }
.newsletter-accord { color: rgba(0,0,0,0.8); }
.newsletter-accord a { color: var(--encre); }
.newsletter-etat.ok, .newsletter-etat.erreur { color: var(--encre); }

.lecteur-pdf-barre { background: var(--papier); color: var(--encre); border-bottom: 1px solid #000; }
.lecteur-pdf-barre button { border: 1px solid rgba(0,0,0,0.4); color: var(--encre); }

/* ===== Mosaïque des projets (accueil, /expertise) =====
   Disposition « village » compacte : les cartes sont jointives (6 px d'écart),
   de gabarits différents, emboîtées sans vide. Une carte centrale sert de
   repère ; les autres se logent tout autour. Photo recadrée pour remplir sa
   case ; année en surimpression. */
.mosaique {
  --r: clamp(52px, 6.4vw, 84px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: var(--r);
  grid-auto-flow: row dense;
  gap: 6px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--marge) clamp(3rem, 8vw, 5rem);
}
.carte-mosaique { position: relative; display: block; color: inherit; text-decoration: none; overflow: hidden; background: #F2F2F2; }
.carte-mosaique.t-petite { grid-column: span 3; grid-row: span 2; }
.carte-mosaique.t-moyenne { grid-column: span 4; grid-row: span 3; }
.carte-mosaique.t-grande { grid-column: span 6; grid-row: span 4; }
/* Carte centrale : deux rangées au-dessus, le reste autour. */
.carte-mosaique.carte-centre { grid-row-start: 3; }
.carte-mosaique.carte-centre.t-petite { grid-column-start: 5; }
.carte-mosaique.carte-centre.t-moyenne { grid-column-start: 5; }
.carte-mosaique.carte-centre.t-grande { grid-column-start: 4; }
.mosaique-cadre { display: block; position: absolute; inset: 0; overflow: hidden; background: #F2F2F2; }
.mosaique-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.35s ease;
}
.carte-mosaique:hover .mosaique-photo,
.carte-mosaique:focus-visible .mosaique-photo { filter: grayscale(0); }
.carte-mosaique:focus-visible { outline: 2px solid #000; outline-offset: -2px; }
.mosaique-attente {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0.75rem; font-size: 0.8rem; color: var(--gris-texte);
}
.mosaique-annee {
  position: absolute; right: 0; bottom: 0; background: #fff; padding: 0.1rem 0.5rem 0.05rem 0.6rem;
  font-family: Georgia, "Times New Roman", serif; font-size: 1rem; color: var(--encre);
}
@media (max-width: 760px) {
  .mosaique { grid-template-columns: repeat(6, minmax(0, 1fr)); --r: 17vw; }
  .carte-mosaique.t-petite { grid-column: span 3; grid-row: span 2; }
  .carte-mosaique.t-moyenne { grid-column: span 3; grid-row: span 3; }
  .carte-mosaique.t-grande { grid-column: span 6; grid-row: span 4; }
  .carte-mosaique.carte-centre { grid-row-start: auto; grid-column-start: auto; grid-column: span 6; grid-row: span 4; }
}

/* ===== Fiche projet ===== */
.page-fiche { max-width: 1100px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) var(--marge) 3rem; }
.fiche-retour { margin: 0 0 1rem; font-size: 0.9rem; }
.diaporama { position: relative; background: #F2F2F2; margin-bottom: 2rem; outline-offset: 3px; }
.diaporama-piste { position: relative; }
.diapo { display: none; }
.diapo.actif { display: block; }
.diapo img { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #F2F2F2; cursor: zoom-in; }
.diapo-video { aspect-ratio: 16 / 9; }
.diapo-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.diaporama-fleche {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.6rem; height: 3.2rem; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.8); color: #000; font-size: 2rem; line-height: 1;
}
.diaporama-fleche:hover { background: #fff; }
.diaporama-fleche.precedent { left: 0; }
.diaporama-fleche.suivant { right: 0; }
.diaporama-compteur {
  position: absolute; right: 0.6rem; bottom: 0.6rem; background: rgba(255,255,255,0.85);
  padding: 0.15rem 0.5rem; font-size: 0.78rem; font-family: var(--mono);
}
.fiche-colonnes { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.fiche-texte h1 { margin: 0 0 0.3rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.fiche-sous-titre { margin: 0 0 1.5rem; font-style: italic; color: var(--gris-texte); }
.fiche-technique { margin: 0; }
.fiche-technique > div { margin: 0 0 0.35rem; }
.fiche-technique dt { display: inline; font-weight: 700; }
.fiche-technique dd { display: inline; margin: 0; }
@media (max-width: 760px) { .fiche-colonnes { grid-template-columns: 1fr; } }

.masquee-par-admin { display: none !important; }
