/* ========================================================================== */
/*  Idiri Coaching — Theme CSS                                                */
/*  TABLE DES MATIÈRES                                                        */
/*    0) Variables & Reset                                                    */
/*    1) Typographie                                                          */
/*    2) Layout global (topbar, container, footer, sticky)                    */
/*    3) Navigation (liens, nav, burger)                                      */
/*    4) Composants génériques (cards, boutons, badges, flash)                */
/*    5) Tableaux                                                             */
/*    6) Formulaires (wrappers, champs, grilles)                              */
/*    7) Dashboards (slots, états)                                            */
/*    8) Sections “Home” (hero, cards vitrines)                               */
/*    9) Carousel (Nadia + Sabrina)                                           */
/*   10) Bloc social (footer social)                                          */
/*   11) Page Services                                                        */
/*   11b) Pages coach (Nadia / Sabrina)                                       */
/*   12) Divers utilitaires                                                   */
/*   13) Media Queries                                                        */
/* ========================================================================== */


/* ========================================================================== */
/* 0) VARIABLES & RESET                                                       */
/* ========================================================================== */

:root {
  /* Couleurs thème */
  --bg:    #4f3535;
  --card:  #5b4040;
  --text:  #ffffff;
  --muted: #e8d9d9;

  /* Dimensions */
  --header-h: 64px;

  /* Fonts */
  --font-heading: "Barlow Condensed", ui-sans-serif, system-ui, -apple-system,
                  "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  --font-body:    "Outfit", ui-sans-serif, system-ui, -apple-system,
                  "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background-color: #2a2323; /* fallback sous l'image */
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Image de fond globale */
  background-image:
    linear-gradient(rgba(78, 60, 60, 0.8), rgba(78, 60, 60, 0.8)),
    url("../assets/images/imageNadia/photoNadia13.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Sticky layout: réserve la place de la topbar fixe */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
}


/* ========================================================================== */
/* 1) TYPOGRAPHIE                                                             */
/* ========================================================================== */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
  text-transform: none;
}


/* ========================================================================== */
/* 2) LAYOUT GLOBAL (topbar, container, footer, sticky)                       */
/* ========================================================================== */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

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

.brand-text {
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
}

.container {
  flex: 1 0 auto;
  max-width: clamp(960px, 90vw, 1400px);
  margin: 30px auto;
  padding: 0 16px;
}

.footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
}


/* ========================================================================== */
/* 3) NAVIGATION (liens, nav, burger)                                         */
/* ========================================================================== */

/* Liens globaux */
a {
  color: #dee8ed;
  text-decoration: underline;
}

a:visited {
  color: #4ed6b2;
}

a:hover,
a:focus {
  color: #f59e0b;
  text-decoration: underline;
}

a:active {
  color: #ef4444;
}

/* Liens dans la topbar (menu) */
.nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 12px;
  line-height: var(--header-h);
}

.nav a:hover,
.nav a:focus {
  color: #fff;
}

/* Burger (mobile) */
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle .burger-line {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  margin: 5px 0;
}


/* ========================================================================== */
/* 4) COMPOSANTS GÉNÉRIQUES (cards, boutons, badges, flash)                   */
/* ========================================================================== */

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-actions {
  margin-top: auto;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: #6b4a4a;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-family: var(--font-body);
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-primary {
  background: #b8736b;
  border-color: rgba(255, 255, 255, 0.18);
}

.inline {
  display: inline;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: #7a5b5b;
  color: #fff;
  font-size: 0.85rem;
}

.badge.ok {
  background: #2e7d32;
}

.badge.warn {
  background: #a5670a;
}

/* Flash messages */
.flash {
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
}

.flash.success {
  background: #335c3a;
}

.flash.error {
  background: #7a3434;
}


/* ========================================================================== */
/* 5) TABLEAUX                                                                 */
/* ========================================================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  background: #3a2e2e;
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.table thead th {
  background: #4f3535;
}


/* ========================================================================== */
/* 6) FORMULAIRES (wrappers, champs, grilles)                                 */
/* ========================================================================== */

.form-wrap {
  background: #3d2a2c;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin: 18px auto;
  max-width: clamp(700px, 85vw, 1500px);
}

.form-wrap h1 {
  text-align: center;
  font-size: clamp(24px, 2.6vw, 38px);
  margin: 0 0 16px;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  font-weight: 600;
  display: grid;
  gap: 6px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #2b2122;
  color: #eee;
  outline: none;
  font-size: 1.05rem;
}

.form input:focus,
.form select:focus {
  border-color: #b8736b;
  box-shadow: 0 0 0 3px rgba(184, 115, 107, 0.25);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr 1fr;
}


/* ========================================================================== */
/* 7) DASHBOARDS (slots & états)                                              */
/* ========================================================================== */

.slots-container {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.slot {
  background: #3d2a2c;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.slot-time {
  font-weight: 700;
  font-size: 18px;
}

.slot-actions .btn {
  white-space: nowrap;
}

.available-slot {
  border: 1px solid #2e7d32;
}

.unavailable-slot {
  border: 1px solid #a5670a;
  opacity: 0.85;
}

.reserved-slot {
  border: 1px solid #7a3434;
  background: #4a2e2e;
}


/* ========================================================================== */
/* 8) SECTIONS “HOME” (hero + cards vitrines)                                 */
/* ========================================================================== */

.hero {
  padding: 48px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
  border-radius: 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 8px;
}

.hero .subtitle {
  color: var(--muted);
  margin: 0;
}

/* Grille de cartes vitrines */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));
  gap: 20px;
}

.card-img {
  border-radius: 12px;
  overflow: hidden;
}

