/* ==========================================================================
   Nacre Patrimoine – feuille de style principale
   Reproduction fidèle du thème WordPress « Total » (sans dépendances)
   ========================================================================== */

:root {
  /* Couleurs de la charte */
  --c-gold: #c08832;          /* titres, pied de page */
  --c-green: #417069;         /* couleur d'accent (boutons, liens) */
  --c-green-dark: #2d5650;    /* survol bouton */
  --c-text: #666666;          /* texte courant */
  --c-text-dark: #0a0a0a;
  --c-cream: #fff7eb;         /* fonds crème */
  --c-cream-dark: #f6e0be;    /* bas de page */
  --c-hero-bg: #110c09;
  --c-line: #cccccc;

  /* Typographies */
  --f-body: "Open Sans", Arial, sans-serif;
  --f-title: "Cinzel", Georgia, serif;
  --f-footer: "Lato", Arial, sans-serif;

  --container: 980px;
  --header-h: 120px;
  --header-h-sticky: 70px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; border: 0; vertical-align: bottom; }

a { color: var(--c-green); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 20px; }

h1, h2, h3, h4, h5, h6 {
  margin: 30px 0 0;
  font-family: var(--f-title);
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1.5;
}

h2 { font-size: 20px; }

ul { list-style: none; margin: 0; padding: 0; }

button { font: inherit; }

.container {
  width: var(--container);
  max-width: 90%;
  margin: 0 auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 5px;
  z-index: 100000;
  padding: 15px 23px;
  background: #ddd;
  color: #444;
}
.skip-link:focus { left: 5px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 6.5px 30px;
  border-radius: 20px;
  background: var(--c-green);
  color: #fff;
  font-size: 13px;
  line-height: 1.65;
  transition: all .25s;
}
.btn:hover { background: var(--c-green-dark); color: #fff; text-decoration: none; }

/* ==========================================================================
   En-tête (transparent sur le hero, puis noir et réduit au défilement)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: transparent;
  transition: background-color .3s ease;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .3s ease;
}

.site-logo { display: block; line-height: 0; }
.site-logo img {
  display: block;
  width: auto;
  height: 60px;
  transition: height .3s ease;
}

.main-nav { margin-right: -15px; }
.main-nav__list { display: flex; }
.main-nav__list a {
  display: block;
  height: 50px;
  line-height: 50px;
  padding: 0 15px;            /* 4px (lien) + 11px (span.link-inner du thème) */
  color: #fff;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s ease-in-out;
}
/* Survol et page active : vert d'accent (sur les futures pages, ajouter aria-current="page") */
.main-nav__list a:hover,
.main-nav__list a:focus-visible,
.main-nav__list a[aria-current="page"] { color: var(--c-green); }

