/* ==========================================================================
   vincentflibustier.com/harcelement
   Feuille de style unique. Mobile first, typographie systeme, contrastes AA.
   Palette : bleu profond / blanc / accent ambre. Pas de rouge "colere"
   (le rouge n'apparait que pour la semantique d'erreur).
   ========================================================================== */

:root {
  --bleu-nuit: #13233f;
  --bleu: #1d3557;
  --bleu-clair: #eef2f7;
  --encre: #1f2733;
  --encre-douce: #49566a;
  --accent: #eda33b;
  --accent-fonce: #d98a1d;
  --blanc: #ffffff;
  --bord: #d8dfe8;
  --vert-fond: #e8f5ee;
  --vert-bord: #2e7d4f;
  --vert-texte: #1d5436;
  --erreur-fond: #fdecea;
  --erreur-bord: #c0392b;
  --erreur-texte: #8a1f17;
  --rayon: 10px;
  --ombre: 0 1px 3px rgba(16, 24, 40, 0.08);
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--blanc);
}

h1, h2, h3 {
  line-height: 1.25;
  color: var(--bleu-nuit);
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 4.5vw, 1.85rem); }
h3 { font-size: 1.1rem; }

p, ul, ol { margin: 0 0 1em; }

a {
  color: var(--bleu);
  text-underline-offset: 2px;
}

a:hover { color: var(--bleu-nuit); }

:focus-visible {
  outline: 3px solid var(--accent-fonce);
  outline-offset: 2px;
  border-radius: 2px;
}

[id] { scroll-margin-top: 16px; }

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

.conteneur {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: 20px;
}

.etroit { max-width: 780px; }

/* Lien d'evitement (accessibilite clavier) */
.lien-evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--bleu-nuit);
  color: var(--blanc);
}

.lien-evitement:focus {
  left: 0;
}

/* Honeypot : champ invisible pour les humains, sans le mot-cle evident */
.nepasremplir {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Badge reCAPTCHA masque : la mention textuelle obligatoire est affichee
   sous le formulaire a la place (pratique autorisee par Google). */
.grecaptcha-badge { visibility: hidden; }

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

.btn {
  display: inline-block;
  padding: 13px 24px;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  min-height: 48px;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bleu-nuit);
}

.btn-accent:hover {
  background: var(--accent-fonce);
  border-color: var(--accent-fonce);
  color: var(--bleu-nuit);
}

.btn-sobre {
  background: var(--bleu);
  border-color: var(--bleu);
  color: var(--blanc);
}

.btn-sobre:hover {
  background: var(--bleu-nuit);
  border-color: var(--bleu-nuit);
  color: var(--blanc);
}

.btn-contour {
  background: transparent;
  border-color: var(--bleu);
  color: var(--bleu);
}

.btn-contour:hover {
  background: var(--bleu);
  color: var(--blanc);
}

.btn-danger {
  background: #ffffff;
  border-color: var(--erreur-bord);
  color: var(--erreur-texte);
}

.btn-danger:hover {
  background: var(--erreur-fond);
}

.btn-large { width: 100%; font-size: 1.1rem; }
.btn-petit { padding: 8px 14px; min-height: 0; }

.btn:disabled { opacity: 0.6; cursor: wait; }

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

.hero {
  background: linear-gradient(160deg, var(--bleu-nuit), var(--bleu));
  color: var(--blanc);
  padding: 44px 0 52px;
  text-align: center;
}

.hero h1 {
  color: var(--blanc);
  max-width: 24ch;
  margin: 0 auto 14px;
}

