/* =========================================================
   ATELIER LOVÉ — feuille de style
   Charte stricte :
     jaune    #fecd50
     violet   #524a99
     lavande  #bdb5db
     rose     #f6bcce
     + blanc  #ffffff
   Typos (Adobe Typekit, kit cxj0gwz) :
     noka     → titres et badges
     lulo-one → menu / petites étiquettes capitalisées
     open-sans → corps + sous-titres
   Bordures pleines / pointillées violettes 3px entre sections,
   pas de border-radius sur les boutons et badges.
   ========================================================= */

:root {
  --yellow: #fecd50;
  --purple: #524a99;
  --lavender: #bdb5db;
  --pink: #f6bcce;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555555;

  --max-width: 1140px;
  --gutter: 1.5rem;
  --nav-height: 64px;
  --border-width: 3px;
  --transition: 0.3s ease;

  --font-body: "open-sans", "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "noka", "open-sans", sans-serif;
  --font-eyebrow: "lulo-one", "noka", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus { color: var(--pink); }

::selection { background: var(--yellow); }

p { margin: 0 0 1rem; }

/* Titres : noka, casse libre. Noka du kit existe en 300/500/600/800/900,
   donc on n'utilise jamais 400 (que le kit ne fournit pas — risque de
   fallback complet sur certains navigateurs). */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--purple);
}

/* --------- Container --------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Padding vertical unifié pour tout bloc de contenu :
   chaque section et le footer utilisent la même valeur de respiration.
   Les overrides (hero, etc.) sont plus bas. */
section > .container,
.footer > .container {
  padding: 75px var(--gutter);
}

/* --------- Section titles génériques --------- */
section h2 {
  margin: 0 0 15px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  color: var(--purple);
  text-align: center;
}

section h3 {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--purple);
  text-align: center;
}

@media (min-width: 768px) {
  section h2 { font-size: 55px; }
}

/* --------- Boutons (jamais de radius) --------- */
.btn {
  display: inline-block;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border: 0;
  border-radius: 0;
  background-color: var(--pink);
  color: var(--purple);
  cursor: pointer;
  transition: filter var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover,
.btn:focus {
  filter: brightness(0.95);
  color: var(--purple);
}

.btn-xl {
  padding: 18px 28px;
  font-size: 18px;
  font-weight: 600;
}

/* --------- Navigation --------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: var(--purple);
  padding: 10px 0;
  transition: background-color var(--transition), padding var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-brand .logo {
  height: 44px;
  width: auto;
  display: block;
}

/* Animation du pictogramme du logo (logotype) */
.logotype {
  animation: color_change_reverse 5s infinite alternate;
  transform-origin: center;
}

.logoname { fill: var(--yellow); }

@keyframes color_change_reverse {
  0%   { fill: var(--yellow); }
  25%  { fill: var(--pink); }
  50%  { fill: var(--lavender); }
  100% { fill: var(--yellow); }
}

/* Quick actions mobile (téléphone, carte) */
.nav-quick-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-quick-actions a {
  color: var(--white);
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: color var(--transition);
}

.nav-quick-actions a:hover { color: var(--yellow); }
.nav-quick-actions svg { width: 22px; height: 22px; display: block; }

.nav-menu {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0; align-items: center;
}

.nav-menu a {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--font-eyebrow);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pink);
}

.nav-menu a:hover,
.nav-menu a:focus { color: var(--yellow); }

/* Burger mobile (checkbox hack) */
.nav-toggle-checkbox { display: none; }

.nav-toggle {
  display: none;
  cursor: pointer;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 0;
  background-color: var(--yellow);
}

.nav-toggle span {
  position: relative;
  display: block; width: 22px; height: 2px;
  background-color: var(--white);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 22px; height: 2px;
  background-color: var(--white);
  transition: transform var(--transition);
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background-color: var(--purple);
    padding: 0.5rem 0; gap: 0;
    max-height: 0; overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav-menu a { display: block; padding: 14px 20px; }
  .nav-toggle-checkbox:checked ~ .nav .nav-menu { max-height: 80vh; overflow: auto; }
  .nav-toggle-checkbox:checked ~ .nav .nav-toggle span { background-color: transparent; }
  .nav-toggle-checkbox:checked ~ .nav .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-checkbox:checked ~ .nav .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }
}

