/* ==========================================================================
   Chez Raymonde — feuille de style
   Charte : rouge #bd2132 (accent) sur fond crème #f4f1ea.
   ========================================================================== */

/* Police display auto-hébergée (version DEMO — à licencier/remplacer avant prod). */
@font-face {
  font-family: "CS Abuela";
  src: url("/assets/fonts/CSAbuela-Regular_demo.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --rouge: #bd2132;
  --rouge-fonce: #9c1a28;
  --creme: #f4f1ea;
  --creme-fonce: #e7e1d4;
  --texte: #2a2a2a;
  --texte-doux: #55504a;
  --blanc: #ffffff;

  --font-titre: "CS Abuela", Georgia, "Times New Roman", serif;
  --font-corps: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --largeur-max: 960px;
  --rayon: 10px;
  --ombre: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* --- Base ----------------------------------------------------------------- */

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

/* L'attribut `hidden` doit toujours l'emporter sur les règles `display`
   (ex. .alert-banner{display:flex}, .btn{display:inline-block}). */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* compense le header collant lors des ancres */
}

body {
  margin: 0;
  background-color: var(--creme);
  color: var(--texte);
  font-family: var(--font-corps);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rouge-fonce);
}

h1,
h2,
h3 {
  font-family: var(--font-titre);
  font-weight: 400;
  line-height: 1.15;
  color: var(--rouge);
  letter-spacing: 0.01em;
}

.container {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* Accessibilité : focus visible net sur tous les éléments interactifs. */
:focus-visible {
  outline: 3px solid var(--rouge);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 200;
  background: var(--rouge);
  color: var(--blanc);
  padding: 0.6rem 1rem;
  border-radius: var(--rayon);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0.75rem;
}

/* --- Boutons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  min-height: 44px;
  border-radius: var(--rayon);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--rouge);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn--primary {
  background: var(--rouge);
  color: var(--blanc);
}
.btn--primary:hover {
  background: var(--rouge-fonce);
  border-color: var(--rouge-fonce);
}
.btn--outline {
  background: transparent;
  color: var(--rouge-fonce);
}
.btn--outline:hover {
  background: var(--rouge);
  color: var(--blanc);
}
.btn:active {
  transform: translateY(1px);
}
.btn--small {
  padding: 0.45rem 0.9rem;
  min-height: 40px;
  font-size: 0.9rem;
}

/* --- Bannière d'alerte ---------------------------------------------------- */

.alert-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  background: var(--rouge);
  color: var(--blanc);
  padding: 0.75rem 1.25rem;
  text-align: center;
}
.alert-banner__text {
  margin: 0;
  font-weight: 600;
}
.alert-banner__close {
  flex: none;
  background: transparent;
  border: 2px solid transparent;
  color: var(--blanc);
  font-size: 1.5rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}
.alert-banner__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* --- En-tête -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--creme);
  border-bottom: 1px solid var(--creme-fonce);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.6rem;
}
.site-header__logo-img {
  height: 52px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
}
.site-nav__list,
.site-nav__socials {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list {
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-nav__socials {
  gap: 0.25rem;
}
.site-nav a {
  color: var(--texte);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.2rem;
  display: inline-block;
}
.site-nav a:hover {
  color: var(--rouge);
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--rouge);
}
.social-icon svg {
  width: 24px;
  height: 24px;
}
.social-icon:hover {
  color: var(--rouge-fonce);
}

/* Bouton burger (masqué sur desktop, affiché en responsive) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--texte);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars {
  position: relative;
}
.nav-toggle__bars::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
}
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

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

.hero {
  padding-block: 2.5rem 1rem;
  text-align: center;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin: 0 0 0.5rem;
}
.hero__subtitle {
  font-size: 1.2rem;
  color: var(--texte-doux);
  margin: 0 auto 1.25rem;
  max-width: 40ch;
}
.hero__phone {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--texte);
}
.hero__phone strong {
  color: var(--rouge-fonce);
  white-space: nowrap;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.reserve-phone {
  font-size: 1.1rem;
}
.reserve-phone strong {
  color: var(--rouge-fonce);
  white-space: nowrap;
}
.hero__image {
  width: 100%;
  max-width: 640px;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  margin-inline: auto;
  display: block;
}

.open-status {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.open-status[data-state="open"] {
  background: #1f7a3d;
  color: var(--blanc);
}
.open-status[data-state="closed"] {
  background: var(--creme-fonce);
  color: var(--texte);
}

/* --- Sections ------------------------------------------------------------- */

.section {
  padding-block: 2.75rem;
}
.section--accent {
  background: var(--creme-fonce);
}
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 1rem;
}
.section__note {
  color: var(--texte-doux);
  font-size: 0.95rem;
}
.section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1rem;
}

/* --- Horaires ------------------------------------------------------------- */

.hours {
  border-collapse: collapse;
  width: 100%;
  max-width: 480px;
  background: var(--blanc);
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
}
.hours th,
.hours td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--creme-fonce);
}
.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: 0;
}
.hours th {
  font-weight: 600;
  width: 40%;
}

/* --- Adresse & carte ------------------------------------------------------ */

.address {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.7;
}
.map {
  margin-top: 1.25rem;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  background: var(--blanc);
}
.map__consent {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  min-height: 220px;
  padding: 1.5rem;
  border: 2px dashed var(--rouge);
  border-radius: var(--rayon);
  background: var(--creme);
  color: var(--texte);
  align-items: center;
  justify-content: center;
  text-align: center;
}
.map__consent-title {
  font-weight: 700;
  color: var(--rouge-fonce);
  font-size: 1.05rem;
}
.map__consent-note {
  font-size: 0.9rem;
  color: var(--texte-doux);
  max-width: 40ch;
}
.map__frame {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

/* --- Bandeau de consentement cookies ------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  background: var(--texte);
  color: var(--blanc);
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.25);
}
.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
/* Bouton « Refuser » : d'égale importance visuelle que « Accepter » (exigence CNIL). */
.cookie-banner__btn {
  background: transparent;
  color: var(--blanc);
  border-color: var(--blanc);
}
.cookie-banner__btn:hover {
  background: var(--blanc);
  color: var(--texte);
}

/* --- Réseaux & contact ---------------------------------------------------- */


/* --- Pied de page --------------------------------------------------------- */

.site-footer {
  background: var(--rouge);
  color: var(--blanc);
  padding-block: 1.75rem;
  margin-top: 1rem;
}
.site-footer a {
  color: var(--blanc);
}
.site-footer__legal {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0;
}

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

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--creme);
    border-bottom: 1px solid var(--creme-fonce);
    box-shadow: var(--ombre);
    padding: 1rem 1.25rem;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.25rem;
  }
  .site-nav a {
    padding: 0.5rem 0;
  }
  .site-nav__socials {
    margin-top: 0.25rem;
  }
}

/* --- Préférences de mouvement -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