.hero-surtitre {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.hero-sous-titre {
  max-width: 62ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
}

.hero-sous-titre p {
  max-width: 62ch;
  margin: 0 auto 10px;
}

.hero-sous-titre p:last-child { margin-bottom: 0; }

.hero-sous-titre a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-sous-titre strong { color: #fff; }

.hero-credibilite {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Texte d'intro + affiche "I want you" cote a cote (a partir de 880px) */
.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-affiche {
  margin: 0;
  flex: none;
}

.hero-affiche img {
  display: block;
  width: 220px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

@media (min-width: 880px) {
  .hero-intro {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: left;
  }
  .hero-intro .hero-sous-titre {
    margin: 0;
  }
  .hero-affiche img {
    width: 300px;
  }
}

.hero-compteur {
  margin: 30px auto 26px;
}

.compteur-chiffre {
  display: block;
  font-size: clamp(3.4rem, 13vw, 6.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.compteur-libelle {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blanc);
}

.compteur-zero { font-size: 1.3rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero .btn-contour {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--blanc);
}

.hero .btn-contour:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-note {
  margin: 22px auto 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------------------------------
   Bandeau de temoignages defilant (sous le hero)
   -------------------------------------------------------------------------- */

.bandeau-temoignages {
  background: var(--bleu-nuit);
  overflow: hidden;
  padding: 26px 0 30px;
}

.bandeau-piste {
  display: flex;
  justify-content: center;
}

/* Defilement (et duplication) actives uniquement si les cartes debordent
   de l'ecran : classe ajoutee par JS. Sinon, affichage statique centre. */
.bandeau-piste.defile {
  justify-content: flex-start;
  width: max-content;
  animation: defilement-temoignages 90s linear infinite;
}

.bandeau-temoignages:hover .bandeau-piste.defile,
.bandeau-temoignages:focus-within .bandeau-piste.defile {
  animation-play-state: paused;
}

.bandeau-groupe {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0 9px;
  list-style: none;
}

.bandeau-piste.defile .bandeau-groupe {
  flex-wrap: nowrap;
}

/* Une carte de temoignage defilante */
.bandeau-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  flex: none;
  width: 320px;
  padding: 22px;
  border-radius: 14px;
  background: var(--bleu);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: normal;
}

.bandeau-citation {
  position: relative;
  margin: 0;
  padding-top: 28px;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.bandeau-citation::before {
  content: "\201C";
  position: absolute;
  top: 2px;
  left: -2px;
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 700;
  color: var(--accent);
}

.bandeau-personne {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bandeau-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bleu-nuit);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.bandeau-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bandeau-nom { color: #fff; }

.bandeau-org {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

@keyframes defilement-temoignages {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .bandeau-piste.defile { animation: none; }
  .bandeau-groupe[aria-hidden] { display: none; }
}

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

.section { padding: 44px 0; }

.section-contraste { background: var(--bleu-clair); }

.section-intro {
  color: var(--encre-douce);
  max-width: 70ch;
}

.prose h3 { margin: 1.5em 0 0.4em; }
.prose :first-child { margin-top: 0; }
.prose :last-child { margin-bottom: 0; }
.prose li { margin-bottom: 0.4em; }

/* --------------------------------------------------------------------------
   Manifeste
   -------------------------------------------------------------------------- */

/* Deux colonnes : capture du mail type a gauche, resume (plus petit) a droite */
.manifeste-grille {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.manifeste-image {
  margin: 0;
}

.manifeste-image img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border: 1px solid var(--bord);
  border-radius: 10px;
  box-shadow: var(--ombre);
}

.manifeste-image figcaption {
  margin-top: 8px;
  max-width: 420px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--encre-douce);
}

.manifeste-resume { font-size: 0.95rem; }

.manifeste-complet { margin-top: 14px; }

@media (min-width: 860px) {
  .manifeste-grille {
    flex-direction: row;
    align-items: flex-start;
    gap: 38px;
  }
  .manifeste-image {
    flex: 0 0 360px;
  }
  .manifeste-image img,
  .manifeste-image figcaption {
    max-width: none;
  }
  .manifeste-texte {
    flex: 1;
    min-width: 0;
  }
}

.manifeste-complet summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--bleu);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px 0;
}

.manifeste-complet summary::-webkit-details-marker { display: none; }

.manifeste-complet summary::after { content: " ▾"; }

.manifeste-complet[open] summary::after { content: " ▴"; }

.manifeste-complet > .prose {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--bord);
}

/* --------------------------------------------------------------------------
   Encadre "La methode" (mis en avant, jaune)
   -------------------------------------------------------------------------- */

.encart-methode {
  background: #fdf3d1;
  border: 1px solid #e6c24a;
  border-left: 6px solid var(--accent);
  border-radius: var(--rayon);
  padding: 22px 24px;
}

.encart-methode-titre {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
}

/* --------------------------------------------------------------------------
   Ils me font confiance (logos partenaires)
   -------------------------------------------------------------------------- */

.partenaires-logos {
  margin: 26px 0 0;
}

.partenaires-logos img {
  display: block;
  width: 100%;
  max-width: 1040px;
  height: auto;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Accordeons des accusations
   -------------------------------------------------------------------------- */

.accordeon {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  margin-bottom: 12px;
}

.accordeon summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--bleu-nuit);
}

.accordeon summary::-webkit-details-marker { display: none; }

.accordeon-titre { flex: 1; }

.accordeon-titre::before { content: "« "; }
.accordeon-titre::after { content: " »"; }

.accordeon-marqueur {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bleu);
  color: var(--blanc);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.accordeon[open] .accordeon-marqueur { transform: rotate(45deg); }

.accordeon-corps {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--bord);
}

.accordeon-soustitre {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: var(--encre-douce);
  margin: 1.4em 0 0.5em;
}

.accordeon-corps > .accordeon-soustitre:first-child { margin-top: 0; }

.liste-preuves {
  padding-left: 1.2em;
}

.liste-preuves li { margin-bottom: 8px; }

.lien-ancre {
  background: none;
  border: none;
  padding: 6px 0;
  margin-top: 8px;
  font: inherit;
  font-size: 0.88rem;
  color: var(--encre-douce);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.lien-ancre:hover { color: var(--bleu-nuit); }

/* Images de preuve a l'interieur d'un accordeon */
.preuve-image {
  margin: 16px 0;
}

.preuve-image img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border: 1px solid var(--bord);
  border-radius: 6px;
}

.preuve-image figcaption {
  font-size: 0.85rem;
  color: var(--encre-douce);
  margin-top: 5px;
}

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */

.champ { margin-bottom: 20px; }

.champ > label {
  display: block;
  font-weight: 600;
  color: var(--bleu-nuit);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #8d9aab;
  border-radius: 8px;
  font: inherit;
  color: var(--encre);
  background: var(--blanc);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  border-color: var(--bleu);
}

input:disabled {
  background: var(--bleu-clair);
  color: var(--encre-douce);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.champ-case {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.champ-case input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--bleu);
}

.champ-case label { font-weight: 400; }

.aide {
  font-size: 0.9rem;
  color: var(--encre-douce);
  margin: 6px 0 0;
}

.compteur-caracteres {
  font-size: 0.85rem;
  color: var(--encre-douce);
  text-align: right;
  margin: 4px 0 0;
}

.recaptcha-mention {
  font-size: 0.82rem;
  color: var(--encre-douce);
  margin-top: 12px;
}

/* Notices */

.notice {
  padding: 16px 18px;
  border-radius: var(--rayon);
  border: 1px solid;
  margin-bottom: 20px;
}

.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }

.notice-titre {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.notice-succes {
  background: var(--vert-fond);
  border-color: var(--vert-bord);
  color: var(--vert-texte);
}

.notice-succes .notice-titre { color: var(--vert-texte); }

.notice-erreur {
  background: var(--erreur-fond);
  border-color: var(--erreur-bord);
  color: var(--erreur-texte);
}

.notice-erreur .notice-titre { color: var(--erreur-texte); }

.actions-confirmation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Mur de temoignages
   -------------------------------------------------------------------------- */

.mur-grille {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.temoignage-carte {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 18px;
}

.temoignage-texte { color: var(--encre); }

.temoignage-signature {
  margin: 0;
  font-size: 0.92rem;
  color: var(--encre-douce);
}

.temoignage-signature strong {
  display: block;
  color: var(--bleu-nuit);
  font-size: 1rem;
}

.temoignage-org { display: block; }

.temoignage-signature time { display: block; font-size: 0.85rem; }

.mur-lien-tous { text-align: center; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}

.pagination-statut { color: var(--encre-douce); }

/* --------------------------------------------------------------------------
   En-tete des sous-pages et pied de page
   -------------------------------------------------------------------------- */

.entete-page {
  background: var(--bleu-nuit);
  padding: 13px 0;
}

.entete-page .retour {
  color: var(--blanc);
  font-weight: 600;
  text-decoration: none;
}

.entete-page .retour:hover { text-decoration: underline; }

.pied {
  background: var(--bleu-nuit);
  color: rgba(255, 255, 255, 0.92);
  padding: 32px 0;
  margin-top: 24px;
}

.pied a { color: var(--blanc); }

.pied-justice {
  font-weight: 600;
  color: var(--blanc);
  max-width: 70ch;
}

.pied-liens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 14px 0;
}

.pied-mentions {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Administration
   -------------------------------------------------------------------------- */

body.admin { background: var(--bleu-clair); }

body.admin .conteneur { max-width: 860px; }

.page-connexion form {
  max-width: 400px;
  margin: 48px auto;
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: 12px;
  padding: 26px;
}

.page-connexion h1 { margin-top: 0; font-size: 1.4rem; }

.admin-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0 6px;
}

.admin-entete h1 { margin: 0; font-size: 1.4rem; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.stat {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: 8px;
  padding: 8px 14px;
  margin: 0;
  font-size: 0.88rem;
  color: var(--encre-douce);
}

.stat strong {
  display: block;
  font-size: 1.3rem;
  color: var(--bleu-nuit);
  font-variant-numeric: tabular-nums;
}

.onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.onglet {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blanc);
  border: 1px solid var(--bord);
  color: var(--bleu);
  font-weight: 600;
  text-decoration: none;
}

.onglet.actif {
  background: var(--bleu);
  border-color: var(--bleu);
  color: var(--blanc);
}

.admin-vide {
  color: var(--encre-douce);
  padding: 24px 0;
}

.item-moderation {
  background: var(--blanc);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 16px;
  margin-bottom: 14px;
}

.item-titre { margin-bottom: 2px; }

.item-titre strong { color: var(--bleu-nuit); }

.item-org { color: var(--encre-douce); }

.item-org::before { content: " · "; }

.item-meta {
  font-size: 0.85rem;
  color: var(--encre-douce);
  margin-bottom: 10px;
}

.item-message { white-space: normal; }

.item-message-vide {
  color: var(--encre-douce);
  font-style: italic;
}

.badge-drapeau {
  display: inline-block;
  background: var(--erreur-fond);
  color: var(--erreur-texte);
  border: 1px solid var(--erreur-bord);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 10px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Boutons de moderation : larges et espaces, utilisables au pouce */
.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.item-actions form {
  flex: 1;
  min-width: 130px;
}

.item-actions .btn { width: 100%; }

.btn-valider {
  background: var(--vert-bord);
  border-color: var(--vert-bord);
  color: var(--blanc);
}

.btn-valider:hover {
  background: var(--vert-texte);
  border-color: var(--vert-texte);
}

/* --------------------------------------------------------------------------
   Ecrans plus larges
   -------------------------------------------------------------------------- */

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

@media (min-width: 760px) {
  .hero { padding: 64px 0 72px; }
  .section { padding: 56px 0; }
}

@media (min-width: 980px) {
  .mur-grille { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   Preferences utilisateur
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
