@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;700;900&family=Poppins:wght@300;400;600&family=Caveat:wght@400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bordeaux : #450920;
  --bleu     : #bfebff;
  --jaune    : #ffde59;
  --orange   : #f37221;
}

body {
  background-color: var(--bordeaux);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  position: relative;
  overflow-x: clip;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

main, section, footer { position: relative; z-index: 1; }

/* --- HEADER --- */
header {
  position: sticky; top: 0; z-index: 100;
  background-color: var(--bordeaux);
  padding: 14px 40px 0;
  display: flex; flex-direction: column; align-items: center;
  border-bottom: 2px solid rgba(255,255,255,0.08);
}

.logo-cloud { 
  display: flex; 
  justify-content: center; 
  margin-bottom: 10px; 
  text-decoration: none; 
}
.logo-cloud svg, .logo-cloud-svg { width: 76px; height: 37px; transition: transform 0.3s; }
.logo-cloud:hover svg { transform: scale(1.1); }

header nav { display: flex; gap: 42px; }
header nav a {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: #fff;
  padding-bottom: 10px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
header nav a:hover, header nav a.active {
  color: var(--jaune); border-bottom-color: var(--jaune);
}

/* --- HERO --- */
#hero {
  display: flex;
  flex-direction: column;
  padding: 60px 80px 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.hero-text { flex: 1; }

.hero-greetings {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-greetings .row {
  display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap;
}

.hero-greetings .row:nth-child(1) { transform: translateX(0); }
.hero-greetings .row:nth-child(2) { transform: translateX(44px); }

.salut { color: #fff;          display: inline-block; transform: translateY(-16px); }
.hello { color: var(--orange); display: inline-block; transform: translateY(14px); }
.hola  { color: var(--bleu);   display: inline-block; transform: translateY(-12px); }
.salam { color: var(--jaune);  display: inline-block; transform: translateY(16px); font-size: 0.85em; }

.hero-annotation {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  color: var(--jaune);
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.4;
}

.hero-annotation strong {
  font-style: italic;
  font-weight: 600;
}

.hero-annotation svg {
  width: 90px;
  margin-top: 4px;
  margin-left: 38px;
}

.hero-photo { flex: 0 0 auto; display: flex; justify-content: center; margin-right: 60px; }

.timbre-group {
  position: relative;
  display: inline-block;
}

.timbre {
  background: #fff;
  padding: 22px;
  width: 260px;
  transform: rotate(-1.5deg);
  box-shadow: 0 16px 50px rgba(0,0,0,0.5);
  -webkit-mask:
    radial-gradient(circle at 50% 0,    transparent 9px, black 9px) top    / 18px 14px repeat-x,
    radial-gradient(circle at 50% 100%, transparent 9px, black 9px) bottom / 18px 14px repeat-x,
    radial-gradient(circle at 0   50%, transparent 9px, black 9px) left   / 14px 18px repeat-y,
    radial-gradient(circle at 100% 50%, transparent 9px, black 9px) right  / 14px 18px repeat-y,
    linear-gradient(black, black) 14px 14px / calc(100% - 28px) calc(100% - 28px) no-repeat;
  mask:
    radial-gradient(circle at 50% 0,    transparent 9px, black 9px) top    / 18px 14px repeat-x,
    radial-gradient(circle at 50% 100%, transparent 9px, black 9px) bottom / 18px 14px repeat-x,
    radial-gradient(circle at 0   50%, transparent 9px, black 9px) left   / 14px 18px repeat-y,
    radial-gradient(circle at 100% 50%, transparent 9px, black 9px) right  / 14px 18px repeat-y,
    linear-gradient(black, black) 14px 14px / calc(100% - 28px) calc(100% - 28px) no-repeat;
}

.timbre img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.timbre-small {
  position: absolute;
  bottom: 20px;
  left: -148px;
  width: 160px;
  padding: 14px;
  transform: rotate(10deg);
  z-index: 1;
  -webkit-mask:
    radial-gradient(circle at 50% 0,    transparent 5.5px, black 5.5px) top    / 11px 9px repeat-x,
    radial-gradient(circle at 50% 100%, transparent 5.5px, black 5.5px) bottom / 11px 9px repeat-x,
    radial-gradient(circle at 0   50%, transparent 5.5px, black 5.5px) left   / 9px 11px repeat-y,
    radial-gradient(circle at 100% 50%, transparent 5.5px, black 5.5px) right  / 9px 11px repeat-y,
    linear-gradient(black, black) 9px 9px / calc(100% - 18px) calc(100% - 18px) no-repeat;
  mask:
    radial-gradient(circle at 50% 0,    transparent 5.5px, black 5.5px) top    / 11px 9px repeat-x,
    radial-gradient(circle at 50% 100%, transparent 5.5px, black 5.5px) bottom / 11px 9px repeat-x,
    radial-gradient(circle at 0   50%, transparent 5.5px, black 5.5px) left   / 9px 11px repeat-y,
    radial-gradient(circle at 100% 50%, transparent 5.5px, black 5.5px) right  / 9px 11px repeat-y,
    linear-gradient(black, black) 9px 9px / calc(100% - 18px) calc(100% - 18px) no-repeat;
}

.timbre-small img {
  height: 225px;
}

/* --- TICKER --- */
.ticker-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  border-top: 1px solid var(--jaune);
  border-bottom: 1px solid var(--jaune);
  padding: 10px 0;
}

.ticker {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 25s linear infinite;
}

.ticker span {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bleu);
}
.ticker-cloud {
  width: 46px;
  height: 22px;
  flex-shrink: 0;
  align-self: center;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- COMPÉTENCES --- */
#competences { padding: 80px 80px 40px; }
#competences h2 {
  font-family: 'League Spartan', sans-serif; font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem); color: var(--jaune);
  text-transform: uppercase; margin-bottom: 48px;
}

.competences-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.comp-card {
  background: rgba(255,255,255,0.07); border-radius: 20px;
  padding: 36px 24px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}
.comp-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.12); }
.comp-card .label {
  font-family: 'League Spartan', sans-serif; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.comp-card .icon { font-size: 3.8rem; line-height: 1; }
.comp-card:nth-child(1) .label { color: #fff; }
.comp-card:nth-child(2) .label { color: var(--jaune); }
.comp-card:nth-child(3) .label { color: var(--bleu); }
.comp-card:nth-child(4) .label { color: var(--orange); }
.comp-card:nth-child(1) .icon { color: #fff; }
.comp-card:nth-child(2) .icon { color: var(--jaune); }
.comp-card:nth-child(3) .icon { color: var(--bleu); }
.comp-card:nth-child(4) .icon { color: var(--orange); }

/* --- CTA --- */
#cta {
  padding: 60px 80px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

#cta h2 {
  font-family: 'League Spartan', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  background: var(--bleu);
  color: var(--bordeaux);
  padding: 16px 32px;
  display: inline-block;
  transform: rotate(-2deg);
}

.cta-sub {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: #fff;
  margin-top: -16px;
}

.btn,
.btn-card {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  background: var(--orange);
  color: #fff;
}

.btn:hover,
.btn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.btn-primary,
.btn-secondary {
  background: var(--orange);
  color: #fff;
}

/* --- FOOTER --- */
footer {
  background: #2a0612;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 40px;
}

.footer-logo { display: inline-block; transition: opacity 0.2s; text-decoration: none; flex-shrink: 0; }
.footer-logo:hover { opacity: 0.75; }

.footer-center { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.footer-nav { display: flex; align-items: center; gap: 0; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  color: #fff; font-size: 0.88rem;
  text-decoration: none; transition: color 0.2s;
  padding: 0 16px;
}
.footer-nav a:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.35); }
.footer-nav a:hover { color: var(--jaune); }

.footer-cta {
  font-family: 'League Spartan', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding: 14px 28px;
  border-radius: 50px; border: none;
  background: var(--orange); color: #fff;
  white-space: nowrap; flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.footer-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }

.footer-bottom {
  text-align: center;
  padding: 16px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
}

.footer-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--jaune);
  letter-spacing: 0.02em;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .competences-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #hero { padding: 40px 24px 0; }
  .hero-content { flex-direction: column; align-items: center; text-align: center; gap: 30px; padding-bottom: 40px; }
  .hero-photo { margin-right: 0; }
  .timbre { width: 200px; }
  .timbre img { height: 260px; }
  .hero-greetings { font-size: clamp(2.5rem, 10vw, 4rem); align-items: center; }
  .hero-greetings .row:nth-child(1) { transform: none; }
  .hero-greetings .row:nth-child(2) { transform: none; }
  .salut, .hello, .hola, .salam { transform: none; }
  .competences-grid { grid-template-columns: 1fr 1fr; }
  header { padding: 12px 20px 0; }
  header nav { gap: 20px; flex-wrap: wrap; justify-content: center; }
  #competences, #cta { padding: 50px 24px; }
  #cta { justify-content: center; }
}