.card-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}


/* ========================================================================== */
/* 9) CAROUSEL (NADIA + SABRINA)                                              */
/* ========================================================================== */

.carousel {
  position: relative;
  max-width: 1100px;
  margin: 24px auto;
}

.carousel-viewport {
  overflow-x: hidden;          /* on cache seulement en largeur */
  overflow-y: visible;         /* on laisse la hauteur respirer */
  border-radius: 14px;
  background: #261d1d;         /* fond en attendant le chargement */
}


.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
}

/* Images du carousel : responsive pour toutes les pages */
.carousel-slide img {
  width: 100%;
  margin: 0 20px;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Dégradés latéraux pour lisibilité des flèches */
.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent);
}

.carousel::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0.35), transparent);
}

/* Flèches */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 40px;
  line-height: 56px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: translateY(-50%) scale(1);
}

.carousel-btn.prev {
  left: 14px;
}

.carousel-btn.next {
  right: 14px;
}

.carousel-btn:focus-visible {
  outline: 3px solid #ffb4a9;
}

/* Points (indicateurs) */
.carousel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.carousel-dots .dot:hover {
  transform: scale(1.15);
}

.carousel-dots .dot.active {
  background: rgba(255, 255, 255, 0.95);
}


/* ========================================================================== */
/* 10) BLOC SOCIAL (footer social)                                            */
/* ========================================================================== */

.social-media {
  margin-top: 24px;
  padding: 18px 24px;
  background: var(--bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.social-media .social-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.social-media .name {
  font-weight: 700;
  color: var(--muted);
}

.social-media .icons a {
  display: inline-block;
  margin-right: 8px;
}

.social-media .icons img {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.social-media .logo {
  display: flex;
  flex-direction: column;   /* logo + icône en colonne */
  align-items: center;
  gap: 8px;                 /* espace entre logo et icône */
}

.social-media .logo img {
  height: 56px;
  display: block;
}

/* Icône Instagram du centre */
.social-media .logo a img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}



/* ========================================================================== */
/* 11) PAGE SERVICES                                                          */
/* ========================================================================== */

.service-container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 16px;
}

.service-container h1 {
  margin: 0 0 12px;
}

.service-section {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}

.service-section h2 {
  margin: 0 0 8px;
}

.eventservice {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin: 8px 0 14px;
}


/* ========================================================================== */
/* 11b) PAGES COACH (NADIA / SABRINA)                                         */
/* ========================================================================== */

.nadia-page,
.sabrina-page {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px 32px;
}

.nadia-header,
.sabrina-header {
  text-align: center;
  margin-bottom: 24px;
}

.nadia-header h1,
.sabrina-header h1 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 8px;
}

.nadia-header p,
.sabrina-header p {
  margin: 0;
  color: var(--muted);
}

.nadia-carousel,
.sabrina-carousel,
.nadia-services,
.sabrina-services,
.nadia-signup,
.sabrina-signup {
  margin-bottom: 24px;
}

/* Services (liste) */
.nadia-services ul,
.sabrina-services ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* Bloc CTA (inscription / connexion) */
.nadia-signup,
.sabrina-signup {
  text-align: center;
}

.nadia-signup p,
.sabrina-signup p {
  margin: 8px 0;
}

.signup-button {
  margin: 4px 8px;
}


/* ========================================================================== */
/* 12) DIVERS UTILITAIRES                                                     */
/* ========================================================================== */

/* Icône du datepicker (force blanche et visible) */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
  filter: invert(1) brightness(1.6) contrast(1.1);
  cursor: pointer;
}

/* Overlay global léger (peut être désactivé si besoin) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

/* Accueil : CTA centré */
.home-cta {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  margin: 16px auto 0;
  max-width: 560px;
}

.home-cta .btn {
  min-width: 200px;
  text-align: center;
  padding: 12px 18px;
  font-size: 1rem;
  color: white;
  text-decoration: none;
}

/* Pages d'erreur */
.error-page {
  text-align: center;
}

.error-title {
  font-size: clamp(22px, 3.2vw, 32px);
  margin: 4px 0 8px;
}

.error-message {
  color: var(--muted);
  margin: 0 0 12px;
}

.error-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.error-details {
  margin-top: 12px;
  text-align: left;
}

.error-details summary {
  cursor: pointer;
  opacity: 0.9;
}


/* ========================================================================== */
/* 13) MEDIA QUERIES                                                          */
/* ========================================================================== */

/* Grilles & layout responsive */
@media (max-width: 980px) {
  .slots-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  /* Menu burger */
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 56px;
    right: 12px;
    background: var(--bg);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    width: min(80vw, 320px);
    padding: 8px;
    z-index: 1000;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
}

@media (max-width: 720px) {
  .slots-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .slots-container {
    grid-template-columns: 1fr;
  }

  /* Carousel responsive */
  .carousel-viewport {
    border-radius: 12px;
  }

  .carousel-btn {
    width: 48px;
    height: 48px;
    font-size: 26px;
    line-height: 48px;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  .carousel-slide img {
    margin: 0 8px;
    max-height: 360px;
  }

  /* CTA Nadia / Sabrina : boutons l’un sous l’autre */
  .nadia-signup p,
  .sabrina-signup p {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .signup-button {
    width: 100%;
    max-width: 260px;
  }

  /* CTA home en colonne */
  .home-cta {
    flex-direction: column;
  }

  .home-cta .btn {
    width: 100%;
  }
}

/* Formulaire: bouton full-width sur mobile */
@media (max-width: 480px) {
  .form-actions {
    justify-content: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }
}
.container {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1400px;
  margin: 30px auto;
  padding: 0 16px;
}
