/* css/style.css
 *
 * SOMMAIRE
 * ────────────────────────────────────────────────
 *  L.  3   Variables & palette
 *  L. 18   Reset
 *  L. 26   Layout global
 *  L. 29   Navigation
 *  L. 57   Sections communes
 *  L. 76   Animations fade-in-up
 *  L. 80   Chemin latéral
 *  L.129   Section Accueil
 *  L.149   Section À propos
 *  L.172   Section Créations (galerie, cartes, badges, annotations, carte au trésor)
 *  L.341   Section Compétences
 *  L.497   Section Parcours
 *  L.508   Section Contact
 *  L.554   Footer
 *  L.617   Mode édition
 *  L.674   Modal / Lightbox
 *  L.748   Icônes gemme (compétences)
 *  L.752   Timeline — carte vedette
 *  L.781   Badge vedette (galerie)
 *  L.816   Verrou Charlie — coffre-fort
 *  L.981   Retour haut créations
 *  L.1009  Onglets créations
 *  L.1052  Responsive Tablette (600–1023px)
 *  L.1073  Responsive Mobile (≤599px)
 * ────────────────────────────────────────────────
 */

/* === Variables === */
:root {
  --fond: #FAF6F0;
  --dore: #C9A24B;
  --dore-clair: #E3CD8E;
  --bleu: #7FB5B5;
  --bleu-fonce: #3D6B6B;
  --rose: #F3DDD8;
  --texte: #2E2B28;
  --texte-secondaire: #6B6560;
  --radius-card: 20px;
  --radius-btn: 50px;
  --transition: 0.3s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Nunito', sans-serif; font-weight: 400; color: var(--texte); background-color: var(--fond); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'Quicksand', sans-serif; }

/* === Layout === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* === NAVIGATION === */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background-color var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background-color: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(46, 43, 40, 0.08);
}
.nav-container {
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: center;
  height: 64px; position: relative;
}
.nav-links { list-style: none; display: flex; gap: 36px; align-items: center; }
.nav-links a { font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--texte); transition: color var(--transition); position: relative; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--dore); transform: scaleX(0); transition: transform var(--transition); border-radius: 2px; }
.nav-links a:hover { color: var(--dore); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 10; position: absolute; right: 28px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--texte); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.ouvert span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.ouvert span:nth-child(2) { opacity: 0; }
.nav-toggle.ouvert span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Sections communes === */
section { padding: 96px 0; scroll-margin-top: 64px; }

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bleu-fonce);
  margin-bottom: 6px;
  opacity: 0.75;
}

.section-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 52px; }
.section-header--center { flex-direction: column; align-items: center; text-align: center; }
.section-trait { display: block; width: 40px; height: 3px; background: var(--dore); border-radius: 3px; flex-shrink: 0; margin-top: 10px; }
.section-titre { font-size: 2rem; font-weight: 700; color: var(--dore); letter-spacing: 0.02em; }
.section-titre--center { text-align: center; margin-bottom: 52px; }

/* === Animations fade-in-up === */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* === CHEMIN LATÉRAL (visible ≥ 1280px) === */
.chemin-lateral {
  display: none;
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1280px) {
  .chemin-lateral { display: flex; }
}

.chemin-etape-lien { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.chemin-icone {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--fond);
  border: 2px solid var(--dore);
  color: var(--dore);
  display: flex; align-items: center; justify-content: center;
  opacity: 0.3;
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}
.chemin-icone.active { opacity: 1; transform: scale(1.1); }
.chemin-etape-lien:hover .chemin-icone { opacity: 0.75; transform: scale(1.1); }

.chemin-trait {
  width: 2px;
  height: 50px;
  position: relative;
  overflow: hidden;
}
.chemin-trait::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  border-left: 2px dashed var(--dore);
  opacity: 0.45;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.65s ease 0.1s;
}
.chemin-trait.visible::after { transform: scaleY(1); }

