/* ==========================================================================
   Rosetta Bloc — charte cf. BRAND.md
   Palette : noir #000, menthe #A0F6D2, turquoise #72DFD0, rose #D9377E
   Typo : Abril Fatface (display), Poppins (texte)
   ========================================================================== */

:root {
  --noir: #000000;
  --encre: #1f2422;
  --menthe: #a0f6d2;
  --turquoise: #72dfd0;
  --rose: #d9377e;
  --blanc: #ffffff;
  --gris-fond: #f7faf9;
  --font-display: "Abril Fatface", serif;
  --font-texte: "Poppins", sans-serif;
  --largeur-max: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-texte);
  color: var(--encre);
  background: var(--blanc);
  line-height: 1.7;
}

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

h1, h2, h3, .chiffre {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--noir);
  line-height: 1.15;
}

h2, section h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: .5rem; }

.conteneur {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4.5rem 0; }

.surtitre {
  display: inline-block;
  background: var(--menthe);
  color: var(--noir);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* --- Header ------------------------------------------------------------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--menthe);
}

.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .6rem;
  padding-bottom: .6rem;
}

.entete .logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.entete .logo img { height: 40px; width: auto; }

.entete .logo span {
  font-family: 'Abril Fatface', serif;
  font-size: 1.35rem;
  color: var(--noir);
  line-height: 1;
  white-space: nowrap;
}

.nav-principale { display: flex; gap: 1.5rem; align-items: center; }

.nav-principale a {
  color: var(--encre);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
}

.nav-principale a:hover { color: var(--noir); box-shadow: inset 0 -8px 0 var(--menthe); }

.nav-principale .bouton-contact {
  background: var(--noir);
  color: var(--blanc);
  padding: .45rem 1.1rem;
  border-radius: 999px;
}

.nav-principale .bouton-contact:hover { background: var(--turquoise); color: var(--noir); box-shadow: none; }

.bouton-burger {
  display: none;
  background: none;
  border: 2px solid var(--noir);
  border-radius: 6px;
  font-size: 1.3rem;
  line-height: 1;
  padding: .3rem .55rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .bouton-burger { display: block; }

  .nav-principale {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blanc);
    border-bottom: 2px solid var(--menthe);
    padding: .5rem 1.25rem 1rem;
  }

  .nav-principale.ouvert { display: flex; }

  .nav-principale a { padding: .7rem 0; font-size: 1rem; }

  .nav-principale a:hover { box-shadow: none; }

  .nav-principale .bouton-contact {
    text-align: center;
    margin-top: .5rem;
  }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: var(--blanc);
  background: var(--noir);
  padding: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* garde le prélèvement (à droite du cadre) visible quel que soit le recadrage */
  object-position: 63% 45%;
  opacity: .55;
}

.hero-contenu {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero h1 {
  color: var(--blanc);
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 18ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--menthe);
}

.hero p {
  max-width: 55ch;
  margin-top: 1rem;
  font-size: 1.05rem;
}

.bouton-cta {
  display: inline-block;
  background: var(--menthe);
  color: var(--noir);
  text-decoration: none;
  font-weight: 600;
  padding: .8rem 1.8rem;
  border-radius: 999px;
  margin-top: 1.5rem;
}

.bouton-cta:hover { background: var(--turquoise); }

/* --- Services / offres ----------------------------------------------------- */

.cartes-offres {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.carte-offre {
  background: var(--blanc);
  border: 3px solid var(--noir);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 8px 8px 0 var(--menthe);
}

.carte-offre p { font-size: .95rem; }

.mock-ui-large { max-width: 620px; margin: 3rem auto 0; }

.cta-ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
  text-align: center;
  font-weight: 500;
}

.cta-ligne .bouton-cta { margin-top: 0; }

/* --- Chiffres clés -------------------------------------------------------- */

.chiffres { background: var(--noir); color: var(--blanc); padding: 3rem 0; }

.chiffres-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem 1.5rem;
  text-align: center;
}

.chiffre { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--menthe); }

.chiffre-libelle { font-size: .85rem; margin-top: .35rem; color: rgba(255, 255, 255, .85); }

