/* 1. Variables : change ces couleurs pour personnaliser tout le site. */
:root {
  --fond: #f3f6fa;       /* Fond général : bleu très pâle */
  --surface: #ffffff;   /* Cartes blanches */
  --texte: #172b45;     /* Texte : bleu marine */
  --accent: #245a91;    /* Liens et petits titres */
  --bordure: #d5dfeb;   /* Séparations discrètes */

  --navigation: rgba(12, 27, 48, 0.92);
  --bouton: #205b99;
  --bouton-survol: #174574;
}

/* 2. Réglages de base. */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.7;
  color: var(--texte);
  background: var(--fond);
}

/* Une largeur maximale garde les textes lisibles sur un grand écran. */
.conteneur {
  width: 90%;
  max-width: 1080px;
  margin-inline: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* Rend la navigation au clavier bien visible. */
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  max-width: 750px;
  margin: 16px 0;
}

h2 {
  font-size: 2rem;
}

/* Règle commune aux paragraphes actuels et futurs, sur tous les écrans. */
p {
  max-width: 70ch;
  text-align: justify;
  text-align-last: left;
  -webkit-hyphens: none;
  hyphens: none;
}

/* 3. En-tête : Flexbox place la signature et les liens côte à côte. */
.entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-block: 22px;
  border-bottom: 1px solid var(--bordure);
}

.signature {
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* 4. Sections et bouton (c'est un lien stylisé, sans JavaScript). */
section {
  padding-block: 0px;
  scroll-margin-top: 24px;
}

.accueil {
  padding-block: 80px;
}

.surtitre {
  color: var(--accent);
  font-weight: bold;
}

.bouton {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.bouton:hover {
  text-decoration: underline;
}

/* 5. Cartes : trois colonnes sur les grands écrans. */
.grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 10px;
  padding: 24px;
}

.carte h3 {
  margin-top: 0;
}

.pied-de-page {
  border-top: 1px solid var(--bordure);
  padding-block: 24px;
  font-size: 0.9rem;
}

/* Lien réservé au clavier : visible lorsqu'il reçoit le focus. */
.lien-evitement {
  position: absolute;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  background: white;
  padding: 10px;
}

.lien-evitement:focus {
  transform: translateY(0);
}

/* 6. Sur un petit écran, les cartes passent en une seule colonne. */
@media (max-width: 700px) {
  .grille {
    grid-template-columns: 1fr;
  }

  .accueil {
    padding-block: 48px;
  }
}
/* Barre supérieure : reste en haut pendant le défilement. */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;
  padding: 20px 5%;
  background: rgba(15, 26, 48, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.signature {
  color: white;
}

/* Espacement des liens du menu. */
.entete nav {
  align-items: center;
  gap: 48px;
}

.entete nav a {
  color: white;
  text-decoration: none;
}

.entete nav a:hover {
  text-decoration: underline;
}

/* Contact se distingue des autres liens. */
.entete .contact-nav {
  padding: 10px 22px;
  background: #087bea;
  border-radius: 3px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.entete .contact-nav:hover {
  background: #0668c8;
  text-decoration: none;
}

/* Focus visible pour la navigation au clavier. */
.entete a:focus-visible {
  outline-color: white;
}

/* Évite que le menu masque le titre après un clic. */
section {
  scroll-margin-top: 110px;
}

/* Menu plus compact sur téléphone. */
@media (max-width: 700px) {
  .entete {
    padding: 14px 5%;
    gap: 12px;
  }

  .entete nav {
    gap: 12px 18px;
    font-size: 0.9rem;
  }

  .entete .contact-nav {
    padding: 8px 14px;
  }

  section {
    scroll-margin-top: 180px;
  }
}
/* Typographie */
h1, h2, h3,
.signature {
  font-weight: 600;
  letter-spacing: -0.025em;
}

.entete nav a {
  font-weight: 500;
}

.entete .contact-nav {
  font-weight: 600;
}

/* Liens du menu légèrement plus grands. */
.entete nav a {
  font-size: 1.15rem;
}

/* Nom plus grand et lettres légèrement plus espacées. */
.entete .signature {
  font-size: 1.5rem;
  letter-spacing: 0.025em;
}

/* Conserver un menu compact sur téléphone. */
@media (max-width: 700px) {
  .entete nav a {
    font-size: 0.95rem;
  }

  .entete .signature {
    font-size: 1.25rem;
  }
}

/* Palette commune à la navigation et aux boutons. */
.entete {
  background: var(--navigation);
}

.bouton,
.entete .contact-nav {
  background: var(--bouton);
  color: white;
}

.bouton:hover,
.entete .contact-nav:hover {
  background: var(--bouton-survol);
}

/* Focus clair sur la barre foncée. */
.entete a:focus-visible {
  outline-color: #a8d1ff;
}

/* 7. Services : résultats en premier, méthodes en second. */
.services-intro {
  margin-bottom: 28px;
}

#services .grille {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.carte-service {
  border-top: 4px solid var(--accent);
  box-shadow: 0 8px 24px rgba(12, 27, 48, 0.04);
}

#services .service-repere {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.carte-service h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.carte-service > p:last-child,
.carte-methode > p:last-child {
  margin-bottom: 0;
}

.services-transition {
  text-align: center;
  padding-bottom: 26px;
}

.services-fleches {
  padding-block: 20px 18px;
}

/* Flèches décoratives dessinées en CSS, sans image ni JavaScript. */
.service-fleche {
  position: relative;
  display: block;
  width: 2px;
  height: 30px;
  margin-inline: auto;
  background: var(--accent);
}

.service-fleche::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
}

.services-transition h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

/* Exception à la justification : sous-titre centré sous les flèches. */
.services-transition p {
  margin: 8px auto 0;
  text-align: center;
  text-align-last: center;
}

.carte-methode {
  background: #e9eff7;
}

.carte-methode h4 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.025em;
}

@media (max-width: 700px) {
  /* Les trois résultats restent avant les trois méthodes sur téléphone.
     Les numéros permettent de retrouver leur correspondance. */
  #services .grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-fleches .service-fleche:not(:first-child) {
    display: none;
  }

  .services-fleches {
    padding-top: 28px;
  }
}