/* === SECTION ACCUEIL === */
#accueil {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--fond) 55%, var(--rose) 100%);
  padding: 0; text-align: center; overflow: hidden; scroll-margin-top: 0;
}
.accueil-content { position: relative; z-index: 1; padding: 0 28px; max-width: 680px; }
.accueil-titre { font-size: clamp(32px, 8vw, 56px); font-weight: 700; color: var(--dore); margin-bottom: 14px; letter-spacing: 0.02em; }
.accueil-sous-titre { font-size: clamp(22px, 4vw, 32px); font-weight: 600; color: var(--texte); margin-bottom: 16px; }
.accueil-intro { font-size: 1.05rem; color: var(--texte-secondaire); margin-bottom: 12px; }
.accueil-invite { font-size: 0.85rem; color: var(--bleu-fonce); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }

.accueil-vague { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; pointer-events: none; }
.accueil-vague svg { width: 100%; height: 80px; }

.scroll-indicator { position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 1; transition: opacity 0.4s ease; }
.scroll-arrow { display: block; width: 20px; height: 20px; border-right: 2.5px solid var(--dore); border-bottom: 2.5px solid var(--dore); transform: rotate(45deg); animation: bounce 1.8s ease infinite; }
@keyframes bounce { 0%, 100% { transform: rotate(45deg) translate(0,0); } 50% { transform: rotate(45deg) translate(5px,5px); } }

/* === SECTION À PROPOS === */
#a-propos { background: var(--fond); }

.apropos-grid { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
.apropos-texte p { margin-bottom: 18px; color: var(--texte); font-size: 1.05rem; }
.apropos-texte p:last-child { margin-bottom: 0; }
.apropos-photo { display: flex; justify-content: center; }
.photo-ronde { width: 100%; height: auto; border-radius: 20px; object-fit: cover; border: 4px solid var(--dore); box-shadow: 0 8px 40px rgba(201, 162, 75, 0.22); display: block; }

.citation-bloc {
  margin: 32px 0 8px;
  padding: 20px 24px;
  border-left: 3px solid var(--dore);
  background: linear-gradient(135deg, rgba(243,221,216,0.35) 0%, rgba(227,205,142,0.12) 100%);
  border-radius: 0 16px 16px 0;
}
.citation-bloc p { font-size: 1rem; color: var(--texte); font-style: italic; line-height: 1.65; margin: 0; }

.interets { margin-top: 32px; }
.interets-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texte-secondaire); margin-bottom: 10px; }
.interets-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.interet-tag { background: rgba(127, 181, 181, 0.15); color: var(--bleu-fonce); font-size: 0.88rem; font-weight: 600; padding: 6px 16px; border-radius: 50px; border: 1px solid rgba(127, 181, 181, 0.3); }

/* === SECTION CRÉATIONS — DISPOSITION ASYMÉTRIQUE === */
#creations { background: var(--rose); }

.grille-creations {
  columns: 3 240px;
  column-gap: 24px;
}

/* Carte commune */
.carte {
  background: var(--fond);
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  break-inside: avoid;
  margin-bottom: 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.carte:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(201, 162, 75, 0.2); border-color: var(--dore-clair); }
.carte:hover .carte-image img { transform: scale(1.04); }
.carte:focus-visible { outline: 3px solid var(--dore); outline-offset: 2px; }

/* Image de la carte */
.carte-image { position: relative; overflow: hidden; }
.carte-image img,
.carte-image video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition); }

.carte--grande .carte-image { aspect-ratio: 4 / 3; }
.carte--moyenne .carte-image { aspect-ratio: 1 / 1; }
.carte--petite .carte-image { aspect-ratio: 3 / 4; }

