/* ============================================================
   SARTEMYS — Template CSS
   Art Raffiné, Moderne, Original
   Compatible Joomla 3.x / 4.x
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Cinzel:wght@400;600;900&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --black: #050505;
  --dark: #0a0a0a;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --purple: #9b4dca;
  --pink: #e040a0;
  --teal: #00b8d4;
  --green: #69c449;
  --white: #f5f0e8;
  --grey: #888;
  --gradient-spectrum: linear-gradient(90deg,#e040a0,#9b4dca,#00b8d4,#69c449,#f5c518,#e040a0);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}


/* SÉCURITÉ JOOMLA — Forcer la visibilité du hero si animations bloquées */
.sartemys-hero .hero-eyebrow,
.sartemys-hero .hero-title,
.sartemys-hero .hero-tagline,
.sartemys-hero .hero-cta,
.sartemys-hero .hero-scroll {
  visibility: visible !important;
}
/* Fallback si @keyframes ne s'exécutent pas */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title, .hero-tagline, .hero-cta, .hero-scroll {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* SKIP LINK */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--gold); color: var(--black);
  padding: .5rem 1rem; font-family: 'Cinzel', serif;
  font-size: .7rem; letter-spacing: .1em; z-index: 9999; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .35; pointer-events: none; z-index: 0;
}

@keyframes shimmer { to { background-position: 200% center; } }
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes breathe { from { opacity:.6; transform:scale(1); } to { opacity:1; transform:scale(1.04); } }

/* ── NAV ── */
.sartemys-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
  background: linear-gradient(to bottom, rgba(5,5,5,.97), transparent);
  backdrop-filter: blur(2px);
}
.nav-logo {
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.15rem;
  letter-spacing: .25em; color: var(--white); text-decoration: none;
}
.nav-logo span {
  background: var(--gradient-spectrum); background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; animation: shimmer 4s linear infinite;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: 'Cinzel', serif; font-size: .68rem; letter-spacing: .18em;
  color: var(--grey); text-decoration: none; transition: color .25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--gradient-spectrum);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.lang-switch { display: flex; gap: .3rem; align-items: center; }
.lang-btn {
  background: none; border: none; color: var(--grey);
  font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: .12em;
  cursor: pointer; padding: .2rem .4rem; transition: color .2s;
}
.lang-btn.active { color: var(--gold); border-bottom: 1px solid var(--gold); }
.lang-btn:hover { color: var(--white); }
.lang-sep { color: var(--grey); font-size: .7rem; }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1px; background: var(--white); transition: transform .3s, opacity .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0; background: rgba(5,5,5,.97);
  z-index: 850; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Cinzel', serif; font-size: 1.4rem; letter-spacing: .2em; color: var(--white); text-decoration: none; }
.mobile-menu a:hover { color: var(--gold); }

/* ── HERO ── */
.sartemys-hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden; text-align: center; padding: 6rem 2rem 4rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 60%, rgba(155,77,202,.12) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 20%, rgba(0,184,212,.08) 0%, transparent 60%),
              radial-gradient(ellipse 40% 30% at 20% 80%, rgba(224,64,160,.08) 0%, transparent 60%);
  animation: breathe 8s ease-in-out infinite alternate;
}
.hero-eyebrow {
  font-family: 'Cinzel', serif; font-size: .65rem; letter-spacing: .45em;
  color: var(--gold); margin-bottom: 1.8rem;
  opacity: 1;
  animation: fadeUp 1s .3s both;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4.5rem, 12vw, 10rem); font-weight: 300;
  line-height: .9; letter-spacing: -.02em;
  opacity: 1;
  animation: fadeUp 1s .5s both;
}
.hero-title em {
  font-style: italic;
  background: var(--gradient-spectrum); background-size: 300% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; animation: shimmer 5s linear infinite;
}
.hero-tagline {
  margin-top: 2rem; font-size: .85rem; letter-spacing: .3em;
  color: var(--grey); font-family: 'Cinzel', serif;
  opacity: 1;
  animation: fadeUp 1s .8s both;
}
.hero-tagline span { color: var(--white); }
.hero-cta {
  margin-top: 3rem; display: flex; gap: 1.2rem;
  justify-content: center; flex-wrap: wrap;
  opacity: 1;
  animation: fadeUp 1s 1.1s both;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  opacity: 1;
  animation: fadeUp 1.5s 2s both;
}
.hero-scroll span { font-family: 'Cinzel', serif; font-size: .55rem; letter-spacing: .3em; color: var(--grey); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--grey), transparent); }

/* ── BTNS ── */
.btn-primary {
  font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: .2em;
  padding: .9rem 2.2rem; background: var(--gold); color: var(--black);
  border: none; cursor: pointer; text-decoration: none;
  transition: background .25s, transform .2s; font-weight: 600; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--black); }
