/* ==========================================================================
   NØRDLYS HAVEN - Feuille de style principale
   Site vitrine HTML/CSS simple - sans framework, sans JavaScript
   --------------------------------------------------------------------------
   SOMMAIRE
   1.  Variables de couleurs et réglages globaux
   2.  Base (typographie, titres, liens)
   3.  Conteneurs et sections
   4.  Boutons
   5.  Badges et pictogrammes
   6.  Barre d'accueil + Header + Navigation
   7.  Hero (grande image d'accueil)
   8.  Blocs de contenu (intro, split image/texte)
   9.  Bande chiffres clés
   10. Grilles de cartes
   11. Timeline (méthode de travail)
   12. Galerie réalisations
   13. Zone d'intervention / villes
   14. Infos pratiques (coordonnées + horaires)
   15. Bloc d'appel à l'action
   16. Footer
   17. Page Mentions légales
   18. Responsive (tablette / mobile)
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES DE COULEURS ET RÉGLAGES GLOBAUX
   Modifiez ces valeurs pour changer l'ambiance de tout le site.
   ========================================================================== */
:root {
  /* Couleurs principales */
  --blanc-casse:  #faf7f2;   /* fond clair principal */
  --beige:        #f2ebe0;   /* fond alterné, beige clair */
  --beige-fonce:  #e6dbcb;   /* bordures douces */
  --bois:         #8a5f3d;   /* brun bois naturel */
  --anthracite:   #1f1e1b;   /* noir doux */
  --vert-foret:   #2e3a31;   /* vert foncé nordique */
  --sauge:        #7f8f77;   /* vert sauge discret */
  --bleu-nuit:    #26333f;   /* bleu froid très subtil */
  --cuivre:       #b08a55;   /* touche premium dorée / cuivre */

  /* Textes */
  --texte:        #2b2724;
  --texte-doux:   #6d665f;
  --texte-clair:  #f6f1e9;

  /* Mise en page */
  --largeur-max:  1180px;
  --radius:       18px;
  --radius-petit: 12px;
  --ombre:        0 12px 34px rgba(31, 30, 27, .08);
  --ombre-forte:  0 18px 48px rgba(31, 30, 27, .14);
  --transition:   .25s ease;
}

/* Remise à zéro simple */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }


/* ==========================================================================
   2. BASE : TYPOGRAPHIE, TITRES, LIENS
   ========================================================================== */
body {
  margin: 0;
  background: var(--blanc-casse);
  color: var(--texte);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.18;
  color: var(--anthracite);
  margin: 0 0 .6em;
  letter-spacing: .2px;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

a { color: var(--bois); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cuivre); }

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

ul { margin: 0 0 1.1em; padding-left: 1.1em; }
li { margin-bottom: .35em; }

/* Petit texte en majuscules placé au-dessus des titres */
.surtitre {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cuivre);
  margin-bottom: .9em;
}
.surtitre::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--cuivre);
  vertical-align: middle;
  margin-right: 10px;
}

/* Chapeau de section (texte d'introduction) */
.chapeau {
  font-size: 1.06rem;
  color: var(--texte-doux);
  max-width: 760px;
}

.centre { text-align: center; }
.centre .chapeau { margin-left: auto; margin-right: auto; }
.centre .surtitre::before { display: none; }


/* ==========================================================================
   3. CONTENEURS ET SECTIONS
   ========================================================================== */
.conteneur {
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding-block: clamp(56px, 8vw, 100px); }