@media (min-width: 768px) {
  .nav-brand .logo { height: 56px; }
  .nav-quick-actions { display: none; }
}

/* --------- Hero --------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  background-color: var(--purple);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/header_mobile.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.3);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero::before { background-image: url("../images/header.jpg"); }
  .hero { text-align: left; }
}

.hero-inner { max-width: 800px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 45px;
  margin: 0;
  color: var(--pink);
}

.hero .tagline {
  margin: 0 0 25px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: var(--lavender);
}

.hero-hours {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--yellow);
  background-color: var(--purple);
  padding: 15px;
  margin: 0 0 0.5rem;
  border-radius: 0;
  line-height: 1.2;
}

.hero-schedule {
  font-family: var(--font-body);
  color: var(--lavender);
  font-size: 18px;
  margin: 0 0 25px;
  line-height: 1.2;
}

.hero-schedule span {
  display: block;
  padding: 8px 0;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 75px;
    line-height: 75px;
  }
  .hero .tagline {
    font-size: 25px;
    font-weight: 300;
    letter-spacing: 0.8px;
    line-height: 40px;
    max-width: 600px;
    margin-bottom: 50px;
  }
  .hero-hours { font-size: 25px; }
  .hero-schedule { font-size: 22px; }
}

/* --------- Concept --------- */
#concept .container {
  border-right: dashed var(--border-width) var(--purple);
}

#concept .content {
  max-width: 400px;
  padding: 0 20px;
  margin-bottom: 75px;
}

#concept .content:last-child { margin-bottom: 0; }

#concept .content-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-bottom: 15px;
}

#concept .content-title .icon {
  color: var(--purple);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
}

#concept .content-title .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

#concept .content-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  color: var(--purple);
}

#concept .content p {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
}

@media (min-width: 768px) {
  #concept .content.padding-left { margin-left: 40%; }
}

/* --------- Interventions --------- */
#interventions {
  background-color: var(--lavender);
  border-top: solid var(--border-width) var(--purple);
  border-bottom: dashed var(--border-width) var(--purple);
}

#interventions .container {
  border-left: solid var(--border-width) var(--purple);
}

#interventions-content .container {
  border-right: solid var(--border-width) var(--purple);
}

.intervention-row {
  display: grid;
  gap: 75px 0;
  grid-template-columns: 1fr;
}

.intervention-row + .intervention-row {
  margin-top: 75px;
}

@media (min-width: 768px) {
  .intervention-row.is-2 { grid-template-columns: repeat(2, 1fr); }
  .intervention-row.is-3 { grid-template-columns: repeat(3, 1fr); }
  .intervention-row.is-offset-2 {
    grid-template-columns: 1fr 1fr;
    max-width: 66%;
    margin-left: auto;
    margin-right: auto;
  }
}

.intervention-item {
  padding: 0 40px;
}

.intervention-block {
  background-color: var(--pink); /* défaut */
  border-radius: 10px;
  padding: 5px 0;
}

.intervention-block.bg-yellow   { background-color: var(--yellow); }
.intervention-block.bg-purple   { background-color: var(--lavender); }

.intervention-block img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: dashed var(--border-width) var(--purple);
  transform: scale(1.1);
}

.intervention-caption {
  margin: 0 auto;
  padding: 15px 25px;
  text-align: center;
}

.intervention-caption h4 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  color: var(--text);
  text-transform: none;
}

.intervention-caption p.text-muted {
  margin: 0 0 10px;
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.intervention-caption p {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
}

@media (max-width: 991px) {
  .intervention-caption h4 { margin-top: 2rem; }
}

/* --------- Traces --------- */
#traces {
  background-color: var(--pink);
  border-top: dashed var(--border-width) var(--purple);
  border-bottom: solid var(--border-width) var(--purple);
}

#traces .container {
  border-left: solid var(--border-width) var(--purple);
}

#traces-content .container {
  border-right: dashed var(--border-width) var(--purple);
}