/* État « collant » */
.site-header.is-sticky { background: #000; }
.site-header.is-sticky .site-header__inner { height: var(--header-h-sticky); }
.site-header.is-sticky .site-logo img { height: 50px; }

/* Bouton menu mobile (3 barres) */
.menu-toggle {
  display: none;
  padding: 10px 0 10px 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}
.menu-toggle__bars { position: relative; margin: 7px 0; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { bottom: -7px; }

/* Panneau menu mobile */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  z-index: 100001;
  width: 320px;
  max-width: 100%;
  height: 100%;
  padding-bottom: 30px;
  overflow-y: auto;
  background: #262626;
  color: #707070;
  font-size: 16px;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.mobile-menu.is-open { transform: none; visibility: visible; }

.mobile-menu__close {
  display: inline-block;
  padding: 10px 20px;
  border: 0;
  background: none;
  color: #aaa;
  font-family: "Times New Roman", Times, serif;
  font-size: 36px;
  line-height: normal;
  cursor: pointer;
}
.mobile-menu__close:hover { color: #fff; }

.mobile-menu__list li { border-bottom: 1px solid rgba(255,255,255,.035); }
.mobile-menu__list li:first-child { border-top: 1px solid rgba(255,255,255,.035); }
.mobile-menu__list li:last-child { border-bottom: 0; }
.mobile-menu__list a {
  display: block;
  padding: .9em 20px;
  color: inherit;
  transition: all .15s ease-in-out;
}
.mobile-menu__list a:hover { color: #fff; text-decoration: none; }

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.mobile-menu-overlay.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   Hero plein écran (reproduit le Revolution Slider : grille 1240 × 868)
   --u = facteur d'échelle exprimé en px (1px max)
   ========================================================================== */
.hero {
  --hero-h: 100vh;
  --u: min(1px, calc(var(--hero-h) / 868), calc((100vw - 32px) / 441));
  position: relative;
  height: var(--hero-h);
  min-height: 420px;
  overflow: hidden;
  background: var(--c-hero-bg);
}
@supports (height: 100svh) {
  .hero { --hero-h: 100svh; }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: heroFade .3s ease-out both;
}

.hero__layer {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--y) * var(--u));
  z-index: 5;
  margin: 0;
  line-height: 0;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: layerUp .3s cubic-bezier(.645,.045,.355,1) var(--delay, 0s) both;
}

.hero__gravure img { width: calc(206 * var(--u)); }
.hero__title img   { width: calc(441 * var(--u)); }
.hero__since img   { width: calc(429 * var(--u)); }

.btn-hero {
  display: inline-block;
  padding: 12px 35px;
  border-radius: 30px;
  background: var(--c-green);
  color: #fff;
  font-family: var(--f-footer);
  font-size: 17px;
  font-weight: 400;
  line-height: 17px;
  text-decoration: none;
}
.btn-hero:hover { background: rgba(65,112,105,.9); color: #fff; text-decoration: none; }

.hero__arrow {
  padding: 20px 40px;
  border: 0;
  background: none;
  cursor: pointer;
  animation-name: layerDown;
}
.hero__arrow img { width: 29px; }

@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes layerUp {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 50px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes layerDown {
  from { opacity: 0; transform: translate(-50%, calc(-50% - 50px)); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ==========================================================================
   Sections de contenu
   ========================================================================== */
.section-title { text-align: center; margin: 30px 0 30px; }

/* --- Notre expérience --- */
.experience { background: #fff7ea; }
.experience__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.experience__text {
  padding: 20px;
  background: var(--c-cream);
}
.experience__text h2 { margin: 30px 0 20px; }
.experience__text p { color: var(--c-text-dark); }
.experience__media img { display: block; width: 100%; }

/* --- Certifications --- */
.certifications__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
}
.certifications__item img { display: block; width: 150px; }

/* --- Presse --- */
.presse__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 30px;
  align-items: start;
}
.presse__text { margin-bottom: 20px; }
.presse__text--dark { color: #000; }
.presse__text--flush { margin-bottom: 0; }
.presse__item a { display: block; line-height: 0; }
.presse__item:nth-child(2) img { width: 180px; }
.presse__item:nth-child(3) img,
.presse__item:nth-child(4) img { width: 100%; }
.presse__item--video { margin-bottom: 40px; }

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Vidéo : miniature cliquable, le lecteur YouTube n'est chargé qu'au clic */
.video-facade {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #000;
  cursor: pointer;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out, ease-out), filter .4s ease;
}
.video-facade:hover img { transform: scale(1.05); filter: brightness(.85); }
.video-facade__title {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 8px 10px 18px;
  overflow: hidden;
  background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,0));
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.video-facade__play {
  position: absolute;
  top: 50%; left: 50%;
  width: 48px;
  height: 34px;
  border-radius: 9px;
  background: rgba(33, 33, 33, .85);
  transform: translate(-50%, -50%);
  transition: background .3s ease, transform .3s var(--ease-out, ease-out);
}
.video-facade__play::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-40%, -50%);
}
.video-facade:hover .video-facade__play,
.video-facade:focus-visible .video-facade__play { background: #f00; transform: translate(-50%, -50%) scale(1.08); }

/* --- Nos réalisations --- */
.separator {
  width: 90%;
  height: 0;
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--c-line);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.portfolio-item {
  position: relative;
  display: block;
  overflow: hidden;
}
.portfolio-item img { display: block; width: 100%; }
.portfolio-item:hover { text-decoration: none; }

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease-in-out;
}
.portfolio-item__overlay span {
  display: block;
  padding: 20px;
  font-size: 16px;
  line-height: 1.65;
  transform: scale(1.3);
  transition: all .15s linear;
}
.portfolio-item:hover .portfolio-item__overlay,
.portfolio-item:focus-visible .portfolio-item__overlay { opacity: 1; visibility: visible; }
.portfolio-item:hover .portfolio-item__overlay span,
.portfolio-item:focus-visible .portfolio-item__overlay span { transform: none; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer {
  background: var(--c-cream);
  color: var(--c-gold);
  font-family: var(--f-footer);
}
.site-footer a { color: var(--c-gold); }

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  padding-top: 45px;
}
.footer-col { padding-bottom: 45px; }
.footer-col p:last-child { margin-bottom: 20px; }

.footer-title {
  margin: 0 0 20px;
  font-family: var(--f-footer);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-gold);
}

.footer-menu li {
  padding: 6px 0;
  border-top: 1px solid var(--c-cream);
}

.footer-recent li {
  display: flex;
  align-items: flex-start;
  padding: 15px 0;
  border-top: 1px solid var(--c-cream);
}
.footer-recent__thumb { flex: 0 0 65px; margin: 0 15px 0 0; line-height: 0; }
.footer-recent__thumb img { width: 65px; }
.footer-recent__title {
  margin-top: 2px;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.65;
}

.footer-bottom {
  background: var(--c-cream-dark);
  color: var(--c-gold);
  font-size: 12px;
  line-height: 1.65;
}
.footer-bottom a { color: var(--c-gold); }
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.copyright { margin: 0; }
.credit a { text-decoration: underline; text-decoration-color: rgba(192, 136, 50, .4); text-underline-offset: 3px; transition: text-decoration-color .3s ease; }
.credit a:hover { text-decoration-color: currentColor; }
.footer-bottom__menu { display: flex; gap: 20px; }

/* --- Retour en haut --- */
.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #f7f7f7;
  color: #999;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--c-green); border-color: transparent; color: #fff; text-decoration: none; }

/* ==========================================================================
   Pages intérieures (en-tête noir, bandeau titre vert, fond dessiné)
   ========================================================================== */
html:has(body.page-inner) { background: #fff; }
.page-inner { padding-top: var(--header-h); background: transparent; }
.page-inner .site-header { background: #000; }

/* Fond fixe du site (équivalent de background-attachment: fixed, compatible mobile) */
.page-inner::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #fff url("../images/background-site.jpg") center center / cover no-repeat;
}

.page-header {
  padding: 10px 0;
  margin-bottom: 40px;
  border-top: 1px solid var(--c-green);
  border-bottom: 1px solid var(--c-green);
  background: var(--c-green);
  text-align: center;
}
.page-header__title {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.4;
}

/* Contenu + colonne latérale (9/12 – 3/12) */
.layout-sidebar {
  display: grid;
  grid-template-columns: calc(75% - 7.5px) calc(25% - 22.5px); /* 728 px + 223 px à 980 px */
  column-gap: 30px;
  align-items: start;
}
.layout-sidebar > * { min-width: 0; }

.entry { color: var(--c-text); }
.entry b { font-weight: inherit; }   /* le thème d'origine n'affiche pas le gras */
.entry ul { list-style: disc; margin: 0 0 20px 30px; }
.entry .is-last { margin-bottom: 30px; }

.entry-title-xl {
  margin: 30px 0;
  color: var(--c-green);
  font-size: 35px;
  line-height: 1.5;
}

.entry-quote {
  margin: 30px 0;
  color: #c49c72;
  font-family: var(--f-title);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

/* Séparateur avec titre (titre à gauche, filet à droite) */
.sep-title {
  display: flex;
  align-items: center;
  margin: 0 0 15px;
}
.sep-title h2,
.sep-title h3,
.sep-title h4 {
  flex: 0 1 auto;
  margin: 0;
  padding-right: .8em;
  font-size: 16px;
  line-height: 1;
}
.sep-title::after {
  content: "";
  flex: 1 1 auto;
  min-width: 10%;
  height: 1px;
  margin-top: 2px;
  border-top: 1px solid #606060;
}
/* Variante « ombre » (colonne latérale) */
.sep-title--shadow { margin: 20px 0 0; padding-bottom: 15px; }
.sep-title--shadow::after {
  align-self: flex-start;
  height: 12px;
  margin: 9px 0 -12px;
  border: 0;
  background: radial-gradient(ellipse 100% 5px at 0 0, rgba(102,102,102,.6), rgba(102,102,102,0) 100%);
}

/* --- Diaporama (Slider Pro) --- */
.slider { position: relative; overflow: hidden; }
.slider__track {
  display: flex;
  transition: transform .6s ease;
  will-change: transform;
}
.slider__slide { flex: 0 0 100%; }
.slider__slide img { display: block; width: 100%; }

.slider__dots {
  position: absolute;
  top: 0; left: 0;
  z-index: 2;
  display: flex;
  padding: 15px;
}
.slider__dot {
  width: 10px;
  height: 10px;
  margin: 2px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all .25s ease-in-out;
}
.slider__dot:hover,
.slider__dot.is-active { background: #fff; border-color: transparent; }

.slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 60px;
  margin-top: -15px;
  padding: 0;
  border: 0;
  background: rgba(0,0,0,.3);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .5s, background .15s ease;
}
.slider__arrow:hover { background: rgba(0,0,0,.65); }
.slider__arrow--prev { left: 0; }
.slider__arrow--next { right: 0; }
.slider:hover .slider__arrow,
.slider__arrow:focus-visible { opacity: 1; }

/* --- Carrousel « Nos projets » (Owl Carousel) --- */
.carousel { position: relative; }
.carousel .slider { overflow: hidden; }
.carousel .slider__track { gap: 15px; transition-duration: .15s; }
.carousel__item img {
  display: block;
  width: 100%;
  aspect-ratio: 229 / 139;
  object-fit: cover;
}
.carousel__details {
  padding: 15px;
  border: 1px solid #eee;
  background: #f7f7f7;
}
.carousel__title {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.65;
}
.carousel__title a { color: var(--c-gold); }
.carousel__dots {
  display: flex;
  justify-content: center;
  padding-bottom: 6px;
}
.carousel__dots .slider__dot {
  width: 10px;
  height: 10px;
  margin: 30px 2.5px 0;
  border: 0;
  background: #ddd;
}
.carousel__dots .slider__dot.is-active { background: var(--c-green); }

.sidebar-cta { display: block; margin-bottom: 30px; line-height: 0; }
.sidebar-cta img { width: 100%; }

.page-header--spaced { margin-bottom: 50px; }
.entry strong { font-weight: 600; }
.text-justify p, .text-justify li { text-align: justify; }
.entry .flush { margin-bottom: 0; }
[id] { scroll-margin-top: 90px; }

/* Lignes 4/12 – 8/12 à l'intérieur de la colonne principale */
.split {
  display: grid;
  grid-template-columns: calc(33.333% - 20px) calc(66.667% - 10px);
  column-gap: 30px;
  align-items: start;
  margin-bottom: 30px;
}
.split--reverse { grid-template-columns: calc(66.667% - 10px) calc(33.333% - 20px); }
.split > * { min-width: 0; }
.split__media img { display: block; width: 100%; }

.sidebar-links { list-style: disc; margin: 0 0 20px 30px; }
.sidebar-links a { color: var(--c-green); }

.carousel__spacer { height: 21px; margin-top: 5px; }
.carousel--static { padding-bottom: 0; }

/* --- Cartes (réalisations, projets liés) --- */
.card__media { display: block; overflow: hidden; line-height: 0; }
.card__media img { display: block; width: 100%; }
.card__details {
  padding: 15px;
  border: 1px solid #eee;
  background: #f7f7f7;
}
.card__title { margin: 0 0 5px; font-size: 20px; line-height: 1.5; }
.card__title a { color: var(--c-gold); }
.card__excerpt { height: 21px; }
.card__more { padding-top: 15px; }

.btn-small {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 3px;
  background: var(--c-green);
  color: #fff;
  font-size: 12px;
  line-height: 1.65;
  transition: all .25s;
}
.btn-small:hover { background: #254f4a; color: #fff; text-decoration: none; }

/* --- Filtres + grille en mosaïque (Réalisations) --- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 20px;
}
.filters button {
  margin: 0 5px 5px 0;
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: transparent;
  color: #888;
  font-size: 12px;
  line-height: 1.65;
  cursor: pointer;
  transition: all .25s ease;
}
.filters button:hover,
.filters button[aria-pressed="true"] { background: #f7f7f7; color: #000; }

.masonry {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  margin: 0 -10px;
}
.masonry__item { padding: 0 10px; margin-bottom: 20px; }
.masonry.is-masonry { position: relative; display: block; }
.masonry.is-masonry .masonry__item {
  position: absolute;
  top: 0; left: 0;
  width: calc(100% / var(--cols, 3));
}
.masonry.is-ready .masonry__item {
  transition: translate .7s var(--ease-out), scale .5s var(--ease-out), opacity .5s ease;
}
.masonry__item.is-hidden { opacity: 0; scale: .85; pointer-events: none; }
.masonry.is-ready { transition: height .7s var(--ease-out); }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: calc(66.667% - 10px) calc(33.333% - 20px);
  column-gap: 30px;
  align-items: start;
}
.icon-sep {
  display: flex;
  align-items: center;
  margin: 0 0 15px;
}
.icon-sep--spaced { margin-top: 30px; }
.icon-sep__icon {
  display: flex;
  flex: 0 0 39px;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--c-green);
  color: #fff;
}
.icon-sep h2 {
  flex: 0 1 auto;
  margin: 0;
  padding: 0 12.8px;
  font-size: 16px;
  line-height: 1;
}
.icon-sep::after {
  content: "";
  flex: 1 1 auto;
  min-width: 10%;
  border-top: 1px solid var(--c-green);
}
.contact-strong {
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}
.contact-strong a { color: #000; }
.contact-block { margin-bottom: 20px; }
.contact-address p { color: #000; }
.page-contact::before { background-image: url("../images/background-contact.jpg"); }

/* --- Email protégé (révélé au clic) --- */
.email-reveal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}
.email-reveal::before {
  content: "";
  width: 13px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M22 0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm0 4-10 6L2 4V2l10 6 10-6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M22 0H2a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm0 4-10 6L2 4V2l10 6 10-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.email-reveal:hover { text-decoration-style: solid; }
.email-link { color: inherit; }
.email-link.is-new { animation: emailIn .6s var(--ease-out, ease-out) both; }
@keyframes emailIn {
  from { opacity: 0; letter-spacing: .08em; }
  to   { opacity: 1; letter-spacing: normal; }
}
button.btn-small { border: 0; font-family: inherit; cursor: pointer; }

/* --- Mentions légales --- */
.legal { padding-bottom: 40px; }
.legal p { color: #000; }
.legal p:last-child { margin-bottom: 0; }
.legal strong { font-weight: 600; }
.legal .sep-title { margin-top: 35px; }
.legal .email-reveal { color: var(--c-green); }
.legal-todo { padding: 0 4px; background: #fff3b0; color: #8a5a00; }
.legal-update { margin-top: 35px; color: #888 !important; font-size: 12px; font-style: italic; }

/* --- Fiche réalisation --- */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 7px 14px;
  border-radius: 3px;
  background: #437069;
  color: #fff;
  font-size: 14px;
  line-height: 1.65;
  transition: all .25s;
}
.btn-back:hover { background: #264f4a; color: #fff; text-decoration: none; }

.slider-wrap { margin-bottom: 50px; }
.slider__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.slider__thumb {
  width: 70px;
  height: 70px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.slider__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .75;
  transition: opacity .3s ease;
}
.slider__thumb:hover img,
.slider__thumb.is-active img { opacity: 1; }

.line-title {
  position: relative;
  overflow: hidden;
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.65;
}
.line-title--sm { font-size: 15px; }
.line-title span { position: relative; display: inline-block; max-width: 90%; }
.line-title span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 9999px;
  margin: -1px 0 0 15px;
  border-bottom: 1px solid #eee;
}

.share { margin-bottom: 40px; }
.share__list { display: flex; flex-wrap: wrap; }
.share__list li { margin: 0 5px 5px 0; }
.share__list a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4.2px 12.6px;
  border-radius: 2px;
  color: #fff;
  font-size: 13px;
  line-height: 23px;
  transition: all .15s ease;
}
.share__list a:hover { text-decoration: none; color: #fff; }
.share__list svg { width: 14px; height: 14px; fill: currentColor; }
.share--x a { background: #00aced; }
.share--x a:hover { background: #0093cb; }
.share--fb a { background: #3b5998; }
.share--fb a:hover { background: #2d4373; }
.share--in a { background: #4875b4; }
.share--in a:hover { background: #3a5f94; }
.share--mail a { background: #999; }
.share--mail a:hover { background: #888; }

.related { margin-bottom: 50px; }
.related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 20px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 4%;
  padding: 30px 0;
  border-top: 1px solid #eee;
}
.post-nav a { color: #888; }
.post-nav a:hover { color: var(--c-green); }
.post-nav__next { margin-left: auto; text-align: right; }

/* ==========================================================================
   Animations (apparition au défilement, survols, transitions de page)
   Les éléments ne sont masqués que si JavaScript est actif (classe .js).
   ========================================================================== */
:root { --ease-out: cubic-bezier(.22, .61, .36, 1); }

/* Transition entre les pages */
body { animation: pageIn .6s ease-out both; }
body.is-leaving { animation: pageOut .35s ease forwards; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; } }

/* Apparition au défilement */
.js [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), scale .9s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.js [data-reveal="fade"] { translate: none; }
.js [data-reveal="zoom"] { translate: none; scale: .97; transition-property: opacity, scale; }
.js [data-reveal].is-revealed { opacity: 1; translate: none; scale: none; }

/* Filets qui se dessinent */
.js .sep-title[data-reveal]::after,
.js .icon-sep[data-reveal]::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--ease-out) calc(var(--rd, 0s) + .25s);
}
.js .sep-title.is-revealed::after,
.js .icon-sep.is-revealed::after { transform: none; }
.js .line-title[data-reveal] span::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s var(--ease-out) .3s;
}
.js .line-title.is-revealed span::after { transform: none; }
.js .separator[data-reveal] { translate: none; scale: 0 1; transition: opacity .6s ease, scale 1.4s var(--ease-out); }
.js .separator.is-revealed { scale: 1 1; }

/* Titre du bandeau vert */
.page-header__title { animation: titleIn 1.2s var(--ease-out) .1s both; }
@keyframes titleIn {
  from { opacity: 0; letter-spacing: .18em; }
  to   { opacity: 1; letter-spacing: 0; }
}

/* Zoom lent sur les images au survol */
.portfolio-item img,
.card__media img,
.carousel__item > a img,
.sidebar-cta img,
.experience__media img {
  transition: transform 1.2s var(--ease-out);
}
.portfolio-item:hover img,
.card__media:hover img,
.carousel__item > a:hover img,
.sidebar-cta:hover img { transform: scale(1.06); }
.carousel__item > a,
.sidebar-cta,
.experience__media { display: block; overflow: hidden; }

/* Boutons : légère élévation */
.btn, .btn-hero, .btn-small, .btn-back {
  transition: background .3s ease, transform .3s var(--ease-out), box-shadow .3s ease;
}
.btn:hover, .btn-hero:hover, .btn-small:hover, .btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(37, 79, 74, .6);
}

/* Soulignement fin du menu au survol */
.main-nav__list a { position: relative; }
.main-nav__list a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 12px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .45s var(--ease-out);
}
.main-nav__list a:hover::after { transform: scaleX(1); transform-origin: left center; }

/* Hero : zoom très lent du fond + parallaxe (translate géré en JS) */
.hero__bg {
  animation: heroFade .8s ease-out both, heroZoom 22s ease-out both;
  will-change: translate, scale;
}
@keyframes heroZoom { from { scale: 1.1; } to { scale: 1; } }

/* Menu mobile : liens en cascade */
.mobile-menu__list li {
  opacity: 0;
  translate: -20px 0;
  transition: opacity .4s ease, translate .5s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu__list li { opacity: 1; translate: none; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(1) { transition-delay: .10s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) { transition-delay: .16s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) { transition-delay: .22s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) { transition-delay: .28s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) { transition-delay: .34s; }
.mobile-menu { transition: transform .45s var(--ease-out), visibility .45s; }

/* ==========================================================================
   Responsive (points de rupture du thème : 959 / 767 / 479)
   ========================================================================== */
@media (max-width: 959px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }

  .site-footer__grid { grid-template-columns: 1fr; }

  .masonry { --cols: 2; }
  .related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  :root { --header-h: 90px; }
  .site-logo img { height: 50px; }

  .experience__grid { grid-template-columns: 1fr; width: 100%; max-width: 100%; }
  .experience__text { padding: 20px 5%; }
  .experience__text h2 { margin-top: 20px; }

  .certifications__grid { column-gap: 15px; }
  .certifications__item { display: flex; justify-content: center; }

  .presse__grid { grid-template-columns: 1fr; }
  .presse__item { margin-bottom: 30px; }
  .presse__item--video { margin-bottom: 30px; }

  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item:last-child { grid-column: 1 / -1; }
  .portfolio-item:last-child img { aspect-ratio: 229 / 139; object-fit: cover; }

  .footer-bottom__inner { flex-direction: column; text-align: center; }
  .credit { display: block; margin-top: 4px; }
  .credit__sep { display: none; }
  .footer-bottom__menu { gap: 15px; margin-top: 10px; }
  .footer-bottom__menu a { text-decoration: underline; }

  .scroll-top { right: 20px; bottom: 20px; }

  .page-header { margin-bottom: 30px; }
  .page-header__title { font-size: 26px; }
  .layout-sidebar { grid-template-columns: 1fr; }
  .layout-sidebar aside { max-width: 320px; margin: 10px auto 40px; }
  .entry-title-xl { font-size: 26px; }
  .entry-quote { font-size: 26px; }
  .slider__arrow { opacity: 1; }

  .page-header--spaced { margin-bottom: 30px; }
  .split, .split--reverse, .contact-grid { grid-template-columns: 1fr; row-gap: 20px; }
  .split--reverse .split__aside { order: 2; }
  .split .carousel, .split__media { max-width: 320px; }
  .card__title { font-size: 18px; }
  .post-nav { flex-direction: column; gap: 10px; }
  .post-nav__next { margin-left: 0; text-align: left; }
}

@media (max-width: 479px) {
  .masonry { --cols: 1; }
  .related__grid { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item:last-child { grid-column: auto; }
}

/* Écrans tactiles : le titre des réalisations n'est pas lisible au survol */
@media (hover: none) {
  .portfolio-item__overlay { background: rgba(0,0,0,.45); opacity: 1; visibility: visible; }
  .portfolio-item__overlay span { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
