/* =========================================================
   MOJE CONSTRUCTION - STYLE DU SITE
   Version commentée en français pour faciliter les modifications.
   ========================================================= */
:root {
  --navy:#26384a;
  --navy-dark:#1c2b3a;
  --orange:#ff6b00;
  --orange-light:#ff9418;
  --background-light:#f5f8fa;
  --background-blue:#dce7ef;
  --text:#17212b;
  --text-light:#66727d;
  --white:#fff;
  --border:#dfe6eb;
  --shadow:0 14px 40px rgba(27,45,62,.10);
  --radius:14px
}
/* box-sizing:border-box signifie que les marges internes (padding)
   restent incluses dans la largeur annoncée d'un élément. */
* {
  box-sizing:border-box
}
/* Permet un défilement doux quand on clique sur un lien #section. */
html {
  scroll-behavior:smooth
}
/* BODY = toute la page visible par le visiteur. */
body {
  margin:0;
  font-family:"Montserrat",Arial,sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.65
}
a {
  color:inherit;
  text-decoration:none
}
img {
  max-width:100%;
  display:block
}
.container {
  width:min(1160px,92%);
  margin:auto
}
.section {
  padding:90px 0
}
.section-heading {
  max-width:720px;
  margin:0 auto 42px;
  text-align:center
}
.section-heading.left {
  text-align:left;
  margin-left:0
}
.section-heading h2 {
  margin:0 0 12px;
  font-size:34px;
  line-height:1.2
}
.section-heading p {
  margin:0;
  color:var(--text-light)
}
.eyebrow {
  display:inline-block;
  margin-bottom:12px;
  color:var(--orange);
  font-size:12px;
  font-weight:800;
  letter-spacing:1.7px
}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 23px;
  border:1px solid transparent;
  border-radius:8px;
  font-family:"Montserrat",Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease
}
.btn-primary {
  color:#fff;
  background:var(--orange);
  box-shadow:0 9px 22px rgba(255,107,0,.24)
}
.btn-primary:hover {
  background:#e95d00;
  transform:translateY(-1px)
}
.btn-light {
  color:var(--navy);
  background:#fff
}
.btn-light:hover {
  background:#f2f4f5
}
.full {
  width:100%
}
/* =========================================================
   EN-TÊTE ET NAVIGATION
   ========================================================= */
.site-header {
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(12px)
}
.nav-wrap {
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px
}
.brand {
  display:flex;
  align-items:center
}
.brand img {
  width:150px;
  height:64px;
  object-fit:contain
}
.main-nav {
  display:flex;
  align-items:center;
  gap:24px;
  font-size:13px;
  font-weight:600
}
.main-nav>a:not(.nav-cta) {
  padding:28px 0
}
.main-nav>a:not(.nav-cta):hover {
  color:var(--orange)
}
.nav-cta {
  padding:12px 18px;
  color:#fff;
  background:var(--orange);
  border-radius:9px
}
.menu-toggle {
  display:none;
  border:0;
  background:none;
  padding:8px
}
.menu-toggle span {
  display:block;
  width:25px;
  height:2px;
  margin:5px;
  background:var(--navy)
}
/* =========================================================
   HERO / BANNIÈRE D'ACCUEIL
   ---------------------------------------------------------
   La photo est placée en arrière-plan, donc elle reste
   derrière le texte. Le texte possède un z-index supérieur.

   IMPORTANT POUR APPRENDRE :
   - background-image = choisit l'image de fond.
   - background-size = contrôle la taille de l'image.
   - 100% 100% permet ici de voir toute la photo sur écran
     large au lieu de la recadrer comme avec "cover".
   - Sur mobile, on repasse à "cover" pour éviter une
     déformation trop importante de l'image.
   ========================================================= */