#traces-content .container p {
  font-size: 17px;
  margin: 0 0 75px;
}

#traces-content .container h4 {
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 600;
  color: var(--text);
  margin: 75px 0 1rem;
}

#traces-content .container h4:first-of-type { margin-top: 0; }

#traces-content .container iframe {
  display: block;
  width: 100%;
  min-height: 500px;
  border: 0;
  background-color: var(--white);
}

/* --------- Tarifs --------- */
#tarifs {
  background-color: var(--yellow);
  border-top: solid var(--border-width) var(--purple);
  border-bottom: dashed var(--border-width) var(--purple);
}

#tarifs .container {
  border-left: solid var(--border-width) var(--purple);
}

.tarifs-grid {
  display: grid;
  gap: 75px 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .tarifs-grid { grid-template-columns: repeat(2, 1fr); }
}

.tarif-table-wrapper + .tarif-table-wrapper {
  margin-top: 75px;
}

#tarifs-content h4 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--text);
  text-align: center;
}

.tarif-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 1rem;
}

.tarif-table.border-purple { border: 3px dashed var(--purple); }
.tarif-table.border-pink   { border: 3px dashed var(--pink); }
.tarif-table.border-yellow { border: 3px dashed var(--yellow); }

.tarif-table thead th {
  background-color: transparent;
  text-align: left;
  padding: 12px 15px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--purple);
  border-bottom: 1px solid rgba(82, 74, 153, 0.15);
}

.tarif-table thead th:last-child { text-align: right; }

.tarif-table tbody td {
  padding: 9px 15px;
  vertical-align: top;
  color: var(--text);
}

.tarif-table tbody td:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  color: var(--purple);
}

.tarif-table tbody tr:nth-child(odd) td { background-color: rgba(82, 74, 153, 0.04); }

/* --------- Contact --------- */
section#contact {
  position: relative;
  overflow: hidden;
}

section#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/header_mobile.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.4);
  z-index: 0;
}

@media (min-width: 768px) {
  section#contact::before { background-image: url("../images/header.jpg"); }
}

section#contact .container {
  position: relative;
  z-index: 1;
}

section#contact h2 { color: var(--pink); }
section#contact h3 { color: var(--lavender); }

.contact-form {
  max-width: 760px;
  margin: 75px auto 0;
  display: grid;
  gap: 25px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .contact-form .form-message,
  .contact-form .form-actions,
  .contact-form .form-status { grid-column: 1 / -1; }
}

.form-field { display: flex; flex-direction: column; }

.form-field label {
  font-family: var(--font-eyebrow);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea {
  padding: 10px 20px;
  border: 0;
  border-radius: 0;
  background-color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--purple);
  resize: vertical;
  transition: box-shadow var(--transition);
}

.form-field textarea { height: 236px; }

.form-field input::placeholder,
.form-field textarea::placeholder {
  font-family: var(--font-body);
  font-weight: 400;
  color: #aaa;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 0;
  box-shadow: 0 0 0 2px var(--yellow);
}

.form-actions { text-align: center; margin-top: 1rem; }

.honey {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-status {
  text-align: center;
  padding: 12px 20px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--purple);
}

.form-status[hidden] { display: none; }

.form-status.success {
  background-color: var(--yellow);
}

.form-status.error {
  background-color: var(--lavender);
}

/* --------- Footer --------- */
.footer {
  color: var(--white);
  background-color: var(--purple);
  font-family: var(--font-body);
}

.footer a { color: var(--white); }
.footer a:hover { color: var(--yellow); }

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
  }
}

.footer .social-buttons {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.footer .social-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  outline: 0;
  color: var(--purple);
  background-color: var(--lavender);
  transition: all 0.3s;
}

.footer .social-buttons a:hover,
.footer .social-buttons a:focus { background-color: var(--pink); color: var(--purple); }

.footer .social-buttons svg { width: 22px; height: 22px; }

.footer-map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 0;
}

.footer .copyright {
  font-family: var(--font-body);
  line-height: 40px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer .copyright { text-align: right; }
}

.footer-bottom {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.footer-bottom a { color: var(--white); }
.footer-bottom a:hover { color: var(--yellow); }

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