/* =========================================================
   Serge-Jérôme Laverny — Webmaster & graphiste freelance
   Refonte 2026 · code couleur d'origine conservé
   ========================================================= */

:root {
  --orange: #ef792d;        /* orange du logo */
  --orange-texte: #b85412;  /* orange assombri pour le texte (contraste AA) */
  --noir: #222222;          /* barre de navigation d'origine */
  --gris-fonce: #515151;
  --gris: #6e6f71;
  --gris-moyen: #9b9b9b;
  --gris-clair: #bdbdbd;
  --fond: #f1f1f1;
  --blanc: #ffffff;

  --police: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --largeur: 1120px;
  --rayon: 10px;
  --ombre: 0 2px 14px rgba(34, 34, 34, 0.08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gris-fonce);
  background: var(--blanc);
}

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

a { color: var(--orange-texte); text-underline-offset: 3px; }
a:hover { color: var(--noir); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 { color: var(--noir); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.conteneur { width: min(100% - 2rem, var(--largeur)); margin-inline: auto; }

.lien-evitement {
  position: absolute; left: -999px; top: 0;
  background: var(--orange); color: var(--noir); padding: 0.6rem 1rem; z-index: 100;
}
.lien-evitement:focus { left: 1rem; }

/* ---------- Les trois points du logo ---------- */
.points { display: inline-block; width: 1.9em; height: 1.9em; flex: none; }

/* ---------- En-tête ---------- */
.entete {
  background: var(--noir);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.entete .conteneur {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.marque {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--blanc); text-decoration: none; line-height: 1.15;
}
.marque:hover { color: var(--blanc); }
.marque strong { display: block; font-size: 1.05rem; font-weight: 600; }
.marque small { display: block; font-size: 0.78rem; color: var(--gris-clair); letter-spacing: 0.02em; }

.menu-bouton {
  display: none;
  background: none; border: 1px solid #444; border-radius: 6px;
  color: var(--blanc); font: inherit; font-size: 0.95rem;
  padding: 0.45rem 0.8rem; cursor: pointer;
}
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; }
.menu a {
  display: block; padding: 0.5rem 0.75rem; border-radius: 6px;
  color: #d6d6d6; text-decoration: none; font-size: 0.95rem;
}
.menu a:hover { color: var(--blanc); background: rgba(255, 255, 255, 0.07); }
.menu a[aria-current="page"] { color: var(--blanc); box-shadow: inset 0 -3px 0 var(--orange); }
.menu .menu-contact a { background: var(--orange); color: var(--noir); font-weight: 600; margin-left: 0.4rem; }
.menu .menu-contact a:hover { background: #f58d4a; color: var(--noir); }
.menu .menu-contact a[aria-current="page"] { box-shadow: none; }

@media (max-width: 900px) {
  .menu-bouton { display: block; }
  .menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--noir); border-top: 1px solid #333;
    padding: 0.5rem 1rem 1rem;
  }
  .menu.ouvert { display: block; }
  .menu ul { flex-direction: column; }
  .menu a { padding: 0.8rem 0.5rem; font-size: 1.05rem; }
  .menu .menu-contact a { margin: 0.5rem 0 0; text-align: center; }
}

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.bouton {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.bouton-principal { background: var(--orange); color: var(--noir); }
.bouton-principal:hover { background: var(--noir); color: var(--blanc); }
.bouton-secondaire { border-color: var(--gris-moyen); color: var(--noir); }
.bouton-secondaire:hover { border-color: var(--noir); background: var(--noir); color: var(--blanc); }
.fond-sombre .bouton-secondaire { border-color: #666; color: var(--blanc); }
.fond-sombre .bouton-secondaire:hover { border-color: var(--blanc); background: var(--blanc); color: var(--noir); }
.fond-sombre .bouton-principal:hover { background: var(--blanc); color: var(--noir); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.fond-gris { background: var(--fond); }
.fond-sombre { background: var(--noir); color: #d6d6d6; }
.fond-sombre h2, .fond-sombre h3 { color: var(--blanc); }
.fond-sombre a:not(.bouton) { color: #f5a36d; }

.surtitre {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange-texte); margin-bottom: 0.8rem;
}
.surtitre::before { content: ""; width: 26px; height: 3px; background: var(--orange); border-radius: 2px; }
.fond-sombre .surtitre { color: var(--orange); }

.entete-section { max-width: 720px; margin-bottom: 2.5rem; }
.entete-section p { color: var(--gris); font-size: 1.1rem; }
.fond-sombre .entete-section p { color: var(--gris-clair); }

.chapo { font-size: 1.2rem; color: var(--gris); }

/* ---------- Héros (accueil) ---------- */
.heros { background: var(--fond); padding: clamp(2.5rem, 6vw, 5rem) 0; overflow: hidden; }
.heros .conteneur {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.heros h1 span { color: var(--orange-texte); }
.heros-photo { position: relative; justify-self: center; max-width: 380px; }
.heros-photo img { border-radius: var(--rayon); box-shadow: var(--ombre); }
.heros-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 3px solid var(--orange); border-radius: var(--rayon); z-index: -1;
}
.heros-photo { z-index: 0; }
.atouts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.atouts li { display: flex; align-items: center; gap: 0.45rem; font-weight: 500; color: var(--noir); font-size: 0.98rem; }
.atouts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }

@media (max-width: 800px) {
  .heros .conteneur { grid-template-columns: 1fr; }
  .heros-photo { max-width: 240px; }
}

/* En-tête de page intérieure */
.entete-page { background: var(--fond); padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-bottom: 4px solid var(--orange); }
.entete-page p { max-width: 720px; }

/* ---------- Grilles et cartes ---------- */
.grille { display: grid; gap: 1.5rem; }
.grille-2 { grid-template-columns: repeat(2, 1fr); }
.grille-3 { grid-template-columns: repeat(3, 1fr); }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .grille-3, .grille-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grille-2, .grille-3, .grille-4 { grid-template-columns: 1fr; }
}

.carte {
  background: var(--blanc); border-radius: var(--rayon); padding: 1.75rem;
  box-shadow: var(--ombre); border-top: 4px solid var(--orange);
}
.fond-gris .carte { box-shadow: none; }
.carte h3 { margin-bottom: 0.5rem; }
.carte p:last-child { margin-bottom: 0; }
.carte ul { margin: 0; padding-left: 1.1rem; }
.carte li { margin-bottom: 0.3rem; }
.carte li::marker { color: var(--orange); }

/* Deux colonnes texte / image */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.duo img { border-radius: var(--rayon); box-shadow: var(--ombre); }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }

/* Chiffres clés */
.chiffres { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.chiffres-ligne { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.chiffre { border-left: 4px solid var(--orange); padding: 0.2rem 0 0.2rem 1rem; }
.chiffre strong { display: block; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; color: var(--noir); }
.fond-sombre .chiffre strong { color: var(--blanc); }
.chiffre span { font-size: 0.95rem; color: var(--gris); }
.fond-sombre .chiffre span { color: var(--gris-clair); }

/* Étiquettes */
.etiquettes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.etiquettes li {
  background: var(--fond); color: var(--gris-fonce); border-radius: 999px;
  padding: 0.3rem 0.85rem; font-size: 0.92rem;
}
.fond-gris .etiquettes li { background: var(--blanc); }
.carte .etiquettes { padding-left: 0; margin-top: 0.8rem; }
.carte .etiquettes li { margin: 0; background: var(--fond); }

/* ---------- Parcours (frise) ---------- */
.frise { list-style: none; margin: 0; padding: 0; position: relative; }
.frise::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: #dadada; }
.frise > li { position: relative; padding: 0 0 2.5rem 2.5rem; }
.frise > li:last-child { padding-bottom: 0; }
.frise > li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--blanc); border: 4px solid var(--orange);
}
.frise .periode { font-size: 0.9rem; font-weight: 600; color: var(--orange-texte); letter-spacing: 0.03em; }
.frise h3 { margin: 0.2rem 0 0.5rem; font-size: 1.25rem; }
.frise .lieu { color: var(--gris); font-size: 0.95rem; margin-top: -0.3rem; }
.frise ul { padding-left: 1.1rem; margin: 0.5rem 0 0; }
.frise ul li::marker { color: var(--orange); }

/* ---------- Portfolio ---------- */
.projet { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); margin: 0; }
.projet img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--fond); }
.projet.carre img { aspect-ratio: 1 / 1; object-fit: contain; padding: 1rem; }
.projet figcaption { padding: 1rem 1.25rem 1.25rem; }
.projet figcaption strong { display: block; color: var(--noir); }
.projet figcaption span { font-size: 0.95rem; color: var(--gris); }