.hero {
  position:relative;
  min-height:520px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background-color:var(--navy);
  background-image:linear-gradient(90deg,rgba(20,31,42,.88) 0%,rgba(20,31,42,.72) 42%,rgba(20,31,42,.38) 100%),url("assets/hero-triptyque.png");
  /* On dézoome la photo pour afficher l'ensemble du visuel. */
  background-size:100% 100%;
  background-position:center;
  background-repeat:no-repeat
}
.hero-content {
  position:relative;
  z-index:2;
  max-width:760px;
  padding:90px 0;
  color:#fff
}
.hero .eyebrow {
  color:#ffb15e
}
.hero h1 {
  margin:0 0 22px;
  font-size:clamp(38px,5vw,62px);
  line-height:1.1;
  font-weight:600
}
.hero h1 strong {
  font-weight:800
}
.hero p {
  max-width:680px;
  margin-bottom:30px;
  color:#f2f5f7;
  font-size:18px
}
.hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:13px
}
/* =========================================================
   CARTES DES SERVICES
   ========================================================= */
.cards {
  display:grid;
  gap:18px
}
.cards.three {
  grid-template-columns:repeat(3,1fr)
}
.service-card {
  padding:30px 28px;
  text-align:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  transition:.25s
}
.service-card:hover {
  transform:translateY(-5px)
}
.service-icon {
  width:100%;
  min-height:210px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 18px;
  background:#fff;
  border-radius:18px;
  overflow:hidden
}
.service-icon-image img {
  width:100%;
  height:auto;
  max-height:245px;
  object-fit:contain;
  object-position:center
}
.service-card h3 {
  margin:0 0 10px;
  font-size:20px
}
.service-card p {
  min-height:72px;
  color:var(--text-light);
  font-size:14px
}
.card-link {
  display:inline-block;
  margin-top:14px;
  color:var(--navy);
  font-size:13px;
  font-weight:800
}
.card-link:hover {
  color:var(--orange)
}
/* =========================================================
   VALEURS : PRÉCISION / CONFIANCE / PROPRETÉ
   ========================================================= */
.trust {
  background:linear-gradient(120deg,#dfe9f1,#cbd9e5)
}
.trust-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  text-align:center;
  align-items:start
}
.trust-item {
  padding:0 14px;
  display:flex;
  flex-direction:column;
  align-items:center
}
.trust-item img {
  width:190px;
  height:230px;
  object-fit:contain;
  object-position:center;
  margin:0 auto 10px;
  display:block
}
.trust-item p {
  max-width:290px;
  margin:0;
  color:#53616c;
  font-size:14px
}
/* =========================================================
   CARTES DES RÉALISATIONS
   ========================================================= */
.portfolio-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px
}
.project-card {
  position:relative;
  min-height:330px;
  overflow:hidden;
  color:#fff;
  border-radius:14px;
  background:#aeb8bf;
  box-shadow:var(--shadow)
}
.project-card img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover
}
.project-card::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,rgba(14,26,37,.88),rgba(14,26,37,0) 62%)
}
.project-info {
  position:absolute;
  z-index:2;
  left:22px;
  right:22px;
  bottom:20px
}
.project-info span {
  color:#ffb15e;
  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase
}
.project-info h3 {
  margin:5px 0 0;
  font-size:19px
}
.portfolio-note {
  margin:24px auto 0;
  max-width:920px;
  text-align:center;
  color:#66727d;
  font-size:12px
}
.portfolio-note strong {
  color:var(--navy)
}
.tags {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:18px
}
.tags span {
  padding:5px 9px;
  color:#9a4c12;
  background:#fff6ed;
  border:1px solid #ffd5ae;
  border-radius:20px;
  font-size:11px;
  font-weight:700
}
/* =========================================================
   ZONE D'INTERVENTION ET CARTE DE FRANCE
   ========================================================= */
.locations {
  background:var(--background-light)
}
.map-layout {
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:45px;
  align-items:center
}
.map-card {
  padding:20px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow)
}
.map-card img {
  display:block;
  width:100%;
  max-width:520px;
  height:auto;
  margin:0 auto;
  object-fit:contain
}
.region-list {
  display:grid;
  gap:12px
}
.region-item {
  display:flex;
  align-items:center;
  gap:16px;
  padding:17px 18px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 8px 25px rgba(27,45,62,.06)
}
.region-item b {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:50%;
  background:#fff3e9;
  color:var(--orange);
  font-size:11px
}
.region-item span {
  font-weight:700;
  color:var(--navy)
}
/* =========================================================
   À PROPOS
   ========================================================= */