/* Badge multi-vues */
.carte-compteur {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(46, 43, 40, 0.55);
  color: white;
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* Corps de la carte */
.carte-corps { padding: 12px 16px 16px; text-align: center; }
.carte-titre { font-size: 0.95rem; font-weight: 700; color: var(--texte); margin-bottom: 6px; line-height: 1.3; }
.carte-badge { display: inline-block; font-size: 0.73rem; font-weight: 600; background: var(--dore-clair); color: var(--texte); padding: 3px 10px; border-radius: 50px; }

/* === SECTION COMPÉTENCES === */
#competences { background: var(--fond); }

.competences-avec-medias {
  display: grid;
  grid-template-columns: 160px 1fr 380px;
  gap: 20px;
  align-items: stretch;
}

.competences-gifs-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.competences-media-item {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(201, 162, 75, 0.06);
  border: 1.5px solid rgba(201, 162, 75, 0.15);
}

.competences-media-item img,
.competences-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.competences-media-item--photo img {
  object-fit: contain;
  background: var(--fond);
}

.competences-sous-titre {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-secondaire);
  opacity: 0.65;
  margin-top: 5px;
}

/* Tableau des compétences */
.competences-tableau {
  border: 1.5px solid rgba(201, 162, 75, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(46, 43, 40, 0.05);
}

.competences-groupe {
  display: grid;
  grid-template-columns: 210px 1fr;
  border-bottom: 1.5px solid rgba(201, 162, 75, 0.12);
}
.competences-groupe:last-child { border-bottom: none; }

.groupe-info {
  padding: 32px 28px;
  border-right: 1.5px solid rgba(201, 162, 75, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.groupe-label {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--texte);
  line-height: 1.3;
}

.groupe-label-detail {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--texte-secondaire);
  opacity: 0.75;
}

.groupe-stars {
  font-size: 1.15rem;
  letter-spacing: 4px;
  margin-top: 2px;
}

.competences-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.competences-liste li {
  padding: 16px 36px;
  font-size: 1rem;
  color: var(--texte);
  font-weight: 400;
  border-bottom: 1px solid rgba(201, 162, 75, 0.07);
  transition: background-color var(--transition);
  line-height: 1.4;
}
.competences-liste li:last-child { border-bottom: none; }
.competences-liste li:hover { background: rgba(201, 162, 75, 0.04); }

/* Variantes de groupe */
.competences-groupe--or .groupe-info { background: rgba(201, 162, 75, 0.09); }
.competences-groupe--or .groupe-stars { color: var(--dore); }
.competences-groupe--or .competences-liste { background: rgba(201, 162, 75, 0.04); }

.competences-groupe--bleu .groupe-info { background: rgba(127, 181, 181, 0.1); }
.competences-groupe--bleu .groupe-stars { color: var(--bleu-fonce); }
.competences-groupe--bleu .competences-liste { background: rgba(127, 181, 181, 0.05); }

.competences-groupe--rose .groupe-info { background: rgba(243, 221, 216, 0.55); }
.competences-groupe--rose .groupe-stars { color: #B87A6F; }
.competences-groupe--rose .competences-liste { background: rgba(243, 221, 216, 0.25); }

.competences-groupe--theorique .groupe-info { background: rgba(127, 181, 181, 0.06); }
.competences-groupe--theorique .groupe-label { color: var(--bleu-fonce); }
.competences-groupe--theorique .competences-liste li { color: var(--texte-secondaire); }

.competences-groupe--decouvrir .groupe-info { background: var(--fond); }
.competences-groupe--decouvrir .groupe-label { color: var(--texte-secondaire); font-style: italic; }

/* Items "à découvrir" en pastilles */
.competences-liste--tags {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 36px;
  align-items: center;
}
.competences-liste--tags li {
  padding: 5px 16px;
  border: 1px dashed rgba(201, 162, 75, 0.35);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--texte-secondaire);
  font-style: italic;
  background: transparent;
  transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}
.competences-liste--tags li:hover { background: rgba(201, 162, 75, 0.05); border-color: var(--dore); color: var(--texte); font-style: normal; }


/* === SECTION PARCOURS === */
#parcours { background: var(--rose); }
.timeline { position: relative; padding-left: 40px; max-width: 720px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--dore); border-radius: 2px; opacity: 0.5; }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-point { position: absolute; left: -36px; top: 6px; width: 18px; height: 18px; background: var(--fond); border: 3px solid var(--dore); border-radius: 50%; box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.12); }
.timeline-date { display: block; font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 0.8rem; color: var(--dore); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.timeline-titre { font-size: 1.05rem; font-weight: 700; color: var(--texte); margin-bottom: 4px; }
.timeline-contenu p { color: var(--texte-secondaire); font-size: 0.93rem; }

/* === SECTION CONTACT === */
#contact { background: var(--fond); text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.contact-texte { font-size: 1.2rem; color: var(--texte); font-weight: 600; max-width: 480px; line-height: 1.5; }

.btn-instagram {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bleu); color: white;
  font-family: 'Nunito', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 15px 34px; border-radius: var(--radius-btn);
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-instagram:hover { background: var(--bleu-fonce); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(127, 181, 181, 0.4); }
.icon-instagram { width: 22px; height: 22px; flex-shrink: 0; }

.contact-email {
  position: relative;
  font-size: 0.95rem;
  color: var(--texte-secondaire);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  cursor: copy;
  transition: color var(--transition), border-color var(--transition);
}
.contact-email:hover { color: var(--dore); border-color: var(--dore); }
.contact-email::after {
  content: 'Adresse copiée !';
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--texte);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.contact-email.copie { color: var(--dore); border-color: var(--dore); }
.contact-email.copie::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === FOOTER === */
footer { background: var(--fond); border-top: 1px solid rgba(201, 162, 75, 0.18); padding: 22px 28px; text-align: center; }
footer p { font-size: 0.85rem; color: var(--texte-secondaire); }

.hommage-claude {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  opacity: 0.38;
  transition: opacity 0.4s ease;
}
.hommage-claude:hover { opacity: 0.75; }

.hommage-enclume {
  width: 28px;
  height: 20px;
  color: var(--dore);
  flex-shrink: 0;
  animation: enclume-brille 3s ease-in-out infinite;
}

.hommage-texte {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--texte-secondaire);
  letter-spacing: 0.01em;
}