/* Fonds alternés pour aérer la page */
.section--beige   { background: var(--beige); }
.section--sable   { background: linear-gradient(180deg, var(--blanc-casse), var(--beige)); }
.section--sauge   { background: #eef0ea; }
.section--sombre  { background: var(--vert-foret); color: var(--texte-clair); }
.section--sombre h2,
.section--sombre h3 { color: #fff; }
.section--sombre .chapeau { color: rgba(246, 241, 233, .82); }

/* En-tête de section */
.entete-section { margin-bottom: clamp(32px, 4vw, 52px); }


/* ==========================================================================
   4. BOUTONS
   Boutons simples : téléphone, e-mail, devis, rendez-vous.
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}

/* Bouton principal : bois / cuivre */
.btn--principal {
  background: var(--bois);
  color: #fff;
  box-shadow: 0 10px 24px rgba(138, 95, 61, .26);
}
.btn--principal:hover { background: #714c30; color: #fff; transform: translateY(-2px); }

/* Bouton secondaire : contour clair (sur image ou fond sombre) */
.btn--clair {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--clair:hover { background: #fff; color: var(--anthracite); }

/* Bouton secondaire sur fond clair */
.btn--contour {
  background: transparent;
  border-color: var(--beige-fonce);
  color: var(--anthracite);
}
.btn--contour:hover { border-color: var(--bois); color: var(--bois); }

/* Bouton sombre */
.btn--sombre { background: var(--vert-foret); color: #fff; }
.btn--sombre:hover { background: var(--anthracite); color: #fff; }

/* Petit bouton (header) */
.btn--petit { padding: 11px 20px; font-size: .86rem; }

/* Groupe de boutons */
.groupe-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.centre .groupe-btn { justify-content: center; }


/* ==========================================================================
   5. BADGES ET PICTOGRAMMES
   ========================================================================== */
.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--beige-fonce);
  color: var(--texte);
  font-size: .88rem;
  font-weight: 500;
}
.badge--accent {
  background: rgba(176, 138, 85, .12);
  border-color: rgba(176, 138, 85, .35);
  color: #7d5f33;
  font-weight: 600;
}

.liste-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.liste-badges li { margin: 0; }

/* Pictogramme CSS simple : pastille avec un losange (aucune image requise) */
.picto {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(176, 138, 85, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.picto::after {
  content: "";
  width: 13px;
  height: 13px;
  background: var(--cuivre);
  transform: rotate(45deg);
  border-radius: 3px;
}
.section--sombre .picto { background: rgba(255, 255, 255, .1); }


/* ==========================================================================
   6. BARRE D'ACCUEIL + HEADER + NAVIGATION
   ========================================================================== */

/* Barre humaine au-dessus du menu : accueil par les gérants + coordonnées */
.barre-accueil {
  background: var(--vert-foret);
  color: rgba(246, 241, 233, .9);
  font-size: .85rem;
}
.barre-accueil .conteneur {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 22px;
  padding-block: 9px;
}
.barre-accueil a { color: #fff; font-weight: 500; }
.barre-accueil a:hover { color: var(--cuivre); }
.barre-accueil__contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Header principal */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beige-fonce);
}
.entete .conteneur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}

/* Logo texte */
.logo { display: block; line-height: 1.1; }
.logo__nom {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--anthracite);
}
.logo__sous {
  display: block;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin-top: 2px;
}

/* Menu de navigation */
.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--texte);
  font-size: .89rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--bois); border-bottom-color: var(--bois); }


/* ==========================================================================
   7. HERO (grande image d'accueil)
   Pour changer la photo : modifiez l'URL dans background-image ci-dessous.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding-block: clamp(70px, 10vw, 120px);
  color: #fff;
  background-color: var(--vert-foret);
  background-image:
    linear-gradient(105deg, rgba(24, 28, 24, .86) 0%, rgba(30, 36, 30, .62) 52%, rgba(30, 36, 30, .34) 100%),
    url("https://images.unsplash.com/photo-1713270232684-b63930585172?auto=format&fit=crop&w=1900&q=80");
  background-size: cover;
  background-position: center;
}
.hero__contenu { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__texte {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .9);
  max-width: 620px;
  margin-bottom: 1.8em;
}
.hero .surtitre { color: #e2c79a; }
.hero .surtitre::before { background: #e2c79a; }

/* Petite phrase d'accueil humaine dans le hero */
.hero__accueil {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  font-size: .9rem;
  color: #fff;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero__accueil span.pastille {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cuivre);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}

/* Bande de mots-clés sous les boutons du hero */
.hero__mentions {
  margin-top: 30px;
  font-size: .84rem;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .82);
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-top: 18px;
  max-width: 680px;
}


/* ==========================================================================
   8. BLOCS DE CONTENU (intro, split image / texte)
   ========================================================================== */

/* Deux colonnes : texte + image */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 66px);
  align-items: center;
}
.split--inverse .split__media { order: -1; }

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--ombre);
}