.about {
  background:#f7f9fb
}
.about-grid {
  /* Une seule colonne : le texte est en premier, puis la photo en dessous. */
  display:flex;
  flex-direction:column;
  gap:35px
}
.about-image {
  /* La photo prend toute la largeur disponible sous le texte. */
  width:100%;
  min-height:520px;
  overflow:hidden;
  border-radius:18px;
  box-shadow:var(--shadow);
  background:#dfe4e8
}
.about-image img {
  display:block;
  width:100%;
  height:auto;
  max-height:620px;
  object-fit:cover;
  object-position:center
}
.about-content h2 {
  margin:0 0 18px;
  font-size:38px;
  line-height:1.2
}
.about-content p {
  color:var(--text-light);
  line-height:1.8
}
.about-subsection {
  margin-top:28px
}
.about-subsection h3 {
  margin:0 0 12px;
  color:var(--navy);
  font-size:18px
}
.about-list {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  padding:0;
  margin:14px 0;
  list-style:none
}
.about-list li {
  padding:12px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  font-weight:700;
  font-size:12px
}
.about-list li span {
  color:var(--orange);
  margin-right:6px
}
.about-future {
  font-size:12px
}
.about-cta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:30px;
  padding:20px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px
}
.about-cta div {
  display:grid;
  gap:4px
}
.about-cta span {
  color:var(--text-light);
  font-size:12px
}

/* =========================================================
   CONTACT ET FORMULAIRE FORMSPREE
   ========================================================= */
.contact-section {
  background:#fff
}
.contact-grid {
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:65px;
  align-items:start
}
.contact-copy h2 {
  margin:0 0 16px;
  font-size:38px;
  line-height:1.2
}
.contact-copy>p {
  max-width:500px;
  color:var(--text-light)
}
.contact-details {
  display:grid;
  gap:18px;
  margin-top:32px
}
.contact-details div {
  display:flex;
  flex-direction:column
}
.contact-details strong {
  color:var(--orange);
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase
}
.contact-details span {
  font-weight:600
}
.contact-form {
  padding:30px;
  background:#fbfcfd;
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow)
}
.form-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
label {
  display:block;
  margin-bottom:16px;
  font-size:12px;
  font-weight:700
}
input,select,textarea {
  width:100%;
  margin-top:7px;
  padding:13px 14px;
  color:var(--text);
  background:#fff;
  border:1px solid #ccd5dc;
  border-radius:8px;
  font:500 13px "Montserrat",Arial,sans-serif;
  outline:none;
  transition:.2s
}
input:focus,select:focus,textarea:focus {
  border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(255,107,0,.10)
}
textarea {
  min-height:130px;
  resize:vertical
}
.consent {
  display:flex;
  align-items:flex-start;
  gap:8px;
  color:var(--text-light);
  font-size:11px;
  font-weight:500
}
.consent input {
  flex:0 0 16px;
  width:16px;
  height:16px;
  margin:1px 0 0
}
.form-note {
  margin:12px 0 0;
  color:#8a949c;
  font-size:10px;
  text-align:center
}
/* =========================================================
   PIED DE PAGE
   ========================================================= */