/* --- Histoire (3 temps) ---------------------------------------------------- */

.temps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
}

.temps:nth-child(even) .temps-media { order: -1; }

.temps-media img { border-radius: 8px; }

.legende {
  font-size: .8rem;
  color: #667;
  margin-top: .5rem;
  font-style: italic;
}

/* Reconstitution d'interface logicielle (illustrative) */

.mock-ui {
  border: 3px solid var(--noir);
  border-radius: 10px;
  overflow: hidden;
  background: var(--blanc);
  box-shadow: 8px 8px 0 var(--menthe);
  font-size: .85rem;
}

.mock-barre {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--noir);
  color: var(--blanc);
  padding: .5rem .75rem;
}

.mock-point {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--turquoise);
}

.mock-point:first-child { background: var(--rose); }
.mock-point:nth-child(2) { background: var(--menthe); }

.mock-titre { margin-left: .5rem; font-weight: 500; font-size: .8rem; }

.mock-flux {
  padding: .5rem .75rem;
  background: var(--gris-fond);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .02em;
  border-bottom: 1px solid #e3ecea;
}

.mock-table { width: 100%; border-collapse: collapse; }

.mock-table th, .mock-table td {
  text-align: left;
  padding: .5rem .75rem;
  border-bottom: 1px solid #eef4f2;
}

.mock-table th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #667;
}

.statut {
  display: inline-block;
  border-radius: 999px;
  padding: .1rem .6rem;
  font-size: .72rem;
  font-weight: 600;
}