.btn-ghost {
  font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: .2em;
  padding: .9rem 2.2rem; background: transparent; color: var(--white);
  border: 1px solid rgba(245,240,232,.3); cursor: pointer; text-decoration: none;
  transition: border-color .25s, transform .2s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); color: var(--white); }

/* ── SPECTRUM LINE ── */
.spectrum-line {
  height: 2px; background: var(--gradient-spectrum);
  background-size: 300% auto; animation: shimmer 4s linear infinite;
}

/* ── SECTIONS ── */
.sartemys-section { padding: 7rem 0; position: relative; }
.sartemys-section.bg-dark { background: #080808; }
.sartemys-container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }

.section-eyebrow {
  font-family: 'Cinzel', serif; font-size: .6rem; letter-spacing: .5em;
  color: var(--gold); margin-bottom: .8rem; display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; line-height: 1;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-desc { margin-top: 1.2rem; color: var(--grey); max-width: 500px; line-height: 1.8; font-size: .9rem; }
.section-header { margin-bottom: 4rem; }

/* ── REVEAL ── */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
body.can-reveal .reveal { opacity: 0; transform: translateY(24px); }
body.can-reveal .reveal.visible { opacity: 1; transform: none; }

/* ── ART GRID ── */
.art-tabs { display: flex; margin-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.art-tab {
  font-family: 'Cinzel', serif; font-size: .7rem; letter-spacing: .2em;
  padding: .8rem 2rem; background: none; border: none; color: var(--grey);
  cursor: pointer; position: relative; transition: color .25s;
}
.art-tab::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--gradient-spectrum);
  transform: scaleX(0); transition: transform .3s;
}
.art-tab.active, .art-tab:hover { color: var(--white); }
.art-tab.active::after { transform: scaleX(1); }
.art-panel { display: none; }
.art-panel.active { display: block; }
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.art-item { aspect-ratio: 4/3; background: #111; position: relative; overflow: hidden; cursor: pointer; }
.art-item:nth-child(1) { aspect-ratio: 8/5; grid-column: span 2; background: linear-gradient(135deg,#1a0a2e,#2d1a4a); }
.art-item:nth-child(2) { background: linear-gradient(135deg,#0a1a2e,#1a2d4a); }
.art-item:nth-child(3) { background: linear-gradient(135deg,#1a2e0a,#2a4010); }
.art-item:nth-child(4) { aspect-ratio: 8/5; grid-column: span 2; grid-column-start: 2; background: linear-gradient(135deg,#2e0a1a,#4a1a2d); }
.art-item:nth-child(5) { background: linear-gradient(135deg,#0a2e2e,#1a4040); }
.art-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .8rem; color: rgba(255,255,255,.15);
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.1rem; transition: color .3s;
}
.art-item:hover .art-placeholder { color: rgba(255,255,255,.4); }
.art-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,.85) 0%, transparent 50%);
  opacity: 0; transition: opacity .35s; display: flex; align-items: flex-end; padding: 1.5rem;
}
.art-item:hover .art-item-overlay { opacity: 1; }
.art-item-label { font-family: 'Cinzel', serif; font-size: .65rem; letter-spacing: .2em; color: var(--white); }
.placeholder-icon { font-size: 2rem; opacity: .3; }

/* ── PROJECTS ── */
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; }
.project-card {
  padding: 3rem; background: #0d0d0d; position: relative;
  overflow: hidden; cursor: pointer; transition: background .35s;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.project-card:nth-child(1)::before { background: var(--purple); }
.project-card:nth-child(2)::before { background: var(--pink); }
.project-card:nth-child(3)::before { background: var(--teal); }
.project-card:nth-child(4)::before { background: var(--gold); }
.project-card:hover { background: #111; }
.project-card:hover::before { transform: scaleX(1); }
.project-num { font-family: 'Cinzel', serif; font-size: .6rem; letter-spacing: .3em; color: var(--grey); margin-bottom: 1.5rem; }
.project-name { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; margin-bottom: .8rem; }
.project-desc { font-size: .85rem; color: var(--grey); line-height: 1.7; margin-bottom: 1.5rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.project-tag { font-family: 'Cinzel', serif; font-size: .58rem; letter-spacing: .15em; padding: .3rem .8rem; border: 1px solid rgba(255,255,255,.15); color: var(--grey); }

/* ── JOURNALISM ── */
.journalism-list { display: flex; flex-direction: column; }
.journalism-item {
  display: grid; grid-template-columns: 1fr auto; align-items: start;
  padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
  cursor: pointer; transition: padding-left .3s; gap: 2rem;
}
.journalism-item:hover { padding-left: 1rem; }
.journalism-media { font-family: 'Cinzel', serif; font-size: .6rem; letter-spacing: .3em; color: var(--gold); margin-bottom: .5rem; }
.journalism-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 300; margin-bottom: .4rem; }
.journalism-excerpt { font-size: .82rem; color: var(--grey); line-height: 1.6; }
.journalism-arrow { font-size: 1.2rem; color: var(--grey); transition: color .25s, transform .25s; }
.journalism-item:hover .journalism-arrow { color: var(--white); transform: translateX(4px); }

/* ── ABOUT ── */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-visual {
  position: relative; aspect-ratio: 3/4;
  background: linear-gradient(135deg, #1a0a2e, #0a1a2e, #2e0a1a);
}
.about-visual::before {
  content: ''; position: absolute; inset: -1px;
  background: var(--gradient-spectrum); background-size: 300% auto;
  animation: shimmer 5s linear infinite; z-index: -1;
}
.about-visual-inner {
  position: absolute; inset: 1px;
  background: linear-gradient(135deg, #1a0a2e, #0a1a2e);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem; color: rgba(255,255,255,.2);
}
.about-photo-placeholder { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem; color: rgba(255,255,255,.2); }
.about-body { color: var(--grey); line-height: 1.9; font-size: .9rem; margin-bottom: 1.5rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.about-tag { font-family: 'Cinzel', serif; font-size: .6rem; letter-spacing: .15em; padding: .4rem 1rem; border: 1px solid rgba(201,168,76,.4); color: var(--gold); }

/* ── CONTACT FORM ── */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact-text { color: var(--grey); line-height: 1.9; font-size: .9rem; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: .8rem; }
.contact-link { display: flex; align-items: center; gap: 1rem; color: var(--grey); text-decoration: none; font-size: .85rem; transition: color .25s; }
.contact-link:hover { color: var(--gold); }
.contact-link-icon { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: .5rem; }
.form-label { font-family: 'Cinzel', serif; font-size: .58rem; letter-spacing: .25em; color: var(--grey); }
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: var(--white); padding: .9rem 1rem; font-family: 'DM Sans', sans-serif;
  font-size: .85rem; width: 100%; outline: none; transition: border-color .25s;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); }
.form-select option { background: #111; }
.form-textarea { resize: vertical; min-height: 130px; }
.form-notice { font-size: .75rem; color: var(--grey); font-style: italic; }
.form-success { display: none; text-align: center; padding: 3rem; background: rgba(201,168,76,.05); border: 1px solid rgba(201,168,76,.2); }
.form-success.show { display: block; }
.form-success p { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-style: italic; color: var(--gold); }

/* ── NEWSLETTER ── */
.newsletter-strip { background: #0d0d0d; border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); padding: 3rem; }
.newsletter-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.newsletter-text { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 300; }
.newsletter-text span { color: var(--gold); font-style: italic; }
.newsletter-form { display: flex; }
.newsletter-input {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-right: none;
  color: var(--white); padding: .8rem 1.2rem; font-family: 'DM Sans', sans-serif;
  font-size: .85rem; width: 250px; outline: none;
}
.newsletter-submit { font-family: 'Cinzel', serif; font-size: .65rem; letter-spacing: .15em; padding: .8rem 1.5rem; background: var(--gold); color: var(--black); border: none; cursor: pointer; transition: background .25s; font-weight: 600; }
.newsletter-submit:hover { background: var(--gold-light); }

/* ── JOOMLA COMPONENT ZONE ── */
.joomla-component { max-width: 1200px; margin: 0 auto; padding: 7rem 3rem; }
.joomla-component h1 { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300; margin-bottom: 1.5rem; }
.joomla-component h1 em { font-style: italic; color: var(--gold); }
.joomla-component p { color: var(--grey); line-height: 1.9; margin-bottom: 1rem; }
.joomla-component a { color: var(--gold); text-decoration: none; }
.joomla-component a:hover { color: var(--gold-light); }
.joomla-component img { max-width: 100%; height: auto; }

/* Joomla module overrides */
.moduletable { margin-bottom: 1.5rem; }
.moduletable h3 { font-family: 'Cinzel', serif; font-size: .8rem; letter-spacing: .2em; color: var(--gold); margin-bottom: 1rem; }

/* ── FOOTER ── */
.sartemys-footer { background: #030303; padding: 3rem; border-top: 1px solid rgba(255,255,255,.05); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.footer-logo { font-family: 'Cinzel', serif; font-weight: 900; font-size: 1rem; letter-spacing: .3em; color: var(--grey); }
.footer-links { display: flex; gap: 2rem; list-style: none; justify-content: center; }
.footer-links a { font-family: 'Cinzel', serif; font-size: .58rem; letter-spacing: .2em; color: var(--grey); text-decoration: none; transition: color .25s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: .72rem; color: rgba(136,136,136,.5); text-align: right; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sartemys-nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .sartemys-container { padding: 0 1.5rem; }
  .sartemys-section { padding: 5rem 0; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr; }
  .art-item:nth-child(1), .art-item:nth-child(4) { grid-column: span 1; aspect-ratio: 4/3; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-copy { text-align: center; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .hero-title { font-size: clamp(3rem, 16vw, 6rem); }
  .joomla-component { padding: 5rem 1.5rem; }
}
@media (max-width: 600px) {
  .art-tabs { overflow-x: auto; }
  .hero-cta { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