/* 8. Nom et positionnement dans la barre de navigation. */
.identite { display: flex; align-items: center; gap: 32px; }
.signature { white-space: nowrap; }
.signature-description {
  max-width: 400px;
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,.25);
  color: #d5dfeb;
  font-size: .9rem;
  line-height: 1.4;
}
@media (max-width: 1100px) {
  .entete { gap: 16px; }
  .entete nav { gap: 20px; }
  section { scroll-margin-top: 180px; }
}
/* 9. Accueil : texte à gauche et portrait complet à droite. */
.accueil {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: 56px 72px;
}
.accueil-texte { min-width: 0; }
.accueil h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.1;
  text-wrap: balance;
}
.accueil .surtitre { font-size: .9rem; }
.accueil-portrait {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bordure);
  box-shadow: 0 18px 45px rgba(12,27,48,.14);
}
.accueil-portrait img { width: 100%; height: auto; }
@media (max-width: 800px) {
  .accueil { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px 56px; }
  .accueil h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); }
  .accueil-portrait { justify-self: center; }
}
@media (max-width: 700px) {
  .identite { flex-direction: column; align-items: flex-start; gap: 4px; }
  .signature-description { max-width: none; padding-left: 0; border-left: 0; font-size: .8rem; }
  .entete nav { gap: 12px 18px; }
  section { scroll-margin-top: 220px; }
}
/* Aligner le haut du texte avec le haut de la photo. */
.accueil {
  align-items: start;
}

/* Retirer la marge au-dessus de la première ligne. */
.accueil .surtitre {
  margin-top: 0;
}

/* Rapprocher les services de l’accueil. */
.accueil {
  padding-bottom: 48px;
}

#services {
  padding-top: 24px;
}

#services h2 {
  margin-top: 0;
}

/* Bande pleine largeur pour les services. */
#services {
  background: #e4ecf5;
  padding-block: 48px;
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
}

#services h2 {
  margin-top: 0;
}

/* Distinguer les méthodes du fond de la bande. */
#services .carte-methode {
  background: #f3f6fa;
}

@media (max-width: 700px) {
  #services {
    padding-block: 32px;
  }
}

/* Mots clés : gras et surlignage bleu discret.
   Dans le HTML : <strong class="mot-cle">votre texte</strong> */