.statut.ok { background: var(--menthe); }
.statut.encours { background: #fff3c9; }

.mock-stats {
  padding: .6rem .75rem;
  font-weight: 600;
  font-size: .78rem;
  color: var(--encre);
  background: var(--gris-fond);
}

.figure-secondaire { margin-top: 1.25rem; }

.figure-secondaire img { border-radius: 8px; max-height: 260px; object-fit: cover; width: 100%; }

/* --- Bande opérations ------------------------------------------------------ */

.operations { background: var(--gris-fond); }

.bande-photos {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1.5rem 0;
  scroll-snap-type: x mandatory;
}

.bande-photos a {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.bande-photos img {
  height: 260px;
  width: auto;
  border-radius: 8px;
}

/* --- Logistique ------------------------------------------------------------ */

.duo-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.duo-photos img { border-radius: 8px; height: 100%; object-fit: cover; }

.duo-photos figure img { height: 300px; width: 100%; }

.cadrage-haut { object-position: center 22%; }

.duo-photos.quatuor { grid-template-columns: repeat(4, 1fr); }

.duo-photos.quatuor img { height: 240px; width: 100%; }

/* --- Partenaires ------------------------------------------------------------ */

.partenaires-famille { margin-top: 2.5rem; }

.partenaires-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.carte-partenaire {
  border: 1px solid #e3ecea;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.carte-partenaire img {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.carte-partenaire .taille { font-size: .78rem; color: #667; line-height: 1.45; }

/* --- Solidaire (accent rose, cf. BRAND.md) ---------------------------------- */

.solidaire { background: #fdf2f7; }

.solidaire .surtitre { background: var(--rose); color: var(--blanc); }

.solidaire h2 em { font-style: normal; color: var(--rose); }

.grille-solidaire {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.grille-solidaire img { border-radius: 8px; height: 220px; width: 100%; object-fit: cover; }

/* --- Équipe ------------------------------------------------------------------ */

.fondateurs {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}

.fondateurs-texte p + p { margin-top: 1rem; }

.fondateurs-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fondateurs-photos figure {
  background: var(--blanc);
  padding: .5rem .5rem .85rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
  border-radius: 4px;
}

.fondateurs-photos figure:nth-child(1) { transform: rotate(-1.5deg); }
.fondateurs-photos figure:nth-child(2) { transform: rotate(1.2deg); }
.fondateurs-photos figure:nth-child(3) { transform: rotate(1.8deg); }
.fondateurs-photos figure:nth-child(4) { transform: rotate(-1.2deg); }

.fondateurs-photos img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.fondateurs-photos figcaption {
  font-size: .78rem;
  text-align: center;
  margin-top: .45rem;
}

.titre-vie-equipe { margin-top: 3.5rem; text-align: center; }

.pele-mele {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.pele-mele figure {
  background: var(--blanc);
  padding: .6rem .6rem 1rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
  border-radius: 4px;
  max-width: 280px;
}

.pele-mele figure:nth-child(odd) { transform: rotate(-2deg); }
.pele-mele figure:nth-child(even) { transform: rotate(1.5deg); }

.pele-mele img { border-radius: 2px; height: 220px; width: 100%; object-fit: cover; }

.pele-mele figcaption { font-size: .8rem; text-align: center; margin-top: .5rem; }

/* --- R&D / Contact ------------------------------------------------------------ */

.rnd { background: var(--gris-fond); }

.rnd p { max-width: 65ch; }

.rnd-cartes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.rnd-carte {
  background: var(--blanc);
  border: 3px solid var(--noir);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 8px 8px 0 var(--turquoise);
}

.rnd-carte p { font-size: .95rem; }

/* Bandeau d'accès à la galerie */

.embleme { height: 56px; width: auto; margin-bottom: 1rem; }

.cta-galerie { text-align: center; }

.cta-galerie .embleme { margin-inline: auto; }

.cta-galerie-vignettes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.cta-galerie-vignettes img {
  height: 160px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.bouton-galerie {
  display: inline-block;
  background: var(--noir);
  color: var(--blanc);
  text-decoration: none;
  font-weight: 600;
  padding: .9rem 2rem;
  border-radius: 999px;
}

.bouton-galerie:hover { background: var(--turquoise); color: var(--noir); }

.pied {
  background: var(--noir);
  color: var(--blanc);
  padding: 3rem 0 2rem;
}

.pied a { color: var(--menthe); text-decoration: none; }
.pied a:hover { text-decoration: underline; }

.pied .conteneur {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.pied .marque-pied { display: flex; align-items: center; gap: .75rem; }

.pied .logo-pied { height: 56px; width: auto; }

.pied .marque-pied span {
  font-family: 'Abril Fatface', serif;
  font-size: 1.6rem;
  color: var(--blanc);
  line-height: 1;
}

.pied .coordonnees { font-size: .95rem; line-height: 2; }

/* --- Pages légales --------------------------------------------------------------- */

.page-legale h3 { margin-top: 2rem; }

.page-legale p { max-width: 70ch; }

.page-legale em { color: #a33; font-style: normal; font-weight: 500; }

/* --- Galerie ------------------------------------------------------------------- */

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 2rem;
}

.filtres button {
  font-family: var(--font-texte);
  font-size: .82rem;
  font-weight: 500;
  border: 2px solid var(--noir);
  background: var(--blanc);
  color: var(--noir);
  border-radius: 999px;
  padding: .35rem 1rem;
  cursor: pointer;
}

.filtres button.actif,
.filtres button:hover { background: var(--menthe); }

.galerie-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.galerie-grille figure { border-radius: 8px; overflow: hidden; position: relative; }

.galerie-grille img { height: 220px; width: 100%; object-fit: cover; transition: transform .25s; }

.galerie-grille figure:hover img { transform: scale(1.04); }

.galerie-grille figcaption {
  position: absolute;
  inset: auto 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: var(--blanc);
  font-size: .75rem;
  padding: 1.5rem .75rem .5rem;
}

/* --- Responsive ----------------------------------------------------------------- */

@media (max-width: 760px) {
  .temps, .duo-photos, .rnd-cartes, .cartes-offres, .fondateurs { grid-template-columns: 1fr; }
  .duo-photos.quatuor, .cta-galerie-vignettes { grid-template-columns: 1fr 1fr; }
  .temps:nth-child(even) .temps-media { order: 0; }

  /* Fondateurs : le restaurant (paysage) et le ski (portrait) sur leur propre ligne */
  .fondateurs-photos figure:nth-child(3),
  .fondateurs-photos figure:nth-child(4) { grid-column: 1 / -1; }

  .fondateurs-photos figure:nth-child(3) img { height: 230px; }

  .fondateurs-photos figure:nth-child(4) img { height: 260px; object-position: center 48%; }
}