.site-footer {
  padding:55px 0 20px;
  color:#dbe2e8;
  background:var(--navy-dark)
}
.footer-grid {
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1fr;
  gap:35px
}
.footer-mark {
  width:115px;
  height:90px;
  object-fit:contain;
  object-position:left center;
  margin-bottom:12px
}
.site-footer h3 {
  color:#fff;
  font-size:13px
}
.site-footer p {
  color:#aebbc5;
  font-size:11px;
  line-height:1.8
}
.site-footer a:hover {
  color:#fff
}
.footer-bottom {
  display:flex;
  justify-content:space-between;
  margin-top:35px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.12);
  color:#91a0ab;
  font-size:10px
}
@media(max-width:900px) {
  .about-image,.about-image img {
    min-height:420px
  }
  .about-list {
    grid-template-columns:1fr
  }
  .about-cta {
    align-items:flex-start;
    flex-direction:column
  }
  .menu-toggle {
    display:block
  }
  .main-nav {
    display:none;
    position:absolute;
    left:4%;
    right:4%;
    top:70px;
    padding:14px;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow:var(--shadow)
  }
  .main-nav.open {
    display:flex
  }
  .main-nav>a:not(.nav-cta) {
    padding:12px
  }
  .nav-cta {
    margin-top:6px;
    text-align:center
  }
  .cards.three,.portfolio-grid,.trust-grid {
    grid-template-columns:1fr
  }
  .map-layout,.about-grid,.contact-grid {
    grid-template-columns:1fr;
    gap:35px
  }
  .footer-grid {
    grid-template-columns:1fr 1fr
  }
  /* Sur tablette/mobile, on conserve les proportions de la photo. */
  .hero {
    min-height:560px;
    background-size:cover;
    background-position:center center
  }
  .hero-content {
    padding:70px 0
  }
  .section {
    padding:70px 0
  }
  .trust-item img {
    width:205px;
    height:245px
  }
  .section-heading.left {
    margin-left:auto;
    text-align:center
  }
  .map-layout {
    gap:25px
  }
}
@media(max-width:600px) {
  .nav-wrap {
    min-height:70px
  }
  .brand img {
    width:125px;
    height:55px
  }
  .hero h1 {
    font-size:38px
  }
  .hero p {
    font-size:16px
  }
  .form-row {
    grid-template-columns:1fr
  }
  .footer-grid {
    grid-template-columns:1fr
  }
  .footer-bottom {
    flex-direction:column;
    gap:10px
  }
  .project-card {
    min-height:300px
  }
  .trust-item img {
    width:190px;
    height:230px
  }
  .map-card {
    padding:10px
  }
}
/* =========================================================
   GALERIE DE PROJETS / LIGHTBOX
   ========================================================= */