.mot-cle {
  font-weight: 700;
  color: var(--texte);
  background-color: #e4ecf5;
  padding: 0.05em 0.18em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}


/* Accueil : parcours compact, puis proposition de valeur. */
.accueil-etudes {
  list-style: none;
  margin: 22px 0 24px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
  line-height: 1.4;
}
.accueil-etudes li + li { margin-top: 8px; }
.accueil-etudes strong { font-weight: 600; }
.accueil-etudes span {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  color: #40536b;
}
.accueil-proposition {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: justify;
  text-align-last: left;
}
.accueil-proposition strong { font-weight: 600; }
.accueil-texte > .bouton { margin-top: 24px; }

.accueil-proposition {
  -webkit-hyphens: none;
  hyphens: none;
}

.accueil-objectif {
  margin-top: 10px;
}
.services-intro {
  max-width: none;
}

/* À propos : trois volets, photos complètes et textes lisibles. */
.apropos-intro { margin-bottom: 36px; }
.apropos-volet { padding-block: 36px; border-top: 1px solid var(--bordure); }
.apropos-volet h3 { margin: 0 0 20px; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.apropos-repere { margin: 0 0 8px; color: var(--accent); font-size: .85rem; font-weight: 600; }
.apropos-duo { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: center; }
.apropos-texte p:not(.apropos-repere), .apropos-colonnes p { line-height: 1.75; }
.apropos-texte > p:last-child { margin-bottom: 0; }
.apropos-photo { min-width: 0; margin: 0; }
.apropos-photo img { width: 100%; height: auto; border-radius: 12px; }
.apropos-photo figcaption { margin-top: 9px; color: #40536b; font-size: .8rem; line-height: 1.5; }
.apropos-groupe { max-width: 850px; margin: 32px auto 0; }
.apropos-colonnes { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; margin-bottom: 24px; }
.apropos-colonnes p { margin-top: 0; margin-bottom: 0; }
.apropos-duo-personnel { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
.apropos-sports { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: start; }
@media (max-width: 850px) {
  .apropos-duo, .apropos-duo-personnel, .apropos-colonnes { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .apropos-volet { padding-block: 28px; }
  .apropos-groupe { margin-top: 24px; }
}
@media (max-width: 480px) {
  .apropos-sports { grid-template-columns: minmax(0,1fr); gap: 24px; }
}


/* Contact : invitation et coordonnées directement accessibles. */
.contact-bloc {
  padding: clamp(24px, 5vw, 56px);
  background: #e4ecf5;
  border: 1px solid var(--bordure);
  border-radius: 16px;
}
.contact-bloc h2 { margin-top: 0; }
.contact-intro { max-width: 70ch; margin-bottom: 8px; }
.contact-coordonnees {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  margin-top: 28px;
  font-style: normal;
}
.contact-coordonnees > div { min-width: 0; }
.contact-coordonnees span {
  display: block;
  margin-bottom: 4px;
  color: #40536b;
  font-size: .85rem;
}
.contact-coordonnees a { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .contact-coordonnees { flex-direction: column; gap: 16px; }
}


/* Réalisations : projet vedette puis deux cartes, sans filtre pour le moment. */
.projets-intro {
  margin-bottom: 28px;
  max-width: none;
}
.projet-carte { background: var(--surface); border: 1px solid var(--bordure); border-radius: 14px; overflow: hidden; min-width: 0; }
.projet-vedette { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
.projet-contenu { padding: clamp(24px,3vw,40px); }
.projet-contenu h3 { font-size: 1.7rem; margin: 0 0 8px; }
.projet-contenu h4 { font-size: 1.05rem; font-weight: 500; margin: 0 0 18px; }
.projet-repere { display: block; color: var(--accent); font-size: .8rem; font-weight: 600; margin-bottom: 14px; }
.projet-visuel { min-width: 0; min-height: 280px; padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.projet-visuel-solene { background: #dfe9f3; color: var(--texte); }
.projet-visuel-nom { font-size: clamp(2rem,4vw,3.4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.projet-visuel small { font-size: .8rem; }
.projet-visuel-solene small { margin-top: 24px; color: #40536b; }
.projet-visuel-web { background: #0c1b30; color: white; }
.projet-visuel-signature { font-size: .85rem; color: #b9d3ed; }
.projet-visuel-titre { font-size: clamp(1.7rem,3vw,2.6rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.projet-visuel-ligne { display: block; height: 3px; width: 48px; background: #89b6e3; }
.projet-visuel-bois { background: #edf2f7; padding: 0; }
.projet-visuel-bois img { width: 100%; height: 300px; object-fit: contain; }
.projets-secondaires { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin-top: 28px; }
.projets-secondaires .projet-carte { display: flex; flex-direction: column; }
.projets-secondaires .projet-visuel { min-height: 300px; }
.projets-secondaires .projet-contenu { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.projet-etiquettes { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 20px 0; gap: 8px; }
.projet-etiquettes li { font-size: .78rem; padding: 4px 10px; background: #edf2f7; border-radius: 5px; }
.projet-lien { font-weight: 600; margin-top: auto; }
.projet-detail { padding-block: 40px 64px; }
.projet-retour { display: inline-block; margin-bottom: 28px; }
.projet-detail h1 { font-size: clamp(2.2rem,5vw,3.6rem); }
.projet-detail section { padding-block: 28px; }
.projet-detail h2 { font-size: 1.6rem; }
.projet-detail h3 { font-size: 1.2rem; }
.projet-detail .projet-visuel { margin-block: 24px; border-radius: 14px; }
.projet-detail-grille { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; }
.projet-detail-grille p { margin-bottom: 0; }
.projet-galerie { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.projet-galerie figure { margin: 0; min-width: 0; }
.projet-galerie figure:first-child { grid-column: 1 / -1; }
.projet-galerie img { width: 100%; max-height: 550px; object-fit: contain; background: #edf2f7; border-radius: 12px; }
.projet-galerie figcaption { font-size: .9rem; margin-top: 8px; }
.projet-detail .contact-bloc { margin-top: 32px; }
@media (max-width: 760px) {
  .projet-vedette, .projets-secondaires, .projet-detail-grille, .projet-galerie { grid-template-columns: minmax(0,1fr); }
  .projet-visuel { padding: 28px; }
  .projet-visuel-bois { padding: 0; }
  .projet-galerie figure:first-child { grid-column: auto; }
}


/* Demande de soumission : formulaire accessible et adapté au téléphone. */
.soumission-page { max-width: 900px; padding-block: 40px 64px; }
.soumission-page h1 { font-size: clamp(2.2rem,5vw,3.6rem); }
.soumission-cadre { margin-block: 32px; padding: clamp(20px,4vw,40px); background: var(--surface); border: 1px solid var(--bordure); border-radius: 14px; }
.soumission-cadre h2 { margin-top: 0; }
.soumission-cadre fieldset { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.soumission-cadre legend { font-weight: 600; margin-bottom: 18px; }
.formulaire-grille { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
.champ { margin-bottom: 22px; min-width: 0; }
.soumission-cadre label { display: block; font-weight: 600; margin-bottom: 7px; }
.soumission-cadre input, .soumission-cadre textarea { width: 100%; padding: 12px; border: 1px solid #8b9db1; border-radius: 6px; background: white; color: var(--texte); font: inherit; }
.soumission-cadre textarea { resize: vertical; }
.soumission-cadre small { display: block; color: #40536b; line-height: 1.5; margin-top: 6px; }
.soumission-cadre button { border: 0; font: inherit; cursor: pointer; margin-top: 0; }
.soumission-cadre input:focus-visible, .soumission-cadre textarea:focus-visible, .soumission-cadre button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#soumission-statut:empty { display: none; }
#soumission-statut { margin-block: 24px; }
@media (max-width: 600px) { .formulaire-grille { grid-template-columns: minmax(0,1fr); } }


/* Solène : résultat sur l’accueil, puis identité et fabrication en détail. */
.solene-couverture { background: #e0e2df; display: flex; align-items: center; justify-content: center; }
.solene-couverture img { width: 100%; height: auto; max-height: 560px; object-fit: contain; }
.solene-resultat { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 36px; align-items: center; margin-block: 32px; }
.solene-resultat h2 { margin-top: 0; }
.solene-photo { margin: 0; min-width: 0; }
.solene-photo a { display: block; border-radius: 10px; }
.solene-photo img { width: 100%; height: auto; border-radius: 10px; }
.solene-photo figcaption { margin-top: 10px; color: #40536b; font-size: .85rem; line-height: 1.5; }
.solene-logo { margin-top: 24px; }
.solene-logo a { background: #172b45; }
.solene-logo img { max-height: 330px; object-fit: contain; }
.solene-etapes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px; margin-top: 24px; align-items: start; }
.solene-etapes img { max-height: 540px; object-fit: contain; background: #edf2f7; }
@media (max-width: 760px) {
 .solene-resultat, .solene-etapes { grid-template-columns: minmax(0,1fr); gap: 24px; }
 .solene-couverture img { max-height: 460px; }
}


/* Solène : trois histoires distinctes et un sommaire pour les rejoindre. */
.solene-couverture-logo { background: #ffffff; }
.solene-couverture-logo img { max-height: 520px; object-fit: contain; }
.solene-sommaire { margin-block: 24px 36px; gap: 12px 24px; }
.solene-sommaire a { font-weight: 600; }
.solene-histoire { border-top: 1px solid var(--bordure); }
.solene-histoire > h2 { margin-top: 0; }
.solene-etapes-enseigne > figure:last-child { grid-column: 1 / -1; width: 100%; max-width: 620px; justify-self: center; }
.solene-video-grille { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); gap: 32px; align-items: start; margin-top: 28px; }
.solene-video-grille img { max-height: 600px; object-fit: contain; background: #edf2f7; }
.solene-objet-grille { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 36px; align-items: center; }
.solene-objet-grille img { max-height: 560px; object-fit: contain; background: #edf2f7; }
@media (max-width: 760px) {
  .solene-video-grille, .solene-objet-grille { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .solene-sommaire { flex-direction: column; align-items: flex-start; }
  .solene-etapes-enseigne > figure:last-child { grid-column: auto; }
}

/* Deux exemples complémentaires d’objets promotionnels. */
.solene-objets-cartes { align-items: start; }
.solene-objets-cartes article { min-width: 0; }
.solene-objets-cartes h3 { margin-top: 0; }
.solene-objets-cartes .solene-photo { margin-top: 20px; }

/* Collections en bois : conserver les créations entières. */
.projet-visuel-bois { background: #fff; }
.bois-sommaire { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-block: 28px 36px; }
.bois-sommaire a { font-weight: 600; }
.bois-collection { border-top: 1px solid var(--bordure); scroll-margin-top: 100px; }
.bois-collection > h2 { margin-top: 0; }
.bois-galerie { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px; margin-top: 28px; }
.bois-galerie figure { margin: 0; min-width: 0; }
.bois-galerie a { display: block; background: #fff; border: 1px solid var(--bordure); border-radius: 12px; overflow: hidden; }
.bois-galerie a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.bois-galerie img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.bois-galerie figcaption { margin-top: 10px; color: #40536b; font-size: .9rem; line-height: 1.5; }
@media (max-width: 760px) { .bois-galerie { grid-template-columns: minmax(0,1fr); gap: 24px; } .bois-sommaire { flex-direction: column; align-items: flex-start; } }

/* Web, outils et automatisation. */
.numerique-page h1 { max-width: 20ch; }
.numerique-sommaire { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-block: 28px 36px; }
.numerique-sommaire a { font-weight: 600; }
.numerique-section { border-top: 1px solid var(--bordure); scroll-margin-top: 110px; }
.numerique-contexte { display: inline-block; color: #40536b; font-size: .85rem; margin-bottom: 8px; }
.numerique-section > h2 { margin-top: 0; }
.numerique-section > .projet-lien { display: inline-block; margin-top: 28px; }
.numerique-figure { margin: 24px 0; min-width: 0; }
.numerique-figure a { display: block; padding: clamp(8px,2vw,24px); background: white; border: 1px solid var(--bordure); border-radius: 12px; }
.numerique-figure img { display: block; width: 100%; height: auto; object-fit: contain; }
.numerique-figure figcaption { margin-top: 10px; color: #40536b; font-size: .9rem; line-height: 1.5; }
.numerique-figure a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.numerique-carte { max-width: 820px; margin-inline: auto; }
.numerique-etapes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; list-style: none; padding: 0; counter-reset: etape; margin-block: 24px 36px; }
.numerique-etapes li { counter-increment: etape; padding: 20px; background: var(--surface); border: 1px solid var(--bordure); border-radius: 12px; }
.numerique-etapes li::before { content: '0' counter(etape); display: block; font-weight: 600; color: #40536b; margin-bottom: 10px; }
.numerique-etapes strong, .numerique-etapes span { display: block; }
.numerique-etapes span { margin-top: 8px; font-size: .9rem; line-height: 1.6; }
.numerique-complement { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; align-items: center; }
@media (max-width: 900px) { .numerique-etapes { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .numerique-complement { grid-template-columns: minmax(0,1fr); gap: 12px; } .numerique-sommaire { flex-direction: column; align-items: flex-start; } }
@media (max-width: 440px) { .numerique-etapes { grid-template-columns: minmax(0,1fr); } }

/* Garder le cadre actuel et masquer ce qui dépasse. */
.bois-galerie a {
  overflow: hidden;
}

/* Zoomer uniquement sur les deux tables de chevet. */
.bois-galerie img[src$="TableChevet1FondBlanc.png"],
.bois-galerie img[src$="TableChevet2FondBlanc.png"] {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  transform: scale(1.5);
  transform-origin: center;
}

.bois-galerie img[src$="TableChevet1FondBlanc.png"] {
  transform: translateY(-10%) scale(1.5);
}
/* Vidéo de fond de l’accueil. Augmenter cette valeur rend le fond plus discret. */
.accueil-video-section {
  --voile-accueil: 0.84;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
}
.accueil-video-fond { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: #fff url("images/accueil-video-poster.jpg") center / cover no-repeat; }
.accueil-video-fond video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.accueil-video-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,var(--voile-accueil)); pointer-events: none; }
.accueil-video-section > .accueil { position: relative; padding-bottom: 84px; }
.accueil-video-commandes { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; justify-content: flex-end; pointer-events: none; }
#accueil-video-bouton { pointer-events: auto; padding: 8px 14px; border: 1px solid var(--bordure); border-radius: 6px; color: var(--texte); background: rgba(255,255,255,.95); font: inherit; font-size: .8rem; cursor: pointer; }
#accueil-video-bouton:hover { background: #fff; border-color: var(--accent); }
#accueil-video-bouton:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#accueil-video-bouton[hidden] { display: none; }
@media (max-width: 800px) { .accueil-video-section { --voile-accueil: 0.9; } }

/* Vidéo de course dans le volet personnel À propos. */
#personnel-video {
  padding: clamp(20px, 4vw, 40px);
  padding-bottom: 76px;
  border-radius: 16px;
  --voile-accueil: 0.84;
}
@media (max-width: 800px) {
  #personnel-video { --voile-accueil: 0.90; }
}

/* Une seule photo, alignée à droite du volet personnel. */
.apropos-sports {
  display: flex;
  justify-content: flex-end;
}

.apropos-sports > figure {
  width: 100%;
  max-width: 280px;
}

html {
  scroll-behavior: smooth;
}

/* Respecter les personnes qui préfèrent moins d’animations. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Interactions discrètes : liens et cartes de réalisations. */
.bouton, .contact-nav, .projet-lien { transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease; }
.projet-carte { transition: transform 220ms ease, box-shadow 220ms ease; }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover, .contact-nav:hover { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(12,27,48,.12); }
  .projet-carte:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(12,27,48,.10); }
}
.projet-carte:focus-within { box-shadow: 0 0 0 2px var(--accent); }
@keyframes apparition-carte { from { opacity: .25; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.carte-revelee { animation: apparition-carte 450ms ease-out; }

/* Visionneuse native : images entières, clavier et petits écrans. */
dialog.visionneuse { width: 100vw; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: clamp(10px,2vw,28px); border: 0; background: transparent; color: #fff; }
dialog.visionneuse::backdrop { background: rgba(9,18,31,.94); }
dialog.visionneuse[open] { display: grid; place-items: center; }
.visionneuse-contenu { width: min(1120px,100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.visionneuse-barre, .visionneuse-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.visionneuse button { min-height: 44px; padding: 9px 14px; border: 1px solid #8190a5; border-radius: 6px; background: #172b45; color: #fff; font: inherit; cursor: pointer; }
.visionneuse button:hover { background: #294667; }
.visionneuse :focus-visible { outline: 3px solid #a8d1ff; outline-offset: 3px; }
.visionneuse a { color: #dcecff; font-size: .9rem; }
.visionneuse-figure { margin: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.visionneuse-cadre { min-height: 0; display: flex; justify-content: center; }
.visionneuse-image { width: auto; height: auto; max-width: 100%; max-height: 68vh; max-height: 68dvh; object-fit: contain; border-radius: 4px; }
.visionneuse-legende { text-align: center; font-size: .9rem; line-height: 1.5; max-height: 12vh; overflow: auto; }
.visionneuse-compteur { font-size: .85rem; }
.visionneuse-erreur { margin: 0; font-size: .9rem; text-align: center; }
.visionneuse [hidden] { display: none !important; }
@media (max-width: 600px) {
  .visionneuse-navigation { flex-wrap: wrap; }
  .visionneuse-original { order: 3; width: 100%; text-align: center; }
  .visionneuse-image { max-height: 58vh; max-height: 58dvh; }
  .visionneuse button { font-size: .85rem; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bouton, .contact-nav, .projet-lien, .projet-carte { transition: none; }
  .bouton:hover, .contact-nav:hover, .projet-carte:hover { transform: none; }
  .carte-revelee { animation: none; }
}

/* Mode compact pour les fenêtres de portable.
   Le grand écran (> 1600 px CSS) et le téléphone gardent leurs réglages. */
@media (min-width: 1101px) and (max-width: 1600px) {
  html { font-size: 90%; }
  .conteneur { max-width: 920px; }

  .entete { padding-block: 14px; gap: 16px; }
  .identite { gap: 20px; }
  .signature-description { padding-left: 18px; max-width: 270px; }
  .entete .signature { font-size: 1.4rem; }
  .entete nav { gap: clamp(16px, 2vw, 30px); }
  .entete nav a { font-size: 1.05rem; }
  .entete .contact-nav { padding: 9px 17px; }

  .accueil { gap: 48px; padding-block: 34px 38px; }
  .accueil h1 { font-size: 3.35rem; margin-block: 12px; }
  .accueil-portrait { max-width: 368px; }
  .accueil-etudes { margin-block: 17px 18px; padding-left: 13px; }
  .accueil-etudes li + li { margin-top: 6px; }
  .accueil-proposition { font-size: 1rem; line-height: 1.65; }
  .accueil-objectif { margin-top: 10px; }
  .accueil-texte > .bouton { margin-top: 18px; }
  .bouton { padding: 10px 18px; }

  #services { padding-block: 36px; }
  .grille { gap: 16px; }
  .carte { padding: 20px; }
  .projet-contenu { padding: 26px; }
  .projet-visuel { min-height: 240px; padding: 28px; }
  .projet-visuel-bois { padding: 0; }
  .projets-secondaires .projet-visuel { min-height: 240px; }
  .projet-visuel-bois img { height: 240px; }
  .apropos-duo, .apropos-colonnes { gap: 28px; }
  .projet-detail h1 { font-size: 3rem; }
  .projet-detail section { padding-block: 22px; }
  .soumission-page { max-width: 820px; padding-block: 30px 48px; }
  .numerique-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Espace entre Bouger et créer et le bloc de contact. */
#contact { margin-top: 40px; }

@media (max-width: 700px) {
  /* En-tête sur deux rangées */
  .entete {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 12px;
  }

  /* Première rangée : nom et description */
  .entete .identite {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .entete .signature {
    font-size: clamp(13px, 3.5vw, 17px);
    letter-spacing: 0;
    white-space: nowrap;
  }

  .entete .signature-description {
    font-size: clamp(9px, 2.5vw, 12px);
    max-width: none;
    padding: 0;
    border: 0;
    white-space: nowrap;
  }

  /* Deuxième rangée : tous les liens */
  .entete nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
  }

  .entete nav a {
    flex-shrink: 0;
    font-size: clamp(11px, 3.1vw, 14px);
    white-space: nowrap;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .entete .contact-nav {
    padding: 6px 8px;
    letter-spacing: 0;
  }

  /* Adapter le défilement à la nouvelle hauteur */
  section {
    scroll-margin-top: 110px;
  }
}
/* Accueil mobile : résumés et détails accessibles au toucher.
   Les détails sont ouverts par défaut si JavaScript est indisponible. */
.page-accueil .accueil-mobile { display: none; }
.page-accueil .detail-parcours,
.page-accueil .detail-parcours > .mobile-detail-contenu { display: contents; }
.page-accueil .detail-parcours > summary { display: none; }
@media (max-width: 700px) {
  .page-accueil .accueil-desktop { display: none; }
  .page-accueil .accueil-mobile { display: block; }
  .page-accueil main p { text-align: left; text-align-last: auto; line-height: 1.65; }
  .page-accueil .accueil { padding-block: 28px 36px; gap: 24px; }
  .page-accueil .accueil-texte > .accueil-mobile { font-size: 1.05rem; }
  .page-accueil .accueil-portrait { max-width: 300px; }
  .page-accueil .carte, .page-accueil .projet-contenu,
  .page-accueil .contact-bloc { padding: 20px; }
  .page-accueil .projet-contenu h4,
  .page-accueil .projet-etiquettes { display: none; }
  .page-accueil .projet-lien { display: inline-flex; align-items: center; min-height: 44px; }
  .page-accueil .bouton { white-space: normal; text-align: center; }
  .page-accueil .detail-parcours { display: block; }
  .page-accueil .mobile-detail { margin-top: 12px; }
  .page-accueil .mobile-detail > summary {
    display: list-item; padding: 12px 0; min-height: 44px;
    color: var(--accent); font-weight: 600; cursor: pointer;
    border-top: 1px solid var(--bordure); line-height: 1.4;
  }
  .page-accueil .mobile-detail > summary:focus-visible {
    outline: 3px solid var(--accent); outline-offset: 3px;
  }
  .page-accueil .mobile-detail > .mobile-detail-contenu { display: block; }
  .page-accueil .mobile-detail:not([open]) > .mobile-detail-contenu { display: none; }
  .page-accueil .mobile-detail-contenu > :last-child { margin-bottom: 0; }
}
@media print {
  .page-accueil .mobile-detail > summary { display: none; }
  .page-accueil .detail-parcours > .mobile-detail-contenu { display: block !important; }
}

/* Sélecteur de langue commun aux pages françaises et anglaises. */
.entete nav { gap: clamp(10px, 2.3vw, 36px); }
.langue-menu { position: relative; flex: 0 0 auto; color: white; }
.langue-menu > summary {
  display: flex; align-items: center; gap: 5px; min-height: 44px;
  padding: 4px 6px; cursor: pointer; font: inherit; font-weight: 600;
  list-style: none;
}
.langue-menu > summary::-webkit-details-marker { display: none; }
.langue-menu > summary::after { content: '▾'; font-size: .75em; }
.langue-menu[open] > summary::after { content: '▴'; }
.langue-menu > summary:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.langue-options {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 140px;
  padding: 6px; background: #1e293b; border: 1px solid #64748b;
  border-radius: 8px; box-shadow: 0 8px 24px #0003; z-index: 110;
}
.langue-menu:not([open]) > .langue-options { display: none; }
.entete nav .langue-options a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px;
  font-size: 1rem; white-space: nowrap; border-radius: 4px;
}
.entete nav .langue-options a:hover,
.entete nav .langue-options a[aria-current] { background: #334155; }
@media (max-width: 700px) {
  .entete nav { gap: 3px; overflow: visible; }
  .entete nav > a { font-size: clamp(10px, 2.75vw, 13px); }
  .entete .contact-nav { padding-inline: 6px; }
  .langue-menu > summary { font-size: 12px; padding-inline: 3px; }
  .entete .identite { min-width: 0; }
  /* À fort grossissement, autoriser le texte à revenir à la ligne. */
  .entete .signature-description { white-space: normal; text-align: right; }
}
@media (max-width: 340px) {
  .entete { padding-inline: 8px; }
  .entete nav { gap: 2px; }
  .entete nav > a { font-size: 10px; }
  .entete .contact-nav { padding-inline: 4px; }
}
