@charset "UTF-8";
/* ============================================================
   style-temoignages-ui-v2.css
   ------------------------------------------------------------
   Feuille unifiée V2 pour :
   - page publique témoignages
   - administration des témoignages
   - page d'aide / déploiement

   Objectifs :
   - harmoniser le rendu global
   - se rapprocher du visuel validé
   - corriger la topbar
   - réduire la taille des boutons d'actions admin
   - supprimer les doublons inutiles
   - conserver les classes existantes
   - ne pas utiliser :root
   - ne pas imposer de police

   Organisation :
   01. Base commune
   02. Layout / conteneurs
   03. Composants communs
   04. Spécifique admin
   05. Spécifique témoignages
   06. Spécifique aide
   07. Responsive
   ============================================================ */

/* ============================================================
   01. BASE COMMUNE
   ============================================================ */

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

html{
  margin:0;
  padding:0;
}

body{
  margin:0;
  padding:0;
  color:#0f172a;
  line-height:1.55;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

a{
  color:inherit;
}

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

pre{
  margin:12px 0;
  padding:16px;
  overflow:auto;
  border-radius:18px;
  background:#0b1739;
  color:#e2e8f0;
  border:1px solid #1e293b;
  line-height:1.45;
  font-size:13px;
}

code{
  background:#e2e8f0;
  color:#0f172a;
  padding:2px 7px;
  border-radius:8px;
  font-size:13px;
}

ul{
  margin:8px 0 10px 18px;
  padding:0;
}

li{
  margin:6px 0;
  color:#334155;
}

/* ============================================================
   02. LAYOUT / CONTENEURS
   ============================================================ */

.wrap,
.cmt-wrap,
.adm-container{
  max-width:1280px;
  margin:0 auto;
  padding:24px;
}

.section{
  margin:18px 0;
}

.adm-stack{
  display:grid;
  gap:16px;
}

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

.grid-3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.4fr .9fr;
  gap:18px;
  align-items:start;
}

.hero-side{
  display:grid;
  gap:12px;
}

/* ============================================================
   03. COMPOSANTS COMMUNS
   ============================================================ */

/* ============================================================
   03.1 Top bar
   ------------------------------------------------------------
   Même rendu visuel pour :
   - .topbar
   - .cmt-topbar

   Objectif :
   obtenir un bandeau haut en "carte" arrondie,
   centré, avec espace autour, comme sur le visuel correct
   ============================================================ */

.topbar,
.cmt-topbar{
  position:sticky;
  top:0;
  z-index:30;

  max-width:1280px;
  margin:16px auto 0;
  padding:0;

  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);

  border:1px solid #dbe3ef;
  border-radius:22px;
  box-shadow:0 8px 22px rgba(15,23,42,.04);
}

/* IMPORTANT :
   on neutralise l'ancien comportement "barre horizontale pleine largeur" */
.topbar{
  border-bottom:1px solid #dbe3ef;
}

/* Contenu interne */
.topbar-inner,
.cmt-topbar__inner{
  max-width:1280px;
  margin:0 auto;
  padding:16px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  min-height:72px;
}

/* Marque / logo */
.brand,
.cmt-logo{
  display:flex;
  align-items:center;
  gap:16px;
  text-decoration:none;
  color:inherit;
}

.brand-badge,
.cmt-logo__img{
  width:62px;
  height:62px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#f8fafc;
  border:1px solid #dbe3ef;
  box-shadow:0 4px 12px rgba(15,23,42,.04);
  flex:0 0 62px;
}

.brand-title{
  margin:0;
  font-size:18px;
  line-height:1.2;
  color:#0f172a;
}

/* Navigation */
.topnav,
.cmt-nav,
.adm-nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

/* ------------------------------------------------------------
   03.2 Badges / chips
   ------------------------------------------------------------ */

.kicker,
.chip,
.adm-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  padding:7px 12px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid #dbe3ef;
  color:#64748b;
  font-size:12px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.chips,
.adm-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 0;
}