/* ---------- Contact ---------- */
.coordonnees { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.coordonnees li { display: flex; gap: 1rem; align-items: flex-start; }
.coordonnees .icone {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: var(--noir); display: grid; place-items: center;
}
.coordonnees .icone svg { width: 22px; height: 22px; }
.coordonnees small { display: block; color: var(--gris); font-size: 0.88rem; }
.coordonnees a, .coordonnees .valeur { font-size: 1.15rem; font-weight: 600; color: var(--noir); text-decoration: none; word-break: break-word; }
.coordonnees a:hover { color: var(--orange-texte); text-decoration: underline; }

.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .etapes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }
.etapes li { counter-increment: etape; }
.etapes li::before {
  content: counter(etape); display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; margin-bottom: 0.8rem;
  background: var(--noir); color: var(--orange); font-weight: 700; font-size: 1.1rem;
}

/* ---------- Bandeau d'appel ---------- */
.appel .conteneur { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.appel h2 { margin-bottom: 0.3rem; }
.appel p { margin: 0; color: var(--gris-clair); }
.appel .boutons { margin-top: 0; }

/* ---------- Pied de page ---------- */
.pied { background: #1a1a1a; color: var(--gris-clair); font-size: 0.95rem; padding: 3.5rem 0 1.5rem; }
.pied a { color: #e6e6e6; text-decoration: none; }
.pied a:hover { color: var(--orange); text-decoration: underline; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.pied h2 { font-size: 1rem; color: var(--blanc); margin-bottom: 0.8rem; letter-spacing: 0.03em; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.pied .marque { margin-bottom: 1rem; }
.pied-bas {
  border-top: 1px solid #333; margin-top: 2.5rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.88rem;
}
@media (max-width: 800px) { .pied-grille { grid-template-columns: 1fr; } }

/* ---------- Divers ---------- */
.texte-long { max-width: 760px; }
.texte-long h2 { margin-top: 2rem; font-size: 1.5rem; }
.centre { text-align: center; }
.mt { margin-top: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Formulaire de contact ---------- */
.contact-grille { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 860px) { .contact-grille { grid-template-columns: 1fr; } }

.carte-formulaire h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.form-intro { color: var(--gris); }

.form-ligne { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-ligne { grid-template-columns: 1fr; } }

.form-champ { margin-bottom: 1.1rem; }
.form-champ label { display: block; font-weight: 600; color: var(--noir); margin-bottom: 0.35rem; font-size: 0.97rem; }
.form-champ label span { color: var(--orange-texte); }
.form-champ label small { font-weight: 400; color: var(--gris); }

.form-champ input,
.form-champ select,
.form-champ textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--noir);
  background: var(--blanc); border: 1.5px solid #c9c9c9; border-radius: 8px;
  padding: 0.7rem 0.85rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-champ textarea { resize: vertical; min-height: 150px; }
.form-champ input:focus,
.form-champ select:focus,
.form-champ textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(239, 121, 45, 0.25);
}
.form-champ input:user-invalid,
.form-champ textarea:user-invalid { border-color: #b3261e; }

.form-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

#form-contact button[type="submit"] { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 1rem; }
#form-contact button[disabled] { opacity: 0.65; cursor: wait; }

.form-mention { font-size: 0.85rem; color: var(--gris); margin: 1rem 0 0; }

.form-statut { border-radius: 8px; padding: 0.9rem 1rem; margin-bottom: 1.2rem; font-weight: 500; }
.form-statut.succes { background: #e8f5ec; color: #1d5b32; border-left: 4px solid #2e8b57; }
.form-statut.erreur { background: #fdecea; color: #8a1c14; border-left: 4px solid #b3261e; }
.coordonnees a[href^="mailto:"] { font-size: 1rem; }
.heros-photo-accueil { max-width: 302px; }

/* ---------- Références clients ---------- */
.references {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
}
.references li {
  border: 1px solid #3a3a3a; border-radius: var(--rayon);
  padding: 1rem; text-align: center; color: var(--blanc); font-weight: 600;
  display: grid; place-items: center; min-height: 72px;
}
@media (max-width: 800px) { .references { grid-template-columns: repeat(2, 1fr); } }

/* Portfolio : visuels entiers, centrés ; le panneau panoramique occupe toute la ligne */
.projet.carre img { aspect-ratio: 1 / 1; object-position: center; }
.projet.panoramique { grid-column: 1 / -1; }
.projet.panoramique img { aspect-ratio: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.faq details { background: var(--blanc); border-radius: var(--rayon); border-left: 4px solid var(--orange); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.25rem; position: relative;
  font-weight: 600; color: var(--noir);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--orange-texte); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; }
.texte-long h3 { margin-top: 1.75rem; }
.texte-long .etiquettes { margin-top: 1.5rem; }

/* Portfolio : visuels composés (doubles pages, déclinaisons) affichés entiers */
.projet.auto img { aspect-ratio: auto; object-fit: contain; padding: 0; background: var(--blanc); }
.duo .projet.auto { align-self: start; }
.pile { display: grid; gap: 1.5rem; align-content: start; }