@media (max-width: 480px) {
  .competences-grid { grid-template-columns: 1fr; }
  header nav { gap: 14px; font-size: 0.8rem; }
}

/* --- BURGER MENU (mobile uniquement) --- */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  order: 2;
}
.burger-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 20px;
  }
  .logo-cloud { margin-bottom: 0; order: 1; }
  .burger-btn { display: flex; }
  header nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: nowrap;
  }
  header nav.nav-open { display: flex; }
  header nav a {
    padding: 14px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    border-bottom-color: rgba(255,255,255,0.08);
    font-size: 1rem;
  }
  header nav a:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  header nav a { font-size: 0.95rem; }
}
@media (max-width: 768px) {
  .hero-content { transform: none; }
  /* Photos homepage mobile */
  .timbre-group { padding-left: 170px; }
  .timbre-small { left: 5px; }
}

/* ─── Footer responsive ─── */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 32px 20px;
  }
  .footer-logo { display: none; }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .footer-cta { margin-top: 4px; }
  .footer-bottom { text-align: center; padding: 16px 20px; }
}
/* ─── Footer socials ─── */
.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.footer-social-link {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.footer-social-link:hover {
  background: rgba(255,255,255,0.3);
}

/* ─── Footer mobile: remove nav dividers ─── */
@media (max-width: 768px) {
  .footer-nav a { border-right: none !important; }
}

/* ─── No horizontal scroll on mobile ─── */
@media (max-width: 768px) {
  html, body {
    overflow-x: clip;
    max-width: 100%;
  }
}

/* ─── CTA h2 mobile (1 ligne) ─── */
@media (max-width: 768px) {
  #cta { padding: 40px 20px 60px; }
  #cta h2 { font-size: 1.5rem; padding: 12px 20px; }
}
