/* Polices hébergées sur le site (aucun appel à un service tiers) */
@font-face { font-family: "Outfit"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --fond: #faf7f2;
  --sable: #efe6da;
  --sable-fonce: #e2d5c4;
  --carte: #fffcf7;
  --texte: #3a3330;
  --texte-doux: #665b54;
  --sauge: #557460;
  --sauge-fonce: #3f5a49;
  --vert-section: #97c5a2;
  --vert-titre: #1f3d2a;
  --vert-pale: #e3efe6;
  --terracotta: #a35f3f;
  --bordure: #d8ccbe;
  --titres: "Outfit", "Segoe UI", system-ui, sans-serif;
  --corps: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --largeur: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--corps); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--sauge-fonce); }
h1, h2, h3 { font-family: var(--titres); color: var(--texte); margin: 0; line-height: 1.15; }
h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 400; }
h3 { font-size: 20px; font-weight: 500; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.lien-evitement { position: absolute; left: -9999px; top: 8px; background: var(--carte); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.lien-evitement:focus { left: 8px; }

.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 32px; }
.conteneur--etroit { max-width: 780px; }

/* Boutons */
.bouton { display: inline-block; padding: 14px 26px; border-radius: 8px; font-weight: 600; text-decoration: none; font-family: var(--corps); font-size: 16px; line-height: 1.2; border: 1px solid transparent; cursor: pointer; }
.bouton--plein { background: var(--sauge); color: #fff; }
.bouton--plein:hover { background: var(--sauge-fonce); color: #fff; }
.bouton--contour { border-color: #b9a998; color: var(--texte); }
.bouton--contour:hover { background: var(--fond); }
.bouton--grand { padding: 17px 34px; font-size: 17px; }

/* En-tête et accueil */
.entete { background: var(--sable); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.entete.defile { border-bottom-color: var(--bordure); box-shadow: 0 2px 10px rgba(58, 51, 48, .06); }
.bandeau-accueil { background: var(--sable); }
.entete__interieur { padding-top: 16px !important; padding-bottom: 16px !important; }
.retour-haut { position: fixed; right: 22px; bottom: 22px; z-index: 15; width: 46px; height: 46px; border-radius: 50%; background: var(--sauge); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(58, 51, 48, .18); }
.retour-haut:hover { background: var(--sauge-fonce); color: #fff; }
.retour-haut[hidden] { display: none; }
#galerie { padding: 56px 0; }
#galerie h2 { margin-bottom: 32px; }
#galerie .section__intro { margin: -20px 0 24px; }
.entete__interieur { max-width: var(--largeur); margin: 0 auto; padding: 22px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texte); }
.logo__marque { width: 40px; height: 40px; border-radius: 8px; background: var(--sauge); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--titres); font-weight: 600; font-size: 16px; flex-shrink: 0; }
.logo__nom { font-family: var(--titres); font-weight: 500; font-size: 17px; line-height: 1.2; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav a:not(.bouton) { color: var(--texte); text-decoration: none; padding: 4px 0; }
.nav a:not(.bouton):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .bouton { padding: 10px 20px; font-size: 15px; }

.hero { max-width: var(--largeur); margin: 0 auto; padding: 48px 32px 80px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__texte { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__bandeau { margin: 0; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; }
.hero h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 300; line-height: 1.05; }
.hero__intro { margin: 0; font-size: 19px; color: #5c524c; max-width: 34em; }
.hero__boutons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.hero__image { flex: 1 1 420px; min-width: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* Emplacement d'image : fond beige si l'image est absente */
.cadre-image { background: var(--sable-fonce); position: relative; overflow: hidden; flex-shrink: 0; }
.hero__image img, .carte-article__image img, .galerie__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cadre-image img.absente { visibility: hidden; }

/* Sections */
.section { padding: 88px 0; }
.section h2 { margin-bottom: 40px; }
h1.titre-section { font-size: clamp(30px, 4vw, 40px); font-weight: 400; margin-bottom: 40px; }
#expertises .titre-section, #apropos .titre-section, #galerie .titre-section, #temoignages .titre-section { margin-bottom: 32px; }
.nav a[aria-current="page"]:not(.bouton) { color: var(--sauge-fonce); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.accueil-ecran .bandeau-accueil { min-height: calc(100vh - 74px); min-height: calc(100svh - 74px); display: flex; align-items: center; }
.accueil-ecran .hero { padding-top: 32px; padding-bottom: 40px; gap: 56px; width: 100%; }
.accueil-ecran .hero__image { aspect-ratio: 4 / 3; max-height: 62vh; }
.apercus { padding: 28px 0 36px; }
.grille-apercus { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.carte-apercu { background: var(--carte); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--texte); display: flex; flex-direction: column; }
.carte-apercu__image { aspect-ratio: 16 / 9; }
.carte-apercu__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte-apercu__citation { aspect-ratio: 16 / 9; background: var(--vert-section); display: flex; align-items: center; padding: 12px 16px; overflow: hidden; }
.carte-apercu__citation p { margin: 0; font-family: var(--titres); font-size: 14px; line-height: 1.35; color: var(--vert-titre); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.carte-apercu__texte { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.carte-apercu h2 { font-size: 17px; font-weight: 500; margin: 0; }
.carte-apercu p { margin: 0; color: var(--texte-doux); font-size: 13.5px; line-height: 1.45; }
.carte-apercu__lien { margin-top: auto; padding-top: 4px; color: var(--terracotta); font-weight: 600; font-size: 14px; }
.carte-apercu:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1100px) { .grille-apercus { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grille-apercus { grid-template-columns: repeat(2, minmax(0, 1fr)); } .accueil-ecran .hero__image { max-height: none; } }
@media (max-width: 460px) { .grille-apercus { grid-template-columns: 1fr; } }

/* Pages de rubrique : contenu remonté pour tenir à l'écran */
#expertises.section--page, #apropos.section--page, #galerie.section--page, #temoignages.section--page, #blog.section--page, #contact.section--page { padding: 32px 0 44px; }
.section--page .titre-section { font-size: clamp(28px, 3.2vw, 36px) !important; margin-bottom: 18px !important; }
#expertises.section--page .section__intro, #galerie.section--page .section__intro { margin: -6px 0 22px; }
#galerie.section--page .galerie__image { aspect-ratio: 4 / 3; }
#apropos.section--page .apropos__image { min-height: 0; }
#contact.section--page { padding: 56px 0 72px; }

.appel-contact { background: var(--sable); }
.appel-contact__interieur { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.appel-contact p { margin: 0; font-size: 18px; color: var(--texte); max-width: 36em; }
.section__intro { margin: -24px 0 44px; font-size: 18px; color: var(--texte-doux); max-width: 40em; }
.section--claire { background: var(--carte); }
.section--verte { background: var(--vert-section); }
.section--sable { background: var(--sable); }

.apropos { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 36px; align-items: stretch; }
.apropos__image { border-radius: 14px; min-height: 280px; }
.apropos__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apropos__textes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; align-content: start; }
.apropos__bloc { padding: 14px 0 0; border-top: 1px solid var(--bordure); }
.apropos__bloc:nth-child(-n+2) { padding-top: 0; border-top: 0; }

.apropos__bloc h3 { font-size: 18px; margin-bottom: 6px; }
.apropos__bloc p { margin: 0; color: #5c524c; font-size: 15px; line-height: 1.55; }
.apropos__bloc ul { margin: 0; padding-left: 20px; color: #5c524c; font-size: 15px; line-height: 1.55; }
.apropos__bloc li { margin-bottom: 2px; }
.apropos__bloc li::marker { color: var(--sauge); }
.apropos__bloc strong { color: var(--texte); font-weight: 600; }
#apropos { padding: 56px 0; }
#apropos h2 { margin-bottom: 32px; }
@media (max-width: 1080px) { .apropos__textes { grid-template-columns: 1fr; } .apropos__bloc:nth-child(2) { padding-top: 14px; border-top: 1px solid var(--bordure); } }
@media (max-width: 860px) { .apropos { grid-template-columns: 1fr; gap: 28px; } .apropos__image { aspect-ratio: 16 / 9; min-height: 0; } }
.section--verte h2 { color: var(--vert-titre); }

.grille-expertises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.carte-expertise { background: var(--carte); border-radius: 12px; overflow: hidden; display: flex; align-items: stretch; }
.carte-expertise__image { flex: 0 0 104px; width: 104px; height: 104px; align-self: center; margin: 12px 0 12px 12px; border-radius: 8px; }
.carte-expertise__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carte-expertise__texte { padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.carte-expertise h3 { font-size: 16px; line-height: 1.25; }
.carte-expertise p { margin: 0; color: var(--texte-doux); font-size: 13.5px; line-height: 1.45; }
#expertises { padding: 56px 0; }
#expertises h2 { margin-bottom: 32px; }
#expertises .section__intro { margin: -20px 0 28px; }
@media (max-width: 1080px) { .grille-expertises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grille-expertises { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .carte-expertise__image { flex-basis: 96px; width: 96px; height: 96px; } .carte-expertise__texte { padding: 14px 16px; } }

.methode { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.methode__element { padding-top: 20px; border-top: 3px solid #8faa95; }
.methode__element h3 { font-size: 22px; margin-bottom: 8px; }
.methode__element p { margin: 0; color: var(--texte-doux); font-size: 15px; }

.galerie { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 980px) { .galerie { grid-template-columns: repeat(3, 1fr); } }
.galerie__element { margin: 0; }
.galerie__image { aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: block; }
.galerie__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.galerie__image:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .galerie__image img { transition: none; } }

.grille-temoignages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.temoignage { margin: 0; padding: 28px 30px; border-radius: 14px; background: var(--carte); display: flex; flex-direction: column; gap: 16px; }
.temoignage__secteur { display: flex; align-items: center; gap: 14px; font-family: var(--titres); font-size: 15px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #3f6b4c; }
.temoignage__icone { width: 44px; height: 44px; border-radius: 50%; background: var(--vert-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.temoignage blockquote { margin: 0; }
.temoignage blockquote p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; color: #4a403a; }
.temoignage blockquote p:last-child { margin-bottom: 0; }
.temoignage blockquote ul { margin: 0 0 10px; padding-left: 20px; color: #4a403a; font-size: 15px; line-height: 1.55; }
.temoignage blockquote li { margin-bottom: 4px; }
#temoignages { padding: 56px 0; }
#temoignages h2 { margin-bottom: 32px; }
.temoignage figcaption { display: flex; flex-direction: column; }
.temoignage figcaption span { color: var(--texte-doux); font-size: 14px; }

.grille-articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.carte-article { background: var(--carte); border-radius: 12px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; }
.carte-article__image { aspect-ratio: 16 / 9; }
.carte-article__image img { width: 100%; height: 100%; object-fit: cover; }
.carte-article__texte { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.carte-article h3 { color: var(--texte); font-size: 17px; line-height: 1.25; }
.carte-article__lien { color: var(--terracotta); font-weight: 600; font-size: 15px; margin-top: auto; }
.carte-article:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

.contact { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.contact__texte { flex: 1 1 380px; min-width: 0; }
.contact__texte h2 { margin-bottom: 16px; }
.contact__texte p { margin: 0; font-size: 18px; color: var(--texte-doux); max-width: 32em; }
.contact__action { flex: 0 1 440px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.contact__adresse { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 16px; overflow-wrap: anywhere; }
.bouton-copier { font: inherit; font-size: 14px; font-weight: 500; color: var(--sauge-fonce); background: none; border: 1px solid var(--bordure); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.bouton-copier:hover { background: var(--fond); }
.contact__statut { margin: 0; min-height: 1.5em; font-size: 15px; color: var(--sauge-fonce); font-weight: 500; }
.contact__autre { margin: 0; font-size: 14px; }
.contact__autre a { color: var(--texte-doux); }
button.bouton { font-family: var(--corps); }

/* Pages d'article et mentions légales */
.article { padding: 56px 0 88px; }
.article__retour { margin: 0 0 24px; font-size: 15px; }
.article h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 400; margin-bottom: 32px; }
.article__image { margin: 0 0 40px; border-radius: 14px; overflow: hidden; }
.article__image img { width: 100%; height: auto; }
.article__texte { font-size: 18px; line-height: 1.7; }
.article__texte h2 { font-size: 28px; font-weight: 500; margin: 44px 0 14px; }
.article__texte h3 { font-size: 21px; margin: 32px 0 10px; }
.article__texte p { margin: 0 0 18px; }
.article__texte ul { margin: 0 0 18px; padding-left: 22px; }
.article__texte li { margin-bottom: 8px; }
.article__texte li::marker { color: var(--sauge); }
.article__appel { margin: 40px 0 0; }

/* Pied de page */
.pied { background: var(--sable); color: #6b5f56; font-size: 14px; }
.pied__interieur { max-width: var(--largeur); margin: 0 auto; padding: 28px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.pied a { color: #6b5f56; }

/* Visionneuse de la galerie */
.visionneuse { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); max-height: 92vh; }
.visionneuse::backdrop { background: rgba(31, 26, 23, .82); }
.visionneuse figure { margin: 0; background: var(--carte); border-radius: 12px; overflow: hidden; }
.visionneuse img { max-width: 100%; max-height: 76vh; margin: 0 auto; }
.visionneuse figcaption { padding: 16px 22px 20px; font-size: 16px; color: var(--texte); max-width: 60em; }
.visionneuse figcaption:empty { display: none; }
.visionneuse__fermer { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--carte); color: var(--texte); font-size: 24px; line-height: 1; cursor: pointer; }

/* Téléphones */
@media (max-width: 720px) {
  html { scroll-padding-top: 98px; }
  body { font-size: 16px; }
  .conteneur, .entete__interieur, .hero, .pied__interieur { padding-left: 20px; padding-right: 20px; }
  .entete__interieur { padding-top: 10px !important; padding-bottom: 10px !important; gap: 8px; }
  .logo__marque { width: 34px; height: 34px; font-size: 14px; }
  .logo__nom { font-size: 15px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .retour-haut { right: 14px; bottom: 14px; }
  .nav { width: 100%; gap: 6px 18px; font-size: 14px; }
  .entete__interieur { position: relative; }
  .nav .bouton { position: absolute; top: 12px; right: 20px; padding: 8px 14px; font-size: 14px; }
  .hero { padding-top: 32px; padding-bottom: 56px; gap: 36px; }
  .hero__texte, .hero__image, .contact__texte, .contact__action { flex-basis: 100%; width: 100%; }
  .section { padding: 64px 0; }
  .grille-temoignages { grid-template-columns: 1fr; }
  .temoignage { padding: 26px; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .article__texte { font-size: 17px; }
}
