/* ==========================================================================
   TEMA Holding — site vitrine
   Palette et typographies reprises du site WordPress/Elementor d'origine.
   ========================================================================== */

@font-face {
  font-family: "Archivo Black";
  src: url("/assets/fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --jaune: #ecb920;
  --jaune-fonce: #d19525;
  --orange: #e17e23;
  --vert: #5f7044;
  --bleu: #055169;
  --turquoise: #017f8d;
  --blanc: #ffffff;
  --noir: #000000;

  --titre: "Archivo Black", "Arial Black", Impact, sans-serif;
  --texte: "Archivo", Arial, Helvetica, sans-serif;
  --largeur: 1140px;
}

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

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

body {
  margin: 0;
  font-family: var(--texte);
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: var(--blanc);
}

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

h1, h2, h3, h4 {
  font-family: var(--titre);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
a { color: inherit; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; }

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

/* Lien d'évitement */
.evitement {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--bleu); color: var(--blanc); padding: 10px 16px;
  font-family: var(--titre); text-transform: uppercase; font-size: 13px;
}
.evitement:focus { top: 8px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--titre); text-transform: uppercase;
  font-size: 13px; letter-spacing: .04em; line-height: 1;
  padding: 14px 24px; cursor: pointer; text-decoration: none;
  color: var(--bleu); background: var(--blanc);
  border: 2px solid var(--bleu);
  transition: background .3s, color .3s, border-color .3s;
}
.bouton:hover, .bouton:focus-visible { background: var(--bleu); color: var(--blanc); }

.bouton--plein { background: var(--bleu); color: var(--blanc); border-color: var(--blanc); }
.bouton--plein:hover, .bouton--plein:focus-visible { background: var(--blanc); color: var(--bleu); border-color: var(--blanc); }

.bouton--clair { background: transparent; color: var(--blanc); border-color: var(--blanc); }
.bouton--clair:hover, .bouton--clair:focus-visible { background: var(--blanc); color: var(--bleu); }

.bouton svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Héros ---------- */
.heros {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100vh; position: relative;
}
.heros__texte {
  background: var(--jaune) url("/assets/img/jaune.png") left center / cover no-repeat;
  display: flex; flex-direction: column; justify-content: center;
  padding: 10% 6% 10% 13%; position: relative;
}
.heros h1 {
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: 1.22;
  color: var(--blanc);
  margin: 0;
  /* les mots du slogan s'empilent comme sur le site d'origine */
  overflow-wrap: normal;
}
.heros h1 span { display: block; }
.heros__photo {
  /* calée à gauche pour garder la randonneuse dans le cadre (comme sur l'ancien site) */
  background: url("/assets/img/sur-les-cretes.jpg") left center / cover no-repeat;
}
.heros__cta {
  position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%); z-index: 2;
}

@media (max-width: 767px) {
  .heros { grid-template-columns: 1fr; }
  .heros__photo { display: none; }
  .heros__texte {
    background-image: linear-gradient(rgba(236,185,32,.82), rgba(236,185,32,.82)), url("/assets/img/sur-les-cretes.jpg");
    background-size: cover; background-position: left center;
    align-items: center; text-align: center; padding: 120px 20px 140px;
  }
  .heros h1 { font-size: 40px; line-height: 1.4; }
}

/* ---------- Présentation ---------- */
.presentation { padding: 10% 10%; }
@media (min-width: 1200px) { .presentation { padding: 120px 0; } }
.presentation__titre { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.presentation__titre img { width: 100px; height: 81px; object-fit: contain; flex: none; }
.presentation h2 { color: var(--bleu); font-size: clamp(26px, 3.4vw, 40px); margin: 0; }
.presentation p { max-width: 820px; }
.presentation .bouton { margin-top: 12px; }

.bandeau { min-height: 30vh; background: url("/assets/img/route-collines.jpg") bottom center / cover no-repeat; }
.bandeau--vallee { min-height: 40vh; background-image: url("/assets/img/vallee-couleurs.jpg"); background-position: center; }

/* ---------- Services ---------- */
.services { padding: 8% 10%; }
@media (min-width: 1200px) { .services { padding: 100px 0; } }
.services h2 { text-align: center; color: var(--jaune); font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 50px; }
.services__grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.carte {
  perspective: 1000px; height: 300px; border: 0; padding: 0; background: none;
  font: inherit; text-align: center; cursor: pointer; width: 100%;
}
.carte__interieur {
  display: block; position: relative; width: 100%; height: 100%;
  transition: transform .5s; transform-style: preserve-3d;
}
.carte:hover .carte__interieur,
.carte:focus-visible .carte__interieur,
.carte.est-retournee .carte__interieur { transform: rotateY(180deg); }
.carte__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; color: var(--blanc);
}
.carte__face--arriere { transform: rotateY(180deg); }
.carte__titre { font-family: var(--titre); text-transform: uppercase; line-height: 1.15; font-size: clamp(22px, 2.6vw, 32px); margin: 0; }
.carte__plus {
  width: 40px; height: 40px; margin-bottom: 20px; fill: none; stroke: var(--blanc); stroke-width: 2.4; stroke-linecap: round;
}
.carte__face--arriere p {
  display: block; font-size: 18px; line-height: 1.5; margin: 0; max-width: 420px; }