/* Encart mis en avant (fond doux + bordure gauche) */
.encart {
  background: #fff;
  border-left: 3px solid var(--cuivre);
  border-radius: var(--radius-petit);
  padding: 20px 24px;
  box-shadow: var(--ombre);
  font-size: .98rem;
  color: var(--texte-doux);
  margin-top: 26px;
}
.encart strong { color: var(--texte); }


/* ==========================================================================
   9. BANDE CHIFFRES CLÉS
   ========================================================================== */
.chiffres {
  background: var(--anthracite);
  color: var(--texte-clair);
  padding-block: clamp(36px, 5vw, 54px);
}
.chiffres__grille {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  text-align: center;
}
.chiffre__valeur {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}
.chiffre__label {
  font-size: .83rem;
  letter-spacing: .06em;
  color: rgba(246, 241, 233, .7);
  text-transform: uppercase;
}


/* ==========================================================================
   10. GRILLES DE CARTES
   ========================================================================== */
.grille {
  display: grid;
  gap: 22px;
}
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
.grille--5 { grid-template-columns: repeat(5, 1fr); }

.carte {
  background: #fff;
  border: 1px solid var(--beige-fonce);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--ombre);
  transition: transform var(--transition), box-shadow var(--transition);
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-forte); }
.carte h3 { margin-bottom: .4em; font-size: 1.2rem; }
.carte p { margin: 0; color: var(--texte-doux); font-size: .96rem; }

/* Carte sur fond sombre */
.section--sombre .carte {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: none;
}
.section--sombre .carte p { color: rgba(246, 241, 233, .78); }

/* Carte avec image en haut */
.carte--image { padding: 0; overflow: hidden; }
.carte--image img { width: 100%; height: 210px; object-fit: cover; }
.carte--image .carte__texte { padding: 22px 24px 26px; }


/* ==========================================================================
   11. TIMELINE (méthode de travail)
   ========================================================================== */
.etapes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  counter-reset: etape;
}
.etapes li {
  position: relative;
  background: #fff;
  border: 1px solid var(--beige-fonce);
  border-radius: var(--radius-petit);
  padding: 22px 20px 20px;
  font-weight: 500;
  font-size: .97rem;
  margin: 0;
  box-shadow: var(--ombre);
}
.etapes li::before {
  counter-increment: etape;
  content: "0" counter(etape);
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  color: var(--cuivre);
  margin-bottom: 6px;
}


/* ==========================================================================
   12. GALERIE RÉALISATIONS
   ========================================================================== */
.mention-images {
  font-size: .82rem;
  color: var(--texte-doux);
  font-style: italic;
  margin-top: 22px;
}


/* ==========================================================================
   13. ZONE D'INTERVENTION / VILLES
   ========================================================================== */
.zone__villes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}
.zone__villes li {
  margin: 0;
  background: #fff;
  border: 1px solid var(--beige-fonce);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .88rem;
  color: var(--texte);
}
.zone__departements {
  margin-top: 22px;
  font-size: .93rem;
  color: var(--texte-doux);
}


/* ==========================================================================
   14. INFOS PRATIQUES (coordonnées + horaires)
   ========================================================================== */
.infos {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 46px);
}
.bloc-info {
  background: #fff;
  border: 1px solid var(--beige-fonce);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--ombre);
}
.bloc-info h3 { margin-bottom: .7em; }

.adresse { font-style: normal; line-height: 1.9; margin-bottom: 18px; }
.adresse strong { display: block; letter-spacing: .06em; }

.contact-direct { margin: 0 0 20px; padding: 0; list-style: none; }
.contact-direct li { margin-bottom: 6px; }
.contact-direct a { font-weight: 600; font-size: 1.05rem; }