.badge-success,
.status-active{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:#ecfdf5;
  border:1px solid #86efac;
  color:#15803d;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}

.adm-meta{
  margin:0;
  color:#64748b;
  font-size:13px;
}

/* ------------------------------------------------------------
   03.3 Boutons / liens boutons
   ------------------------------------------------------------ */

.topnav a,
.cmt-nav a,
.adm-nav a,
.btn,
.adm-btn,
.cmt-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:9px 16px;
  border-radius:16px;
  text-decoration:none;
  cursor:pointer;
  border:1px solid #dbe3ef;
  background:#ffffff;
  color:#0f172a;
  font-size:14px;
  font-weight:700;
  box-shadow:0 4px 14px rgba(15,23,42,.04);
  transition:transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.topnav a:hover,
.cmt-nav a:hover,
.adm-nav a:hover,
.btn:hover,
.adm-btn:hover,
.cmt-btn:hover{
  transform:translateY(-1px);
  background:#f8fafc;
  border-color:#cfd8e3;
  box-shadow:0 8px 18px rgba(15,23,42,.06);
}

/* Bouton principal */
.btn.primary,
.cmt-nav__btn{
  background:#1f6db2;
  color:#ffffff !important;
  border-color:#1f6db2;
  box-shadow:0 8px 20px rgba(31,109,178,.18);
}

.btn.primary:hover,
.cmt-nav__btn:hover{
  background:#185b94;
  border-color:#185b94;
}

/* Bouton CTA témoignages */
.cmt-btn{
  background:#284f59;
  color:#ffffff;
  border-color:#284f59;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:12px;
  padding:11px 20px;
  box-shadow:0 10px 22px rgba(40,79,89,.18);
}

.cmt-btn:hover{
  background:#213f47;
  border-color:#213f47;
}

/* ------------------------------------------------------------
   03.4 Cartes
   ------------------------------------------------------------ */

.hero,
.cmt-hero,
.adm-header,
.card,
.adm-card,
.cmt-card,
.miniCard,
.infoBox{
  border:1px solid #dbe3ef;
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}

.hero,
.cmt-hero,
.adm-header{
  margin:0 0 22px;
  padding:26px;
  border-radius:26px;
  background:
    radial-gradient(circle at right top, rgba(59,130,246,.10), transparent 32%),
    #ffffff;
}

.card,
.adm-card,
.cmt-card{
  background:#ffffff;
  border-radius:24px;
  padding:22px;
}

.cmt-card{
  background:#f8fafc;
}

.miniCard,
.infoBox{
  background:#ffffff;
  border-radius:20px;
  padding:16px;
}

.hero h1,
.cmt-hero h1,
.adm-title{
  margin:0 0 10px;
  color:#0f172a;
  font-size:32px;
  line-height:1.15;
}

.cmt-hero{
  text-align:center;
  margin-top:12px;
}

.cmt-hero h1{
  font-size:42px;
  font-weight:600;
}

.hero p,
.cmt-hero p,
.adm-subtitle,
.card p,
.adm-card p,
.miniCard p,
.infoBox p{
  margin:0 0 10px;
  color:#475569;
}

.card h2,
.adm-card h2{
  margin:0 0 10px;
  font-size:24px;
  color:#0f172a;
}

.card h3,
.adm-card h3{
  margin:18px 0 8px;
  font-size:18px;
  color:#0f172a;
}

.miniCard .miniTitle,
.infoBox h4{
  margin:0 0 8px;
  font-size:16px;
  color:#0f172a;
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

/* ------------------------------------------------------------
   03.5 Messages / callouts
   ------------------------------------------------------------ */

.cmt-message,
.callout{
  padding:14px 16px;
  border-radius:18px;
  border:1px solid transparent;
  box-shadow:0 6px 18px rgba(15,23,42,.03);
}

.cmt-message{
  max-width:560px;
  margin:0 auto 14px;
  text-align:center;
  font-size:13px;
}

.cmt-message--success{
  background:#ecfdf5;
  color:#166534;
  border-color:#86efac;
}

.cmt-message--error{
  background:#fef2f2;
  color:#991b1b;
  border-color:#fca5a5;
}

.callout{
  margin:14px 0;
}

.callout strong{
  display:block;
  margin-bottom:6px;
}

.callout.orange{
  background:#fff7ed;
  border-color:#fdba74;
}

.callout.green{
  background:#ecfdf5;
  border-color:#86efac;
}

.callout.blue{
  background:#eff6ff;
  border-color:#93c5fd;
}

.callout.red{
  background:#fef2f2;
  border-color:#fca5a5;
}

/* ------------------------------------------------------------
   03.6 Tableaux
   ------------------------------------------------------------ */

.tableWrap,
.adm-table-wrap{
  overflow:auto;
  margin-top:10px;
}

.adm-table-min{
  min-width:950px;
}

table{
  width:100%;
  border-collapse:collapse;
  background:#ffffff;
  border:1px solid #dbe3ef;
  border-radius:18px;
  overflow:hidden;
}

th,
td{
  padding:12px 14px;
  border:1px solid #e2e8f0;
  text-align:left;
  vertical-align:top;
  font-size:14px;
}

th{
  background:#f1f5f9;
  color:#0f172a;
}

tbody tr:nth-child(even){
  background:#fcfdff;
}

th a{
  color:inherit;
  text-decoration:none;
}

th a:hover{
  text-decoration:underline;
}

/* ------------------------------------------------------------
   03.7 Pagination
   ------------------------------------------------------------ */

.adm-pagination{
  text-align:center;
  margin-top:18px;
  font-size:13px;
}

.adm-page{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:38px;
  padding:6px 10px;
  margin:0 4px;
  border-radius:12px;
  text-decoration:none;
  background:#ffffff;
  color:#0f172a;
  border:1px solid #dbe3ef;
  box-shadow:0 4px 12px rgba(15,23,42,.04);
}

.adm-page:hover{
  background:#f8fafc;
}

.adm-page.is-current{
  background:#0f172a;
  color:#ffffff;
  border-color:#0f172a;
}

.footerNote{
  margin:22px 0 8px;
  text-align:center;
  color:#64748b;
  font-size:13px;
}

/* ============================================================
   04. PARTIES SPÉCIFIQUES ADMIN
   ============================================================ */

.adm-filters{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
  padding:14px;
  border:1px solid #dbe3ef;
  border-radius:20px;
  background:#f8fafc;
  box-shadow:0 6px 18px rgba(15,23,42,.03);
}

.adm-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.adm-field label{
  font-size:12px;
  font-weight:700;
  color:#334155;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.adm-field input,
.adm-field select{
  width:100%;
  padding:10px 12px;
  border:1px solid #d7dee8;
  border-radius:14px;
  background:#ffffff;
  color:#0f172a;
  font-size:14px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.adm-field input:focus,
.adm-field select:focus{
  border-color:#9db7d3;
  box-shadow:0 0 0 4px rgba(59,130,246,.10);
}

.adm-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* Ligne mise en évidence */
.adm-row-warning{
  background:#fff7ed !important;
}

/*
  Correction demandée :
  on réduit le padding des boutons
  "Valider", "Supprimer", "Inapproprié"
*/
.adm-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:6px 12px;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  cursor:pointer;
  border:1px solid #dbe3ef;
  border-radius:14px;
  background:#ffffff;
  color:#0f172a;
  box-shadow:0 4px 12px rgba(15,23,42,.04);
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}

.adm-action:hover{
  transform:translateY(-1px);
  background:#f8fafc;
}

.adm-action--ok{
  background:#ecfdf5;
  border-color:#86efac;
  color:#166534;
}

.adm-action--ok:hover{
  background:#dcfce7;
}

.adm-action--danger{
  background:#fff7ed;
  border-color:#fdba74;
  color:#c2410c;
}

.adm-action--danger:hover{
  background:#ffedd5;
}

.adm-action--warn{
  background:#fff8e8;
  border-color:#f3c27a;
  color:#9a5b08;
}

.adm-action--warn:hover{
  background:#fff2d6;
}

.adm-btn-danger{
  background:#fff7ed;
  border-color:#fdba74;
  color:#c2410c;
}

.adm-btn-danger:hover{
  background:#ffedd5;
}

/* ============================================================
   05. PARTIES SPÉCIFIQUES TÉMOIGNAGES
   ============================================================ */

.cmt-wrap{
  padding-top:30px;
  padding-bottom:60px;
}

.cmt-slide{
  text-align:center;
  padding:28px 16px;
  min-height:220px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
}

.cmt-quote{
  margin:0;
  font-size:20px;
  color:#334155;
}

.cmt-name{
  margin:14px 0 0;
  font-size:13px;
  font-weight:800;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:#0f172a;
}

.cmt-stars{
  margin:6px 0 0;
  font-size:14px;
  color:#eab308;
  letter-spacing:.15em;
}

.cmt-date{
  margin:6px 0 0;
  font-size:13px;
  color:#64748b;
}

.cmt-dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin:18px 0;
}

.cmt-dot{
  width:8px;
  height:8px;
  border:none;
  border-radius:50%;
  background:#cbd5e1;
  cursor:pointer;
  padding:0;
  transition:transform .15s ease, background .15s ease;
}

.cmt-dot:hover{
  transform:scale(1.08);
}

.cmt-dot.is-active{
  width:11px;
  height:11px;
  background:#0f172a;
}

.cmt-cta{
  display:flex;
  justify-content:center;
  margin-top:10px;
}

/* Modale */
.cmt-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:60;
}

.cmt-modal.is-open{
  display:block;
}

.cmt-modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.45);
}