.portfolio-projects {
  grid-template-columns:repeat(3,1fr)
}
.project-card-button {
  border:0;
  padding:0;
  text-align:left;
  font:inherit;
  cursor:pointer;
  width:100%
}
.project-card-button small {
  display:block;
  margin-top:8px;
  color:#fff;
  font-size:12px;
  font-weight:700
}
.project-modal {
  position:fixed;
  inset:0;
  z-index:2000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px
}
.project-modal.is-open {
  display:flex
}
.project-modal-backdrop {
  position:absolute;
  inset:0;
  background:rgba(8,18,28,.78);
  backdrop-filter:blur(4px)
}
.project-modal-panel {
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);
  width:min(1120px,96vw);
  max-height:92vh;
  overflow:auto;
  background:#fff;
  border-radius:20px;
  box-shadow:0 30px 80px rgba(0,0,0,.3)
}
.project-modal-media {
  position:relative;
  background:#101c28;
  min-height:560px;
  display:flex;
  align-items:center;
  justify-content:center
}
.project-modal-media img {
  width:100%;
  height:100%;
  min-height:560px;
  max-height:75vh;
  object-fit:contain;
  display:block
}
.project-modal-video {
  width:100%;
  height:100%;
  min-height:560px;
  max-height:75vh;
  object-fit:contain;
  display:none;
  background:#101c28
}
.project-modal-close {
  position:absolute;
  right:14px;
  top:12px;
  z-index:4;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:#26384a;
  font-size:28px;
  line-height:1;
  cursor:pointer
}
.gallery-arrow {
  position:absolute;
  z-index:3;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  color:#26384a;
  font-size:30px;
  cursor:pointer;
  box-shadow:0 5px 20px rgba(0,0,0,.18)
}
.gallery-prev {
  left:16px
}
.gallery-next {
  right:16px
}
.gallery-counter {
  position:absolute;
  left:18px;
  bottom:18px;
  padding:7px 11px;
  border-radius:20px;
  background:rgba(15,29,42,.8);
  color:#fff;
  font-size:12px;
  font-weight:700
}
.project-modal-content {
  padding:48px 42px 36px
}
.project-modal-content h2 {
  margin:8px 0 14px;
  color:#26384a;
  font-size:30px;
  line-height:1.15
}
.project-modal-content p {
  color:#66727d;
  line-height:1.7
}
.gallery-thumbs {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:24px 0
}
.gallery-thumbs button {
  padding:0;
  border:2px solid transparent;
  border-radius:9px;
  overflow:hidden;
  background:#eef2f4;
  cursor:pointer;
  aspect-ratio:4/3
}
.gallery-thumbs button.active {
  border-color:#ff7a00
}
.gallery-thumbs img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block
}
body.modal-open {
  overflow:hidden
}
@media(max-width:900px) {
  .portfolio-projects {
    grid-template-columns:1fr
  }
  .project-modal-panel {
    grid-template-columns:1fr;
    max-height:94vh
  }
  .project-modal-media,.project-modal-media img,.project-modal-video {
    min-height:360px;
    max-height:50vh
  }
  .project-modal-content {
    padding:30px 24px
  }
  .project-modal-content h2 {
    font-size:24px
  }
}
@media(max-width:600px) {
  .project-modal {
    padding:10px
  }
  .project-modal-media,.project-modal-media img,.project-modal-video {
    min-height:260px;
    max-height:42vh
  }
  .project-modal-content {
    padding:25px 18px
  }
  .gallery-thumbs {
    gap:6px
  }
  .gallery-arrow {
    width:38px;
    height:38px
  }
}
/* Galerie réalisations : cartes entièrement cliquables */
.project-card-button {
  width:100%;
  border:0;
  padding:0;
  text-align:left;
  cursor:pointer;
  font:inherit;
  background:var(--surface,#fff);
  color:inherit;
}
.project-card-button:focus-visible {
  outline:3px solid #ff6b00;
  outline-offset:3px;
}
.project-card-button img {
  display:block;
  width:100%;
  height:230px;
  object-fit:cover;
}
@media (max-width:760px) {
  .project-card-button img {
    height:210px;
  }
}
/* =========================================================
   BOUTONS DE NAVIGATION HAUT / BAS
   ========================================================= */
.page-scroll-controls {
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:120;
  display:flex;
  flex-direction:column;
  gap:8px
}
.page-scroll-controls button {
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.8);
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  font-size:21px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(27,45,62,.22);
  transition:.2s ease
}
.page-scroll-controls button:hover {
  background:var(--orange);
  transform:translateY(-2px)
}
.page-scroll-controls button:focus-visible {
  outline:3px solid rgba(255,107,0,.35);
  outline-offset:2px
}
@media(max-width:600px) {
  .page-scroll-controls {
    right:12px;
    bottom:14px
  }
  .page-scroll-controls button {
    width:38px;
    height:38px;
    font-size:19px
  }
}
.gallery-thumbs button {
  position:relative
}
.gallery-video-badge {
  position:absolute;
  left:6px;
  bottom:6px;
  padding:3px 6px;
  border-radius:6px;
  background:rgba(20,31,42,.9);
  color:#fff;
  font-size:10px;
  font-weight:700;
  pointer-events:none
}
/* =========================================================
   CARTE DE FRANCE - AFFICHAGE HAUTE RÉSOLUTION
   ---------------------------------------------------------
   L'image est suffisamment grande pour rester nette sur un
   écran large. Le CSS conserve son ratio sans l'étirer.
   ========================================================= */
.map-card img {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}
/* Badge utilisé sur la carte du projet vidéo. */
.project-video-badge-card {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 107, 0, 0.95);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0,0,0,.16);
}
/* Sur mobile, on réduit légèrement la hauteur des cartes pour garder la navigation compacte. */
@media (max-width: 760px) {
  .project-video-badge-card {
    top: 14px;
    left: 14px;
  }
}


/* =========================================================
   V5 — PAGE À PROPOS
   ---------------------------------------------------------
   La page À propos est volontairement organisée en colonne :
   1. image
   2. texte de présentation

   En CSS, display:flex + flex-direction:column permet
   d'empiler les éléments verticalement.
   ========================================================= */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-grid .about-image {
  order: 1;
  width: 100%;
}

.about-grid .about-content {
  order: 2;
  width: 100%;
}

/* Petit bloc pédagogique invisible visuellement :
   il reste discret et sert seulement à documenter la structure. */
.beginner-guide {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
