/*
Theme Name: Pool Party - DSP
Theme URI: https://capitainewp.io
Author: Lores MARNA
Description: Thème Pool Party (location d'espaces détente entre particuliers)
Requires at least: WordPress 5.0
Version: 1.0
*/

/* ==========================================================================
   TABLE DES MATIÈRES
   01. Reset & Bases
   02. Typographies globales
   03. Header (global, logo, menu, bouton)
   04. Section Hero
   05. Section KPIs
   06. Section Services
   07. Section Devenir Hôte
   08. Section Témoignages
   09. Footer
   10. Responsive
   ========================================================================== */


/* ==========================================================================
   01) RESET & BASES
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
  border: none;
  background: #fff; /* Couleur de fond globale */
}


/* ==========================================================================
   02) TYPOGRAPHIES GLOBALES
   ========================================================================== */

/* Titres */
h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; /* Semi-bold par défaut */
}

h1 { font-weight: 700; } /* Bold pour H1 */

/* Paragraphes */
p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
}

/* Boutons & CTA */
button,
.btn-espace,
.btn-search,
.btn-more,
.btn-host {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; /* Semi-bold */
}

/* Menu & Footer */
.pp-menu a,
.pp-footer {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
}


/* ==========================================================================
   03) HEADER
   ========================================================================== */

/* Conteneur header fixé, fond blanc, ombre fine */
.pp-header {
  position: sticky;      /* suit le scroll */
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

/* Layout interne du header */
.pp-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Logo à gauche, menu centré, CTA à droite */
}

/* Logo */
.pp-logo img {
  height: 70px;
}

/* Navigation */
.pp-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.pp-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.pp-menu li { 
  display: inline-block; 
  margin: 0 20px;
}

.pp-menu a {
  text-decoration: none;
  font-weight: normal;
  color: #2a2a2a;
  transition: color 0.3s ease;
}

.pp-menu a:hover { color: #007BFF; }

/* Zone utilisateur (container pour aligner les boutons) */
.pp-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Bouton "Mon espace" */
.btn-espace {
  background: linear-gradient(90deg, #007BFF, #7A42FF);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}
.btn-espace:hover { opacity: 0.9; }

/* Bouton "Déconnexion" (ghost) */
.btn-logout {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  line-height: 1;
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.btn-logout:hover {
  background: #F3F4F6;
  border-color: #d6dbe3;
}
.btn-logout:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
  border-color: #93c5fd;
}


/* ==========================================================================
   04) SECTION HERO
   ========================================================================== */

/* Sécurité: les éléments internes du form ne débordent jamais */
.hero-form, .hero-form * { box-sizing: border-box; }

.pp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;        /* centre verticalement */
  justify-content: center;    /* centre horizontalement le wrapper */
  color: #fff;
  /* Le header est fixed: prévoir du spacing dans la page si nécessaire via du margin-top sur la 1ère section (géré côté template si besoin) */
}

/* Fond: dégradé + image (image visible sous le voile) */
.pp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #111827 0%, #1F2937 50%, #111827 100%);
}

.pp-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%); /* voile sombre pour lisibilité du texte */
}

/* Contenu du hero en 2 colonnes */
.pp-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

/* Colonne titre */
.pp-hero-text { flex: 1; }

.pp-hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
}
.pp-hero-text h1 span { color: #2aaaff; }

/* Colonne formulaire */
.hero-form {
  background: #fff;
  color: #111827;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: 'Poppins', sans-serif; /* typographie unifiée du form */
}

.hero-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: inherit;
  font-family: inherit;
}

/* Labels (non gras) */
.hero-form label {
  display: block;
  font-weight: normal;
  font-size: 0.9rem;
  color: inherit;
  font-family: inherit;
}

/* Champs */
.hero-form input,
.hero-form select {
  display: block;  /* évite les surprises inline */
  width: 100%;
  min-width: 0;    /* utile dans les conteneurs flex */
  margin: 0;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

/* Checkbox: libellés à droite, même typo */
.pp-type-checkboxes label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

/* Bouton de recherche */
.hero-form button {
  background: linear-gradient(90deg, #007BFF, #7A42FF);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
}
.hero-form button:hover { opacity: 0.9; }


/* ==========================================================================
   05) SECTION KPIs
   ========================================================================== */

.pp-kpis {
  background: #fff;
  padding: 0 20px;
}

.pp-kpis .container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
}

.pp-kpi { text-align: center; }

.pp-kpi-number {
  font-size: 4.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #2aaaff, #554dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.pp-kpi-text {
  font-size: 1rem;
  color: #4B5563;
}


/* ==========================================================================
   06) SECTION SERVICES
   ========================================================================== */

.pp-services {
  background: #fff;
  padding: 60px 20px;
}

.pp-services .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  justify-content: center;
}

