/* Poil & Toilette - Feuille de styles moderne et dynamique */
@import url('https://fonts.googleapis.com/css2?family=Petrona:wght@500;600;700&family=Karla:wght@400;500;700&display=swap');

:root {
  --primary: #5C7A8A;
  --primary-dark: #4A6674;
  --primary-light: #7A96A5;
  --secondary: #E0954F;
  --secondary-bg: #F2ECE2;
  --accent: #E0954F;
  --text-dark: #22282C;
  --text-muted: #77828A;
  --bg-light: #FAF6EF;
  --bg-card: #FFFFFF;
  --border-color: #E3DBCF;

  /* Alias sémantiques de la direction artistique */
  --on-primary: #FFFFFF;
  --secondary-hover: #C87F3D;
  --light-color: #FAF6EF;
  --dark-color: #22282C;
  --surface: #FFFFFF;
  --text-secondary: #4B565D;
  --text-strong: #12171A;
  --text-faint: #C7C2B9;
  --fill: #F2ECE2;
  --border: #E3DBCF;
  --gray-100: #F2ECE2;
  --gray-200: #E3DBCF;
  --gray-300: #C7C2B9;
  --gray-600: #77828A;
  --gray-800: #22282C;
  --callout-bg: #FBF0E2;
  --callout-text: #8A5A22;
  --callout-border: #E8CFAC;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(92, 122, 138, 0.06);
  --shadow-md: 0 8px 24px rgba(92, 122, 138, 0.1);
  --shadow-lg: 0 16px 38px rgba(92, 122, 138, 0.15);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Petrona', serif;
  font-weight: 700;
  color: var(--text-strong, #12171A);
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Animations Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  /* La barre tient sur une seule ligne : rien ne passe à la ligne, et c'est
     l'écart entre les blocs qui se resserre en premier quand la place manque. */
  flex-wrap: nowrap;
  gap: clamp(14px, 1.8vw, 32px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Petrona', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--primary-dark);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #FFF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(92, 122, 138, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 28px);
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}


/* Logo réel — remplace le pictogramme de secours dans le header et le footer */
.logo-img { height: 34px; width: auto; display: block; flex-shrink: 0; }
.footer-brand .logo-img { height: 40px; }
@media (max-width: 480px) { .logo-img { height: 28px; } }

/* Sous-menu Outils — ouverture au survol ET au focus clavier, sans JavaScript */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.is-current .nav-dropdown-toggle {
  color: var(--primary);
}

.nav-caret {
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 320px;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Pont invisible : évite la fermeture quand la souris traverse l'espace */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 16px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-dropdown-menu a:hover {
  background: var(--secondary-bg);
}

.ndm-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.nav-dropdown-menu a:hover .ndm-label {
  color: var(--primary);
}

.ndm-desc {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #FFF;
  box-shadow: 0 4px 14px rgba(92, 122, 138, 0.25);
}

.btn-primary:hover {
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(92, 122, 138, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--secondary-bg);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: #FFF;
}

.btn-accent:hover {
  color: #FFF;
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Bouton d'action du header : libellé explicite, raccourci quand la barre se resserre */
.header-cta-btn { padding: 9px 18px; font-size: 0.88rem; white-space: nowrap; }
.header-cta-btn .cta-short { display: none; }
@media (max-width: 1320px) {
  .header-cta-btn .cta-long  { display: none; }
  .header-cta-btn .cta-short { display: inline; }
}
@media (max-width: 400px) {
  .header-cta-btn { padding: 9px 12px; }
  .header-cta-btn .cta-short { font-size: 0.82rem; }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 90px;
  background: linear-gradient(160deg, #F2ECE2 0%, #FAF6EF 50%, #F2ECE2 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Search Box Hero */
.search-card {
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(92, 122, 138, 0.1);
}

.search-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.input-group {
  flex: 1;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
}

.input-group i {
  position: absolute;
  left: 16px;
  color: var(--primary);
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-light);
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--primary);
  background: #FFF;
  box-shadow: 0 0 0 4px rgba(92, 122, 138, 0.12);
}

/* Menu déroulant — composant autonome.
   Le chevron natif diffère à chaque navigateur et ignore la charte : on le
   remplace par le même que celui du menu de navigation. La flèche vit dans
   background-image, donc toute règle qui repose la propriété `background` en
   raccourci l'effacerait : sur ces champs, n'écrire que `background-color`. */
.select-field {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 14px 46px 14px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235C7A8A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 13px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  /* Certains libellés d'option sont longs : on coupe proprement plutôt que
     de laisser le champ déborder de sa colonne sur petit écran. */
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.select-field:hover {
  border-color: var(--primary-light);
  background-color: #FFF;
}

.select-field:focus-visible {
  border-color: var(--primary);
  background-color: #FFF;
  box-shadow: 0 0 0 4px rgba(92, 122, 138, 0.12);
}

.select-field:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Le champ ouvert n'est pas stylable, mais la liste hérite au moins de la
   couleur du texte au lieu du noir système. */
.select-field option {
  color: var(--text-dark);
  background-color: #FFF;
}

/* Intitulé au-dessus du champ, commun au simulateur et aux formulaires. */
.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.hero-image-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-badge-floating {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--bg-card);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border-color);
}

/* Sections Global */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--secondary-bg);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Grid Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}

