:root{
  --paper:#f7f6f3; --line:#e9e7e2; --gold:#b8964e; --ink:#111; --muted:#666; --radius:16px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--paper);color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
img{max-width:100%;display:block}
.container{width:min(1120px,92%);margin:0 auto}
.gold{color:var(--gold)} .link{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--gold);padding-bottom:2px}
.muted{color:var(--muted)} .small{font-size:.9rem}
.display{font-family:'Playfair Display',serif;font-weight:600;letter-spacing:.2px}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247,246,243,.9);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.logo {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  gap: 22px;
  transition: all 0.3s ease;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}

.nav a:hover {
  color: var(--gold);
}

/* ===== Burger ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.3s ease;
}

.nav-toggle.active {
  transform: rotate(90deg);
}

/* ===== Responsive menu ===== */
@media (max-width: 820px) {
  .nav {
    position: absolute;
    top: 64px;
    right: 4%;
    background: #fff;
    border: 1px solid var(--line);
    padding: 14px 18px;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav.open {
    display: flex;
    animation: fadeIn 0.25s ease;
  }

  .nav a {
    font-weight: 600;
  }

  .nav-toggle {
    display: block;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}


/* ===== Home hero & cards (inchangé) ===== */
.page{min-height:60vh}
.hero{padding:48px 0}
.hero-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-frame{display:flex;justify-content:flex-end}
.hero-card{width:100%;max-width:420px;aspect-ratio:3/4;background:linear-gradient(130deg,#222 0,#444 40%,#999 100%);border-radius:24px;box-shadow:0 10px 30px rgba(0,0,0,.12);position:relative}
.hero-card::after{content:"";position:absolute;inset:14px;border-radius:18px;border:1px solid var(--gold)}
.lead{color:var(--muted);font-size:1.05rem;line-height:1.6}
.cta-row{display:flex;gap:12px;margin-top:14px}
.btn{display:inline-block;padding:12px 16px;border-radius:12px;text-decoration:none;border:1px solid var(--line);cursor:pointer}
.btn-primary{background:var(--ink);color:#fff;border-color:var(--ink)}
.btn-ghost{background:transparent}

.section{padding:28px 0 48px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.grid{display:grid;gap:16px}
.cards{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .15s ease, box-shadow .15s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 6px 24px rgba(0,0,0,.06)}

/* === Cartes modèles universelles (index + models) === */
.card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  margin: 0;
  display: block;
  position: relative;
  background: var(--bg) center center / cover no-repeat;
  background-color: #f2f2f2;
}

/* Si une balise <img> est présente (models.php) */
.card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease, filter 0.3s ease;
  display: block;
}

/* Animation commune au survol */
.card:hover .card-img,
.card:hover .card-img img {
  transform: scale(1.05);
  filter: brightness(1.05);
}



.card-body{display:flex;align-items:center;justify-content:space-between;padding:10px 12px}
.pill{border:1px solid var(--gold);color:var(--gold);padding:4px 8px;border-radius:999px;font-size:.8rem}

/* ===== Band ===== */
/* ===== Bande d'étapes ===== */
.band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}

.band-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  text-align: center;
}

.band-inline h2 {
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
}

.band-inline ol {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  flex-wrap: wrap;
}

.band-inline li {
  font-size: 0.98rem;
  line-height: 1.4;
}

.band-inline .btn-primary {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
}

/* === Responsive mobile === */
@media (max-width: 820px) {
  .band-inline {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .band-inline h2 {
    margin-bottom: 4px;
  }

  .band-inline ol {
    flex-direction: column;
    gap: 6px;
  }

  .band-inline .btn-primary {
    margin-top: 8px;
  }
}

.band ol{display:flex;gap:16px;padding:0;margin:0;list-style-position:inside}

/* ===== Filtres & formulaires ===== */

.filters{display:flex;gap:10px;background:#fff;border:1px solid var(--line);padding:10px;border-radius:12px;margin-bottom:16px}
.filters input,.filters select{padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}
.form{display:grid;gap:12px}
.form-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
label{display:grid;gap:6px;font-weight:600}
input,textarea,select{padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit}
.check{display:flex;align-items:center;gap:8px;font-weight:400}
.alert{padding:12px 14px;border-radius:10px;border:1px solid var(--line)}
.alert.success{background:#f2fbf5;border-color:#cce8d4}
.alert.error{background:#fff2f2;border-color:#f0c0c0}

/* === Nouveau header de profil élégant === */
.profile-header {
  margin-top: 40px;
  margin-bottom: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.profile-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  text-align: left;
}

.profile-photo img {
  width: 180px;
  height: 220px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.profile-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin: 0 0 8px;
}

.profile-info p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 10px;
}

/* badge */
.profile-info .badge {
  background: var(--gold);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .9rem;
}

/* Responsive */
@media (max-width: 720px) {
  .profile-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo img {
    width: 150px;
    height: 190px;
  }
}


/* ===== Page profil – propre, sans flou lourd ===== */
.profile-hero{
  position:relative;height:42vh;min-height:320px;
  background-size:cover;background-position:center 25%;
  display:flex;align-items:flex-end;justify-content:center;
  text-align:center;color:#fff;overflow:hidden;
}
.profile-hero .overlay{
  position:absolute;inset:0;
  /* dégradé simple pour lisibilité, 0 blur -> perf OK */
  background:linear-gradient(to top,rgba(0,0,0,.60) 0%,rgba(0,0,0,.35) 45%,rgba(0,0,0,.12) 75%,rgba(0,0,0,0) 100%);
}
.profile-hero::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:120px;
  background:linear-gradient(to top,#f7f6f3 0%,rgba(247,246,243,0) 100%);
  border:none; 
}

.profile-hero .hero-content{position:relative;z-index:2;padding:0 18px 56px}
.profile-hero h1{font-family:'Playfair Display',serif;font-size:2.8rem;margin:0 0 8px}
.profile-hero p{font-size:1rem;opacity:.95;margin:0 0 10px}
.badge{background:var(--gold);color:#fff;padding:6px 14px;border-radius:999px;font-size:.85rem;display:inline-block}

/* Corrige la hauteur du bloc profil gauche */
.profile-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  padding: 58px 0;
}

/* Bloc texte compact */
.profile-text {
  flex: 0 0 340px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 10px 26px rgba(0,0,0,.04);
  position: sticky;
  top: 100px; /* reste visible quand on scroll */
}

/* Galerie fluide */
.profile-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
@media (max-width: 900px) {
  .profile-body {
    flex-direction: column;
  }
  .profile-text {
    position: static;
    width: 100%;
  }
}




/* Bio encadrée premium */
.profile-text{background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:18px;padding:26px 24px;box-shadow:0 10px 26px rgba(0,0,0,.04)}
.profile-text .intro{font-style:italic;font-size:1.05rem;color:#444;margin-bottom:20px}
.profile-text .facts li{margin-bottom:8px;line-height:1.5}

/* Boutons */
.btn-social{display:inline-block;border:1px solid var(--gold);color:var(--gold);padding:9px 16px;border-radius:999px;text-decoration:none;font-weight:500;margin:8px 0 18px;transition:all .2s ease}
.btn-social:hover{background:var(--gold);color:#fff}
.btn-primary{background:#111;color:#fff;font-weight:600;padding:11px 20px;border-radius:10px;text-decoration:none;display:inline-block;transition:background .2s ease,transform .2s ease}
.btn-primary:hover{background:#333;transform:translateY(-1px)}

/* Galerie */
.profile-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.profile-gallery img{width:100%;height:100%;border-radius:14px;object-fit:cover;transition:transform .28s ease,box-shadow .28s ease,border .28s ease;border:1px solid transparent}
.profile-gallery img:hover{transform:scale(1.03);box-shadow:0 6px 16px rgba(0,0,0,.1);border:1px solid rgba(184,150,78,.28)}

/* ===== Lightbox ===== */
.lb {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.88);
  z-index: 2000;
}
.lb.open { display: flex; }

.lb-img {
  max-width: 92%;
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.45);
  transition: transform .3s ease;
}

.lb-btn {
  position: absolute;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s ease;
}
.lb-btn:hover { background: rgba(0,0,0,0.8); }

.lb-prev { left: 40px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 40px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 24px; right: 26px; font-size: 26px; }


/* ===== Modal contact (propre, stable) ===== */
.modal{position:fixed;inset:0;display:grid;place-items:center;z-index:900}
.modal[hidden]{display:none !important}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.modal-dialog{position:relative;background:#fff;border-radius:18px;border:1px solid var(--line);padding:22px 22px 18px;width:min(560px,92%);box-shadow:0 15px 40px rgba(0,0,0,.18);z-index:1}
.modal-dialog h3{margin:0 0 14px;font-family:'Playfair Display',serif}
.modal-close{position:absolute;top:10px;right:12px;border:0;background:transparent;font-size:22px;cursor:pointer;line-height:1}
.modal form{display:grid;gap:12px}
.modal label{display:grid;gap:6px;font-weight:600}
.modal input,.modal textarea{padding:12px;border:1px solid var(--line);border-radius:10px;font:inherit;background:#fff}
.modal button[type="submit"]{justify-self:end;background:#111;color:#fff;border:0;border-radius:10px;padding:10px 16px;cursor:pointer}
.modal button[type="submit"]:hover{background:#333}
/* ===== Footer ===== */
.site-footer.elegant-footer{
  background:#fff;
  border-top:1px solid var(--line);
  padding:40px 0 28px;
  margin-top:60px;
}

/* Grille à deux colonnes */
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  align-items:flex-start;
  gap:28px;
}

/* Colonne 1 : Logo + slogan + CTA */
.footer-brand .brandline{
  display:flex;
  align-items:center;
  gap:8px;
}
.footer-brand p{
  margin:6px 0 12px;
  color:var(--muted);
}
.logo-sm{
  width:22px;
  height:22px;
}
.btn-join{
  display:inline-block;
  background:var(--ink);
  color:#fff;
  padding:10px 16px;
  border-radius:12px;
  text-decoration:none;
  font-weight:500;
  font-size:.95rem;
  transition:background .2s ease, transform .2s ease;
}
.btn-join:hover{
  background:#333;
  transform:translateY(-2px);
}

/* Colonne 2 : Mentions légales & Instagram */
.footer-legal{
  text-align:right;
}
.footer-legal p{
  margin:4px 0;
}
.footer-legal a.link{
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .25s ease, border-color .25s ease;
}
.footer-legal a.link:hover{
  color:var(--gold);
  border-color:var(--gold);
}
.footer-legal .small{
  font-size:.9rem;
  color:var(--muted);
}

/* Responsive footer */
@media (max-width:840px){
  .footer-grid{
    grid-template-columns:1fr;
    text-align:center;
    gap:22px;
  }
  .footer-legal{
    text-align:center;
  }
  .btn-join{
    margin-top:6px;
  }
}
/* === Bouton "Devenir modèle" (page d'accueil) === */
.btn-outline-gold {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: #fff;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rg
}
.verified-icon {
  width: 14px;            /* ajuste si besoin (12–16px) */
  height: 14px;
  margin-left: 6px;
  vertical-align: text-bottom; /* ou middle selon le rendu près du nom */
  display: inline-block;
}
/* --- Responsive profil modèle --- */
@media (max-width: 860px) {
  .profile-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .profile-text {
    order: 1;
    width: 100%;
  }

  .profile-gallery {
    order: 2;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .profile-gallery img {
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
  }
}
/* === Correction alignement bio à droite de la photo === */
.profile-header-inner {
  display: flex;
  align-items: flex-start; /* la clé : ne centre plus verticalement */
  justify-content: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.profile-photo img {
  flex-shrink: 0;
  width: 200px;
  height: 240px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.profile-info {
  flex: 1;
  min-width: 260px;
  max-width: 680px;
}

.profile-info .intro {
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.6;
  color: var(--muted);
  font-size: 1rem;
  margin-top: 6px;
}

/* --- Responsive (mobile) --- */
@media (max-width: 720px) {
  .profile-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo img {
    width: 160px;
    height: 200px;
  }

  .profile-info {
    max-width: 100%;
  }
}




/* === Version aérée & élégante du profil modèle === */
.profile-header {
  margin-top: 50px;
  margin-bottom: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.profile-header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 50px;
  flex-wrap: wrap;
}

.profile-photo img {
  flex-shrink: 0;
  width: 260px;
  height: 320px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.profile-info {
  flex: 1;
  min-width: 280px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin: 0 0 8px;
  line-height: 1.2;
}

.profile-info p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.profile-info .badge {
  background: var(--gold);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .9rem;
  display: inline-block;
  margin-bottom: 14px;
}

.profile-info .intro {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  font-style: italic;
  margin-top: 10px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

/* === Responsive (mobile) === */
@media (max-width: 860px) {
  .profile-header {
    padding: 28px;
  }

  .profile-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }

  .profile-photo img {
    width: 200px;
    height: 250px;
  }

  .profile-info {
    max-width: 100%;
  }

  .profile-info h1 {
    font-size: 2rem;
  }

  .profile-info .intro {
    font-size: 1rem;
  }
}
/* ✅ Correction alignement des cases à cocher */
.inline-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  margin: 4px 0;
}

.inline-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold);
}

@media (max-width: 768px) {
  .inline-check {
    display: flex !important;
    flex-wrap: nowrap;
    white-space: normal;
    text-align: left;
  }
}
/* === Correction mobile : filtres plus compacts === */
@media (max-width: 768px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
  }

  .filters input,
  .filters select,
  .filters button,
  .filters a.btn {
    width: 100%;
    height: 32px;           /* ✅ hauteur réduite */
    padding: 4px 8px;       /* ✅ bordures fines */
    font-size: 0.85rem;     /* ✅ texte plus petit */
    line-height: 1;         /* ✅ supprime la hauteur “auto” */
    border-radius: 8px;
    appearance: none;       /* ✅ enlève les styles iOS/Android */
    -webkit-appearance: none;
    -moz-appearance: none;
  }

  /* Boutons */
  .filters button,
  .filters a.btn {
    height: 34px;
    padding: 5px 10px;
    font-weight: 600;
  }
}