/* Tableau des horaires (liste simple, pas de tableau HTML complexe) */
.horaires { list-style: none; margin: 0; padding: 0; }
.horaires li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--beige-fonce);
  font-size: .95rem;
  margin: 0;
}
.horaires li:last-child { border-bottom: 0; }
.horaires span:first-child { font-weight: 600; }
.horaires span:last-child { color: var(--texte-doux); text-align: right; }
.horaires .ferme { color: #a2564a; }


/* ==========================================================================
   15. BLOC D'APPEL À L'ACTION
   ========================================================================== */
.cta-final {
  background-color: var(--bleu-nuit);
  background-image:
    linear-gradient(100deg, rgba(24, 32, 39, .93), rgba(38, 51, 63, .78)),
    url("https://images.unsplash.com/photo-1708630283392-678476d547f8?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.cta-final h2 { color: #fff; }
.cta-final .chapeau { color: rgba(255, 255, 255, .85); margin-left: auto; margin-right: auto; }

/* Bloc avis Google, volontairement sobre */
.bloc-avis {
  background: #fff;
  border: 1px solid var(--beige-fonce);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 46px);
  box-shadow: var(--ombre);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.etoiles {
  color: var(--cuivre);
  letter-spacing: .3em;
  font-size: 1.1rem;
  margin-bottom: 14px;
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.pied {
  background: var(--anthracite);
  color: rgba(246, 241, 233, .74);
  padding-top: clamp(48px, 6vw, 72px);
  font-size: .93rem;
}
.pied a { color: rgba(246, 241, 233, .74); }
.pied a:hover { color: var(--cuivre); }
.pied h4 {
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.1em;
}
.pied .logo__nom { color: #fff; }

.pied__grille {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 8px; }

.reseaux { display: flex; gap: 10px; margin-top: 14px; }
.reseaux a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: .84rem;
}
.reseaux a:hover { border-color: var(--cuivre); }

.pied__bas {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: .85rem;
}
.pied__signature { color: rgba(246, 241, 233, .6); }
.pied__signature strong { color: #fff; font-weight: 600; }


/* ==========================================================================
   17. PAGE MENTIONS LÉGALES
   ========================================================================== */
.page-titre {
  background: var(--vert-foret);
  color: #fff;
  padding-block: clamp(56px, 8vw, 92px);
  text-align: center;
}
.page-titre h1 { color: #fff; margin-bottom: .2em; }
.page-titre p { color: rgba(255, 255, 255, .8); margin: 0; }

.contenu-legal { max-width: 860px; margin: 0 auto; }
.contenu-legal h2 {
  font-size: 1.6rem;
  margin-top: 2em;
  padding-bottom: .3em;
  border-bottom: 1px solid var(--beige-fonce);
}
.contenu-legal h2:first-of-type { margin-top: 0; }
.contenu-legal address { font-style: normal; line-height: 1.9; }


/* ==========================================================================
   18. RESPONSIVE (tablette / mobile)
   ========================================================================== */

/* Grands écrans intermédiaires */
@media (max-width: 1080px) {
  .grille--5 { grid-template-columns: repeat(3, 1fr); }
  .grille--4 { grid-template-columns: repeat(2, 1fr); }
  .chiffres__grille { grid-template-columns: repeat(3, 1fr); }
  .etapes { grid-template-columns: repeat(3, 1fr); }
  .pied__grille { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* Tablette */
@media (max-width: 900px) {
  .entete .conteneur { flex-wrap: wrap; justify-content: center; text-align: center; }
  .nav { order: 3; width: 100%; }
  .nav ul { justify-content: center; gap: 4px 16px; }
  .nav a { font-size: .85rem; }

  .split, .infos { grid-template-columns: 1fr; }
  .split--inverse .split__media { order: 0; }
  .split__media img { min-height: 260px; }

  .grille--3, .grille--5 { grid-template-columns: repeat(2, 1fr); }
  .etapes { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 620px) {
  body { font-size: 16px; }

  .barre-accueil .conteneur { justify-content: center; text-align: center; }
  .barre-accueil__intro { display: none; } /* on garde uniquement les contacts sur petit écran */

  .hero { min-height: 0; text-align: left; }
  .hero__accueil { font-size: .82rem; }

  .grille--2, .grille--3, .grille--4, .grille--5,
  .etapes, .chiffres__grille, .pied__grille { grid-template-columns: 1fr; }

  .carte { padding: 24px 22px; }
  .carte--image img { height: 190px; }

  .groupe-btn { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .btn--petit { width: auto; }

  .horaires li { flex-direction: column; gap: 2px; }
  .horaires span:last-child { text-align: left; }

  .pied__bas { flex-direction: column; }
}

/* Confort de lecture pour les personnes sensibles aux animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carte:hover, .btn:hover { transform: none; }
}