/* Carte service */
.pp-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden; /* arrondit aussi l'image */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Image (≈400x200) */
.pp-card img {
  width: 100%;
  max-width: 400px;
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 0 auto; /* centre si la carte > 400px */
}

.pp-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 15px 20px 10px;
  color: #000;
}

.pp-card p {
  font-size: 0.95rem;
  color: #4B5563;
  margin: 0 20px 20px;
}

/* CTA "En savoir plus" */
.btn-more {
  display: inline-block;
  margin: 10px 20px 20px;
  padding: 8px 16px;
  background: linear-gradient(90deg, #007BFF, #7A42FF);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.3s ease, transform 0.2s ease;
}
.btn-more:hover { opacity: 0.9; transform: translateY(-2px); }


/* ==========================================================================
   07) SECTION DEVENIR HÔTE
   ========================================================================== */

.pp-host {
  background: linear-gradient(90deg, #111827 0%, #1F2937 100%);
  padding: 60px 20px;
  text-align: center;
}

.pp-host .container {
  max-width: 900px;
  margin: 0 auto;
}

.pp-host-title {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.pp-host-text {
  color: #D1D5DB;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 20px;
  max-width: 700px;
}

.btn-host {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(90deg, #007BFF, #7A42FF);
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.btn-host:hover { transform: translateY(-2px); opacity: 0.95; }


/* ==========================================================================
   08) SECTION TÉMOIGNAGES
   ========================================================================== */

.pp-testimonials {
  background: #fff;
  padding: 60px 20px;
}

.pp-testimonials .container {
  max-width: 1100px;
  margin: 0 auto;
}

.pp-testimonials-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #0F172A;
}

/* Grille 3 cartes */
.pp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Carte avis */
.pp-review-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 16px;
}

/* Entête carte (avatar + meta) */
.pp-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.pp-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb; /* placeholder si pas d'image */
}

.pp-review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pp-review-name {
  color: #111827;
  font-weight: 600;
  line-height: 1.2;
}

/* Étoiles */
.pp-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #FBBF24;           /* or plein */
}
.pp-stars .star {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.pp-stars .star.empty {
  fill: transparent;
  stroke: #FBBF24;
  stroke-width: 1.2;
}

/* Commentaire */
.pp-review-text {
  color: #374151;
  line-height: 1.6;
  margin-top: 8px;
  font-size: 0.95rem;
}


/* ==========================================================================
   09) FOOTER
   ========================================================================== */

.pp-footer { background:#111827; color:#fff; font-size:0.95rem; }

.pp-footer-top { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; padding:40px 20px; }
.pp-footer-block h4 { color:#fff; font-weight:700; margin-bottom:15px; }
.pp-footer-block p  { color:#d1d5db; margin-bottom:15px; }
.pp-footer-block ul { list-style:none; padding:0; margin:0; }
.pp-footer-block ul li { margin-bottom:8px; }
.pp-footer-block ul li a { color:#d1d5db; text-decoration:none; transition:color .3s ease; }
.pp-footer-block ul li a:hover { color:#fff; }

.pp-footer-logo { max-width:120px; display:block; margin:0 auto 10px; }
.pp-footer-socials { display:flex; justify-content:center; gap:12px; margin-top:10px; }
.icon-social { width:24px; height:24px; fill:#fff; transition:opacity .3s ease; }
.pp-footer-socials a:hover .icon-social, .pp-footer-socials a:hover img { opacity:.8; }
.pp-footer-bottom { border-top:1px solid #1f2937; text-align:center; padding:15px 20px; font-size:.85rem; color:#9ca3af; }


/* ==========================================================================
   10) RESPONSIVE
   ========================================================================== */

/* Devenir hôte (petites tailles) */
@media (max-width: 640px) {
  .pp-host-title { font-size: 1.5rem; }
  .pp-host-text  { font-size: 0.95rem; }
}

/* Témoignages: 3 -> 2 colonnes */
@media (max-width: 900px) {
  .pp-testimonials-grid { grid-template-columns: 1fr 1fr; }
}

/* Témoignages: 2 -> 1 colonne */
@media (max-width: 600px) {
  .pp-testimonials-grid { grid-template-columns: 1fr; }
}

/* Hero: 2 colonnes -> 1 colonne */
@media (max-width: 900px) {
  .pp-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  .hero-form { max-width: 100%; }
}

/* Footer: 4 -> 2 colonnes */
@media (max-width: 900px) {
  .pp-footer-top { grid-template-columns: repeat(2, 1fr); }
}

/* Footer: 2 -> 1 colonne */
@media (max-width: 600px) {
  .pp-footer-top { grid-template-columns: 1fr; }
}

/* =========================================================
   MODAL DE CONNEXION (version simple, non-AJAX)
   ========================================================= */
.pp-modal { position: fixed; inset: 0; display: none; z-index: 2000; }
.pp-modal.is-open { display: block; }

.pp-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
}

.pp-modal-dialog {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 48px rgba(0,0,0,.18);
}

.pp-modal-close {
  position: absolute; top: 8px; right: 10px;
  width: 32px; height: 32px;
  border: 1px solid #E5E7EB; border-radius: 999px;
  background: #fff; color: #111827; cursor: pointer;
  line-height: 1; font-size: 20px;
}
.pp-modal-close:hover { background: #F3F4F6; }

.pp-modal-dialog h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1F2937;
}

.pp-login-form {
  display: grid; gap: 12px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #111827;
}

.pp-login-form label { display: grid; gap: 6px; font-size: 0.95rem; }
.pp-login-form input[type="text"],
.pp-login-form input[type="password"]{
  height: 40px; padding: 0 12px;
  border: 1px solid #D1D5DB; border-radius: 8px; font-size: 0.95rem;
}
.pp-login-form input:focus{
  outline: none; border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.pp-login-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.pp-login-links { margin-top: 8px; }
.pp-login-links a { color: #2563eb; text-decoration: none; font-size: 0.95rem; }
.pp-login-links a:hover { text-decoration: underline; }

/* Boutons cohérents avec ton thème */
.btn-gradient{
  background: linear-gradient(90deg, #2aaaff, #554dff);
  color: #fff; border: none; border-radius: 8px;
  height: 40px; padding: 0 16px; font-weight: 600; cursor: pointer;
}
.btn-ghost{
  display: inline-block; height: 40px; line-height: 40px;
  padding: 0 14px; border: 1px solid #D1D5DB; border-radius: 8px;
  color: #111827; text-decoration: none;
  font-family: 'Poppins', sans-serif; font-weight: 500;
}

/* Empêcher le scroll quand le modal est ouvert (optionnel) */
body.modal-open { overflow: hidden; }

/* =========================
   Login — message d'erreur
   ========================= */
.pp-login-error{
  background:#FEE2E2; color:#B91C1C;
  border:1px solid #FECACA; border-radius:8px;
  padding:8px 10px; margin:8px 0 10px; font-size:0.95rem;
}

/* =========================
   Login — inputs invalides
   ========================= */
.pp-login-form .is-invalid{
  border-color:#ef4444 !important;
  box-shadow:0 0 0 3px rgba(239,68,68,.15) !important;
  animation: pp-input-shake 0.9s ease;  /* léger tremblement */
}

@keyframes pp-input-shake{
  0%,100% { transform: translateX(0); }
  10%,30%,50%,70%,90% { transform: translateX(-6px); }
  20%,40%,60%,80%     { transform: translateX(6px); }
}

/* =========================
   Login — message d'erreur
   ========================= */
.pp-login-error{
  display: none;                          /* caché par défaut */
  background: #FEE2E2;                    /* fond rouge très clair */
  border: 1px solid #FECACA;
  color: #B91C1C;                         /* rouge texte */
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* cohérent avec tes paragraphes */
}
.pp-login-error.is-visible{ display: block; } /* affichage contrôlé par le JS */

/* Logo en haut du pop-up de connexion */
.pp-modal-brand{
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 6px 0 10px;  /* espace au-dessus du titre */
}
.pp-modal-brand img{
  display:block;
  width:120px;         /* ajuste entre 100–140px selon ton rendu */
  height:auto;
}

/* Backdrop du pop-up : assombrissement + flou de la page derrière */
.pp-modal-backdrop{
  background: rgba(0,0,0,.35);      /* un peu moins opaque pour voir le flou */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); /* Safari */
}


/* ==========================================================================
   FIN DU FICHIER
   ========================================================================== */

   /* ==========================================================================
   11) RESPONSIVE — Ajouts mobile-first (theme.css)
   ========================================================================== */

/* 🔹 Ultra-petits téléphones (<= 360px) */
@media (max-width: 359.98px){
  .pp-header .container{ padding: 0 14px; }
  .pp-logo img{ height: 56px; }
  .pp-hero-content{ padding: 0 14px; gap: 24px; }
  .pp-hero-text h1{ font-size: 1.6rem; line-height: 1.35; }
  .pp-card{ border-radius: 14px; }
  .pp-review-card{ border-radius: 14px; padding: 14px; }
}

/* 🔹 Petits téléphones (<= 480px) */
@media (max-width: 480px){
  /* Header: burger */
  .pp-nav-toggle{
    display:inline-flex; align-items:center; justify-content:center;
    width:40px; height:40px; border:1px solid #E5E7EB; border-radius:8px; background:#fff; cursor:pointer;
  }
  .pp-nav-toggle svg{ width:20px; height:20px; }
  .pp-nav{ display:none; }          /* masqué par défaut */
  .pp-nav.is-open{ display:block; } /* ouvre/ferme en JS en togglant .is-open */
  .pp-header .container{ gap: 10px; }
  .pp-menu{
    flex-direction: column; gap: 12px; padding: 12px 0; margin: 0;
  }
  .pp-menu li{ margin: 0; }

  /* Hero: 2 -> 1 colonne (tu as déjà une règle à 900px, on affine tailles) */
  .pp-hero{ min-height: 88vh; }
  .pp-hero-text h1{ font-size: 1.8rem; }
  .hero-form{ width: 100%; max-width: 100%; padding: 16px; border-radius: 10px; }

  /* KPIs: en colonne */
  .pp-kpis .container{
    flex-direction: column; gap: 18px; align-items: center;
  }
  .pp-kpi-number{ font-size: 3rem; }

  /* Services: cartes en 1 colonne */
  .pp-services .container{ flex-direction: column; gap: 16px; }
  .pp-card{ max-width: 100%; }
  .pp-card img{ height: 180px; }

  /* Témoignages: déjà 1 colonne à 600px, on resserre juste */
  .pp-testimonials{ padding: 44px 16px; }
  .pp-testimonials-title{ font-size: 1.5rem; margin-bottom: 22px; }

  /* Footer: 1 colonne déjà à 600px — on gère les paddings */
  .pp-footer-top{ padding: 28px 16px; gap: 18px; }
  .pp-footer-bottom{ padding: 12px 16px; }
}

/* 🔹 Téléphones “moyens” (>= 390px) */
@media (min-width: 390px){
  .pp-hero-text h1{ font-size: 2rem; }
}

/* 🔹 À partir de 640px (sm) */
@media (min-width: 640px){
  .pp-logo img{ height: 64px; }
  .hero-form{ padding: 18px; }
  .pp-kpi-number{ font-size: 3.6rem; }
}

/* 🔹 Tablettes (>= 768px) */
@media (min-width: 768px){
  /* Header: nav visible, burger caché */
  .pp-nav{ display:flex; }
  .pp-nav-toggle{ display:none; }

  /* Services: 2–3 colonnes selon largeur carte */
  .pp-services .container{
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px;
  }
  .pp-card{ max-width: none; }
}

/* 🔹 Petits laptops (>= 1024px) */
@media (min-width: 1024px){
  .pp-hero-text h1{ font-size: 2.3rem; }
  .pp-services .container{
    grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px;
  }
}

/* 🔹 ≥ 1200px */
@media (min-width: 1200px){
  .pp-header .container,
  .pp-hero-content{ max-width: 1200px; }
}

/* 🔹 ≥ 1280px */
@media (min-width: 1280px){
  .pp-hero-text h1{ font-size: 2.5rem; }
}

/* 🔹 Grilles déjà présentes — compléments */
@media (max-width: 900px){
  /* Témoignages: tu as 3→2 (900px) puis 2→1 (600px) OK */
  /* Footer: 4→2 (900px) puis 2→1 (600px) OK */
  /* Hero: règle existante 2→1 OK */
}

/* 🔹 Modale: petits ajustements mobile */
@media (max-width: 480px){
  .pp-modal-dialog{ width: min(94vw, 440px); padding: 16px; border-radius: 10px; }
  .pp-modal-close{ width: 30px; height: 30px; }
}

/* 🔹 Header + admin bar + safe areas */
@media (min-width: 783px){
  body.admin-bar .pp-header{ top: 32px; }
}
@supports (padding: max(0px)){
  .pp-header{ top: max(0px, env(safe-area-inset-top)); }
  .pp-header .container,
  .pp-hero-content{
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

/* 🔹 Accessibilité / préférences utilisateur */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto; }
  .pp-card,
  .btn-more,
  .btn-host{ transition: none; }
}

/* Icônes par défaut (alignés avec le texte) */
.btn-espace .icon-espace,
.btn-logout .icon-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.btn-espace svg,
.btn-logout svg {
  width: 100%; height: 100%;
  fill: currentColor;
}

/* Mobile : icônes seules */
@media (max-width: 640px) {
  .btn-espace, .btn-logout {
    padding: 8px;
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
  }
  .btn-espace .btn-label,
  .btn-logout .btn-label {
    display: none; /* cache le texte */
  }
  .btn-espace .icon-espace,
  .btn-logout .icon-logout {
    margin-right: 0; /* centre l’icône */
  }
}