.carte--bleu .carte__face { background: var(--bleu); }
.carte--orange .carte__face { background: var(--orange); }
.carte--vert .carte__face { background: var(--vert); }
.carte--jaune .carte__face { background: var(--jaune); }
.carte:focus-visible { outline: 3px solid var(--noir); outline-offset: 3px; }

@media (max-width: 767px) {
  .services { padding: 50px 20px; }
  .services__grille { grid-template-columns: 1fr; }
  .carte { height: 260px; }
}

/* ---------- Investissements ---------- */
.projets {
  background: var(--jaune); position: relative;
  padding: 140px 10% 90px;
}
@media (min-width: 1200px) { .projets { padding: 150px 0 100px; } }
.projets::before { /* coupure en biais en haut de section */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 90px; background: var(--blanc);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.projets h2 { text-align: center; color: var(--blanc); font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 50px; position: relative; }
.projets__grille { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; position: relative; }
.projet { background: var(--blanc); display: flex; flex-direction: column; }
.projet__image { height: 300px; object-fit: cover; width: 100%; }
.projet__corps { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.projet h3 { font-size: 22px; color: var(--bleu); margin-bottom: 12px; }
.projet h3 a { text-decoration: none; color: inherit; }
.projet h3 a:hover { color: #23527c; }
.projet p { font-size: 14px; color: var(--bleu); flex: 1; }
.projet .bouton { width: 100%; justify-content: center; margin-top: 18px; padding: 9px 17px; border-width: 3px; font-size: 12px; }

@media (max-width: 767px) {
  .projets { padding: 100px 20px 50px; }
  .projets__grille { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { padding: 10% 10% 4%; }
@media (min-width: 1200px) { .contact { padding: 120px 0 50px; } }
.contact__entete { text-align: center; margin-bottom: 50px; }
.contact__entete h2 { color: var(--bleu); font-size: clamp(26px, 3.4vw, 40px); }
.contact__entete p { font-family: var(--titre); text-transform: uppercase; color: var(--bleu); margin: 0; }
.contact__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 60px; }
.contact h3 { font-size: 18px; color: var(--bleu); }
.contact ul { list-style: none; margin: 0; padding: 0; }
.contact li { margin-bottom: .35em; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.contact__personne { margin-bottom: 1.4em; }
@media (max-width: 767px) {
  .contact { padding: 50px 20px 20px; }
  .contact__grille { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Pied de page ---------- */
.pied { text-align: center; }
.pied__haut { background: var(--bleu); padding: 6% 6%; color: var(--blanc); }
.pied__haut .marque { font-family: var(--titre); text-transform: uppercase; font-size: 32px; margin: 0 0 6px; }
.pied__haut .slogan { font-family: var(--titre); text-transform: uppercase; font-size: 20px; margin: 0; }
.pied__reseaux { margin-top: 20px; }
.pied__reseaux a, .pied__reseaux span {
  display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center;
  background: var(--jaune); color: var(--blanc);
}
.pied__reseaux svg { width: 18px; height: 18px; fill: currentColor; }
.pied__bas { background: var(--noir); color: var(--blanc); padding: 18px 20px; font-size: 20px; font-weight: 300; text-transform: uppercase; }
.pied__bas p { margin: 0; }
.pied__bas strong { font-family: var(--titre); font-weight: 400; }

/* ---------- Pages projet ---------- */
.projet-page__haut {
  min-height: 40vh; position: relative; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; color: var(--blanc); text-align: center; padding: 80px 20px;
}
.projet-page__haut::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.projet-page__haut h1 { position: relative; font-size: clamp(34px, 6vw, 72px); margin: 0; }
.projet-page__retour { position: absolute; top: 24px; left: 24px; z-index: 2; }

.projet-page__info { display: grid; grid-template-columns: 1fr 1fr; }
.projet-page__a-propos { background: var(--jaune); padding: 10%; color: var(--blanc); }
.projet-page__a-propos h2 { color: var(--blanc); }
.projet-page__a-propos p { font-size: 18px; }
.projet-page__a-propos .bouton { margin-top: 10px; }
.projet-page__faits { padding: 10%; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.fait { display: flex; gap: 20px; align-items: flex-start; }
.fait__icone {
  width: 70px; height: 70px; flex: none; background: var(--bleu); color: var(--blanc);
  display: flex; align-items: center; justify-content: center;
}
.fait__icone svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fait h3 { font-size: 18px; color: var(--bleu); margin-bottom: 4px; }
.fait p { margin: 0; font-size: 20px; }

.projet-page__savoir { padding: 10%; max-width: 1140px; margin: 0 auto; }
@media (min-width: 1200px) { .projet-page__savoir { padding: 100px 0; } }
.projet-page__savoir h2 { color: var(--bleu); font-size: clamp(24px, 3vw, 34px); }
.projet-page__savoir .bouton { margin-top: 20px; }

@media (max-width: 767px) {
  .projet-page__info { grid-template-columns: 1fr; }
  .projet-page__a-propos, .projet-page__faits { padding: 50px 20px; }
  .projet-page__savoir { padding: 50px 20px; }
  .projet-page__retour { position: static; margin: 0 0 24px; }
  .projet-page__haut { flex-direction: column; padding-top: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carte__interieur, .bouton { transition: none; }
}