.hommage-lien {
  color: var(--dore);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.hommage-lien:hover { border-color: var(--dore); }

@keyframes enclume-brille {
  0%, 100% { filter: drop-shadow(0 0 0px transparent); color: var(--dore); }
  50%       { filter: drop-shadow(0 0 8px rgba(201,162,75,0.9)); color: var(--dore-clair); }
}

/* === MODAL === */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal.ouvert { opacity: 1; pointer-events: all; }
.modal-overlay { position: absolute; inset: 0; background: rgba(46, 43, 40, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; }
.modal-contenu {
  position: relative; border-radius: 20px;
  max-width: 680px; width: 100%; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(46, 43, 40, 0.5);
  transform: scale(0.96); transition: transform 0.3s ease;
  overflow: hidden;
}
.modal.ouvert .modal-contenu { transform: scale(1); }
.modal-fermer {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  background: rgba(250, 246, 240, 0.92); border: none;
  width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem;
  cursor: pointer; color: var(--texte);
  display: flex; align-items: center; justify-content: center;
  transition: background-color var(--transition);
  box-shadow: 0 2px 8px rgba(46, 43, 40, 0.15);
}
.modal-fermer:hover { background: var(--dore-clair); }
.modal-fermer:focus-visible { outline: 3px solid var(--dore); outline-offset: 2px; }

.modal-image { width: 100%; max-height: 68vh; object-fit: contain; display: block; background: #1a1816; }
.modal-infos {
  padding: 16px 24px 22px;
  background: var(--fond);
}
.modal-materiau { display: none; }
.modal-titre {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--texte);
  margin-bottom: 8px;
}
.modal-description {
  font-size: 0.88rem;
  color: var(--texte-secondaire);
  line-height: 1.65;
  min-height: 1.5em;
}
/* Miniatures modal */
.modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 28px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.modal-thumb {
  width: 60px; height: 60px; flex-shrink: 0;
  object-fit: cover; border-radius: 10px;
  cursor: pointer; opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity var(--transition), border-color var(--transition);
}
.modal-thumb:hover { opacity: 0.8; }
.modal-thumb.active { opacity: 1; border-color: var(--dore); }

/* === ICONES GEMME (système de notation compétences) === */
.groupe-gemmes { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.icone-gemme { width: 14px; height: 18px; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }

/* === TIMELINE — ÉTAPE VEDETTE (bague épis de blé) === */
.timeline-item--vedette .timeline-contenu {
  background: linear-gradient(135deg, rgba(201,162,75,0.08) 0%, rgba(227,205,142,0.04) 100%);
  border: 1.5px solid rgba(201,162,75,0.25);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: -4px;
}
.timeline-point--vedette {
  background: var(--dore);
  border-color: var(--dore);
  width: 22px; height: 22px;
  left: -38px;
  box-shadow: 0 0 0 6px rgba(201,162,75,0.18);
}
.timeline-badge {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: white;
  background: var(--dore);
  padding: 3px 12px;
  border-radius: 50px;
  margin-bottom: 8px;
}

/* === CARTE VEDETTE (galerie créations) === */
.carte--vedette {
  border: 2px solid var(--dore);
  box-shadow: 0 6px 32px rgba(201,162,75,0.18);
}
.carte--vedette:hover { border-color: var(--dore); box-shadow: 0 16px 48px rgba(201,162,75,0.3); }
.carte-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}

.carte-vedette-badge,
.carte-coupdecoeur-badge,
.carte-premiersjoyaux-badge {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(46,43,40,0.2);
  color: white;
  display: inline-block;
}

.carte-vedette-badge { background: var(--dore); }
.carte-coupdecoeur-badge { background: #B87A6F; }
.carte-premiersjoyaux-badge { background: var(--bleu-fonce); }


/* === VERROU CHARLIE — COFFRE-FORT === */
.charlie-verrou {
  display: flex;
  justify-content: center;
  padding: 44px 20px 80px;
}

.coffre-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* Indicateur d'étapes */
.coffre-etapes {
  display: flex;
  align-items: center;
}

.coffre-pas {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(201,162,75,0.28);
  background: transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.coffre-pas.actif {
  border-color: var(--dore);
  background: rgba(201,162,75,0.28);
  transform: scale(1.3);
}
.coffre-pas.fait {
  border-color: var(--dore);
  background: var(--dore);
}
.coffre-pas-ligne {
  width: 30px;
  height: 1px;
  background: rgba(201,162,75,0.18);
}

/* Porte du coffre */
.coffre-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  transform-origin: center center;
}

.coffre-svg {
  cursor: ns-resize;
  width: 268px;
  height: 268px;
  display: block;
  filter:
    drop-shadow(0 24px 55px rgba(0,0,0,0.65))
    drop-shadow(0 5px 14px rgba(0,0,0,0.4));
  overflow: visible;
}

/* Verrous */
.coffre-verrou-rect {
  transition: fill 0.35s ease, stroke 0.35s ease;
}
.coffre-verrou-ouvert {
  fill: #233d2c !important;
  stroke: #142318 !important;
}

/* Succès : porte qui s'ouvre */
@keyframes coffre-ouvre {
  0%   { transform: scale(1) rotate(0deg) translateX(0);   opacity: 1;
         filter: drop-shadow(0 24px 55px rgba(0,0,0,0.65)); }
  25%  { transform: scale(1.05) rotate(-3deg) translateX(-4px); opacity: 1;
         filter: drop-shadow(0 0 30px rgba(78,158,112,0.6)) drop-shadow(0 24px 55px rgba(0,0,0,0.65)); }
  100% { transform: scale(0.72) rotate(-12deg) translateX(-28px); opacity: 0;
         filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }
}
.coffre-scene.coffre-ouvre {
  animation: coffre-ouvre 0.9s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

/* Commandes */
.coffre-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.coffre-tour {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,162,75,0.22);
  background: rgba(201,162,75,0.04);
  color: rgba(201,162,75,0.58);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color 0.16s, background 0.16s, color 0.16s, transform 0.1s;
}
.coffre-tour svg {
  width: 23px;
  height: 23px;
  overflow: visible;
}
.coffre-tour:hover {
  border-color: var(--dore);
  background: rgba(201,162,75,0.1);
  color: var(--dore);
}
.coffre-tour:active {
  transform: scale(0.88);
}

.coffre-enclencher {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1.5px solid rgba(201,162,75,0.42);
  background: transparent;
  color: rgba(201,162,75,0.78);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.coffre-enclencher:hover {
  background: var(--dore);
  border-color: var(--dore);
  color: #161210;
}

.coffre-erreur {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c0392b;
  margin: 0;
  text-align: center;
  max-width: 260px;
}

@keyframes coffre-tremble {
  0%, 100% { transform: translateX(0); }
  12%       { transform: translateX(-11px); }
  25%       { transform: translateX(11px); }
  37%       { transform: translateX(-7px); }
  50%       { transform: translateX(7px); }
  63%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}
.coffre-card.coffre-shake { animation: coffre-tremble 0.7s ease; }

.creations-onglet--charlie { border-color: rgba(201, 162, 75, 0.3); color: var(--texte-secondaire); display: inline-flex; align-items: center; gap: 8px; }
.charlie-lingot-icon { width: 26px; height: 16px; flex-shrink: 0; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }

/* === RETOUR HAUT CRÉATIONS === */
.creations-retour-haut {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.creations-retour-haut-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 162, 75, 0.4);
  color: var(--dore);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.creations-retour-haut-btn:hover {
  background: rgba(201, 162, 75, 0.08);
  border-color: var(--dore);
  transform: translateY(-3px);
}
.creations-retour-haut-btn svg {
  width: 20px;
  height: 20px;
}

/* === ONGLETS CRÉATIONS === */
.creations-onglets {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.creations-onglet {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 28px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--dore-clair);
  background: transparent;
  color: var(--texte-secondaire);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.creations-onglet:hover {
  border-color: var(--dore);
  color: var(--texte);
}
.creations-onglet.actif {
  background: var(--dore);
  border-color: var(--dore);
  color: white;
  box-shadow: 0 3px 12px rgba(201,162,75,0.3);
}


/* Galerie vide (catégorie sans créations) */
.grille-vide {
  text-align: center;
  padding: 60px 20px;
  color: var(--texte-secondaire);
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  opacity: 0.7;
}

/* === LOUPE DE BIJOUTIER === */
.loupe-bijoutier {
  position: fixed;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9000;
  background-repeat: no-repeat;

  /* Monture dorée */
  border: 4.5px solid #c9a24b;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.55),
    0 3px 10px rgba(0,0,0,0.35),
    inset 0 0 0 2px rgba(255,255,255,0.1),
    inset 0 3px 18px rgba(0,0,0,0.5);

  opacity: 0;
  transition: opacity 0.13s ease;
  will-change: transform, background-position;
}

.loupe-bijoutier.visible { opacity: 1; }

/* Reflet sur le verre */
.loupe-bijoutier::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 20px;
  width: 38px;
  height: 18px;
  background: rgba(255,255,255,0.13);
  border-radius: 50%;
  transform: rotate(-22deg);
  pointer-events: none;
}

/* Manche en laiton doré */
.loupe-bijoutier::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 13px;
  height: 58px;
  background: linear-gradient(165deg, #e8d494 0%, #c9a24b 38%, #a07830 70%, #7a5818 100%);
  border-radius: 5px 5px 10px 10px;
  transform-origin: top center;
  transform: rotate(45deg);
  box-shadow: 2px 3px 12px rgba(0,0,0,0.55);
}

/* Curseur masqué sur la photo du modal (la loupe le remplace) — souris uniquement */
@media (hover: hover) and (pointer: fine) {
  #modal.ouvert #modalImage { cursor: none; }
}

/* === RESPONSIVE — Tablette (600–1023px) === */
@media (max-width: 1023px) {
  .apropos-grid { grid-template-columns: 1fr 230px; gap: 40px; }
  .section-titre { font-size: 1.75rem; }
  .grille-creations { columns: 2; }
  .videos-grille { gap: 24px; }
  .competences-avec-medias { grid-template-columns: 1fr; }
  .competences-gifs-col { flex-direction: row; height: 180px; }
  .competences-avec-medias .competences-media-item--photo { height: 240px; }

}

/* === RESPONSIVE — Mobile (jusqu'à 599px) === */
@media (max-width: 599px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(250, 246, 240, 0.98); backdrop-filter: blur(10px);
    flex-direction: column; gap: 0; padding: 8px 0 16px;
    box-shadow: 0 10px 28px rgba(46, 43, 40, 0.1);
  }
  .nav-links.ouvert { display: flex; }
  .nav-links li a { display: block; padding: 13px 28px; font-size: 1rem; }

  section { padding: 68px 0; }
  .section-titre { font-size: 1.5rem; }
  .section-header { margin-bottom: 36px; }
  .section-titre--center { margin-bottom: 36px; }

  .scroll-indicator { bottom: 100px; }

  /* À propos — image au-dessus sur mobile */
  .apropos-grid { grid-template-columns: 1fr; gap: 28px; }
  .apropos-photo { order: -1; }
  .photo-ronde { width: 220px; margin: 0 auto; }

  /* Compétences — empilé sur mobile */
  .competences-avec-medias { grid-template-columns: 1fr; gap: 16px; }
  .competences-gifs-col { flex-direction: row; height: 160px; }
  .competences-avec-medias .competences-media-item--photo { height: 220px; }

  /* Galerie mobile : 1 colonne */
  .grille-creations { columns: 1; }
  .carte--grande .carte-image,
  .carte--moyenne .carte-image,
  .carte--petite .carte-image { aspect-ratio: 4 / 3; }
  /* Timeline */
  .timeline { padding-left: 32px; }
  .timeline-point { left: -29px; }

  /* Modal en feuillet bas sur mobile */
  .modal { padding: 0; align-items: flex-end; }
  .modal-contenu { max-height: 92vh; border-radius: 24px 24px 0 0; max-width: 100%; }
  .modal-image { border-radius: 24px 24px 0 0; }

  /* Tableau compétences mobile : empilé */
  .competences-groupe { grid-template-columns: 1fr; }
  .groupe-info { border-right: none; border-bottom: 1.5px solid rgba(201, 162, 75, 0.12); padding: 20px 24px; flex-direction: row; align-items: center; justify-content: space-between; }
  .competences-liste li { padding: 13px 24px; }
  .competences-liste--tags { padding: 16px 24px; }

  /* Contact */
  .contact-texte { font-size: 1.1rem; }

  /* Coffre-fort Charlie — adapté petit écran */
  .coffre-svg {
    width: min(268px, calc(100vw - 48px));
    height: min(268px, calc(100vw - 48px));
  }
  .coffre-controls { gap: 10px; }
  .coffre-tour { width: 46px; height: 46px; }
  .coffre-tour svg { width: 19px; height: 19px; }
  .coffre-enclencher { padding: 11px 18px; font-size: 0.72rem; }
}