.cmt-modal__panel{
  position:relative;
  width:min(560px, calc(100% - 28px));
  margin:6vh auto 0;
  background:#ffffff;
  border:1px solid #dbe3ef;
  border-radius:22px;
  box-shadow:0 20px 48px rgba(15,23,42,.18);
  overflow:hidden;
}

.cmt-modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid #e5e7eb;
  background:#ffffff;
}

.cmt-modal__title{
  margin:0;
  color:#0f172a;
  font-size:13px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.cmt-modal__close{
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid #dbe3ef;
  background:#f8fafc;
  color:#0f172a;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  line-height:1;
}

.cmt-modal__close:hover{
  background:#ffffff;
}

.cmt-modal__body{
  padding:18px;
  background:#ffffff;
}

/* Formulaire */
.cmt-form{
  display:grid;
  gap:12px;
}

.cmt-input,
.cmt-textarea{
  width:100%;
  padding:11px 12px;
  border:1px solid #d7dee8;
  border-radius:14px;
  background:#ffffff;
  color:#0f172a;
  font-size:14px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.cmt-input:focus,
.cmt-textarea:focus{
  border-color:#9db7d3;
  box-shadow:0 0 0 4px rgba(59,130,246,.10);
}

.cmt-textarea{
  min-height:120px;
  resize:vertical;
}

.cmt-counter{
  text-align:right;
  font-size:12px;
  color:#64748b;
  margin-top:-4px;
}

.cmt-form__note{
  margin:10px 0 0;
  font-size:13px;
  color:#475569;
}

.cmt-form__note strong{
  font-weight:800;
}

/* Étoiles */
.cmt-rating{
  display:inline-block;
  direction:rtl;
  padding:6px 0 0;
}

.cmt-rating input{
  display:none;
}

.cmt-rating label{
  font-size:22px;
  color:#cbd5e1;
  cursor:pointer;
  padding:0 2px;
  transition:color .15s ease;
}

.cmt-rating label:hover,
.cmt-rating label:hover ~ label{
  color:#eab308;
}

.cmt-rating input:checked ~ label{
  color:#eab308;
}

/* ============================================================
   06. PARTIES SPÉCIFIQUES AIDE
   ============================================================ */

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

.step{
  display:grid;
  grid-template-columns:46px 1fr;
  gap:14px;
  align-items:start;
  background:#ffffff;
  border:1px solid #e2e8f0;
  border-radius:20px;
  padding:14px;
  box-shadow:0 6px 18px rgba(15,23,42,.03);
}

.stepNo{
  width:46px;
  height:46px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1d4ed8;
  font-weight:800;
}

.step h4{
  margin:2px 0 6px;
  font-size:16px;
}

.step p{
  margin:0;
  font-size:14px;
  color:#475569;
}

/* ============================================================
   07. RESPONSIVE
   ============================================================ */

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

  .hero h1,
  .adm-title{
    font-size:28px;
  }

  .cmt-hero h1{
    font-size:32px;
  }
}

@media (max-width: 700px){
  .cmt-quote{
    font-size:18px;
  }

  .cmt-name{
    letter-spacing:.18em;
  }

  .cmt-card{
    padding:18px;
  }
}

@media (max-width: 640px){
  .wrap,
  .cmt-wrap,
  .adm-container{
    padding:16px;
  }

  .topbar-inner,
  .cmt-topbar__inner{
    padding:10px 14px;
    min-height:auto;
  }

  .hero,
  .cmt-hero,
  .adm-header,
  .card,
  .adm-card,
  .cmt-card{
    padding:18px;
    border-radius:20px;
  }

  .topnav a,
  .cmt-nav a,
  .adm-nav a,
  .btn,
  .adm-btn,
  .cmt-btn{
    width:100%;
  }
}