/* Salon Card Specifics */
.salon-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.salon-badge {
  background: var(--secondary-bg);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.salon-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #E0954F;
  font-weight: 700;
}

.salon-address {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.salon-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.feature-pill {
  font-size: 0.8rem;
  background: #F2ECE2;
  padding: 4px 10px;
  border-radius: 50px;
  color: #4B565D;
}

.price-tag {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* Tables */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.guide-table th,
.guide-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.guide-table th {
  background: var(--secondary-bg);
  color: var(--primary-dark);
  font-family: 'Petrona', sans-serif;
  font-weight: 700;
}

/* Calculator Widget */
.calc-box {
  background: #FFF;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.calc-option-group {
  margin-bottom: 20px;
}

.calc-option-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.calc-result-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #FFF;
  padding: 32px;
  border-radius: var(--radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-price-big {
  font-size: 3rem;
  font-weight: 800;
  margin: 12px 0;
  font-family: 'Petrona', sans-serif;
  color: var(--secondary);
}

/* Footer */
.site-footer {
  background: #22282C;
  color: #B9B2A6;
  padding: 70px 0 30px;
  border-top: 1px solid #343A3E;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin-bottom: 50px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-links a svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.footer-brand .logo {
  color: #FFF;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #FFF;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #B9B2A6;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #FFF;
}

/* Bandeau villes : maillage interne compact, sous les colonnes */
.footer-cities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-top: 26px;
  border-top: 1px solid #343A3E;
  font-size: 0.9rem;
}

.footer-cities-label {
  font-weight: 700;
  color: #FFF;
  margin-right: 4px;
}

.footer-cities a {
  color: #B9B2A6;
}

.footer-cities a:hover {
  color: #FFF;
}

.footer-cities-all {
  font-weight: 600;
  color: #D6CFC3 !important;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 26px;
  border-top: 1px solid #343A3E;
  font-size: 0.88rem;
}

/* Compteur d'entrées dans le sous-menu Ressources */
.ndm-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 50px;
  background: var(--secondary-bg);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

/* Responsiveness */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
  }
  .nav-links {
    gap: 20px;
  }
}

/* Dernier cran avant le passage au menu déroulant : ce sont les pictogrammes
   qui cèdent la place, jamais les libellés — cinq icônes valent une centaine
   de pixels. Borné par le bas : dans le menu mobile, la place ne manque pas. */
@media (min-width: 993px) and (max-width: 1200px) {
  .nav-links > a > i,
  .nav-dropdown-toggle > i {
    display: none;
  }
  .nav-links > a,
  .nav-dropdown-toggle {
    gap: 0;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .search-form {
    flex-direction: column;
  }
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Sous 992 px, cinq entrées de navigation, le logo et le bouton d'appel ne
   tiennent plus côte à côte : la navigation passe au menu déroulant plutôt
   que de couper ses libellés en deux lignes. */
@media (max-width: 992px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
      margin: 0;
    background: #FFF;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  /* Sur mobile, le sous-menu Outils est déplié en permanence : rien à ouvrir,
     rien qui puisse rester bloqué fermé. */
  .nav-dropdown {
    display: block;
    width: 100%;
  }
  .nav-dropdown-toggle {
    display: none;
  }
  .nav-dropdown::after {
    display: none;
  }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    padding: 12px 0 0;
    margin-top: 6px;
  }
  .nav-dropdown-menu a {
    padding: 8px 0;
  }
  .ndm-desc {
    display: none;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}