/* =========================================
   STYLE.CSS - BUREAU JOURDAN
   Thème : Cinematic Luxury (Bordeaux & Or)
   ========================================= */

:root {
  --primary-color: #5e1119; /* Rouge Bordeaux profond */
  --gold: #bd9b60; /* Or mat luxueux */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  --text-main: #2c2c2c;
  --text-light: #666;
}

/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  overflow-x: hidden;
  background-color: #000;
}

a {
  text-decoration: none;
  transition: 0.3s;
  color: inherit;
}
ul {
  list-style: none;
}

/* =========================================
   FOND ANIMÉ
   ========================================= */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.background-image {
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1597075687490-8f673c6c17f6?q=80&w=2574&auto=format&fit=crop')
    no-repeat center center;
  background-size: cover;
  animation: zoomEffect 25s infinite alternate ease-in-out;
  transition: background-image 0.5s ease-in-out;
}

@keyframes zoomEffect {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

/* =========================================
   HEADER INTELLIGENT (SMART NAVBAR)
   ========================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;

  /* TRANSITION FLUIDE */
  transition:
    transform 0.4s ease-in-out,
    background 0.3s;

  /* EFFET VERRE GIVRÉ ORDINATEUR */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Classe pour cacher le menu au scroll */
.header-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  height: 55px; /* Hauteur PC */
  width: auto;
  transition:
    transform 0.3s ease,
    opacity 0.3s;
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
  opacity: 0.8;
}

nav ul {
  display: flex;
  gap: 40px;
}

nav a {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  transition: color 0.3s;
}

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

/* =========================================
   PANNEAU VERRE
   ========================================= */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
}

/* =========================================
   SECTIONS
   ========================================= */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero-content {
  max-width: 900px;
  padding: 70px 80px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.5s ease-out forwards;
  animation-delay: 0.5s;
}

.top-tag {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: 600;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
  line-height: 1.1;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 40px;
  color: var(--text-light);
  line-height: 1.6;
}

.btn-luxe {
  display: inline-block;
  padding: 15px 45px;
  background: var(--primary-color);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
}

.btn-luxe:hover {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.content-section {
  padding: 100px 10%;
  position: relative;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.card {
  padding: 50px 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.95);
}

.icon-gold {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 25px;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #000;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px;
  text-align: center;
}

.contact-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

form {
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input,
textarea {
  padding: 15px;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid var(--primary-color);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

input:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.9);
}

button[type='submit'] {
  cursor: pointer;
  width: 100%;
}

footer {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  position: relative;
  z-index: 10;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
}

.antispam {
  display: none !important;
}

/* TIMELINE & ACCORDÉON */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
  padding-left: 30px;
  border-left: 2px solid rgba(189, 155, 96, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--gold);
}

.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 5px;
}

.timeline-content {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.6s ease-in-out;
}

.accordion-content.open {
  max-height: 2000px;
  opacity: 1;
  margin-top: 30px;
}

.btn-toggle {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 30px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.3s;
  display: inline-block;
  margin-top: 10px;
}

.btn-toggle:hover {
  background: var(--primary-color);
  color: #fff;
}

.btn-toggle i {
  margin-left: 8px;
  transition: transform 0.3s;
}
.btn-toggle.active i {
  transform: rotate(180deg);
}

/* =========================================
   RESPONSIVE (MOBILES) - VERSION CORRIGÉE
   ========================================= */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  .hero-content {
    padding: 40px 25px;
  }

  header {
    padding: 15px 10px;
    flex-direction: column;
    gap: 15px;
    /* On force le centrage de tout ce qu'il y a dans le header */
    align-items: center !important;
    text-align: center;

    /* Fond pour la lisibilité mobile */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
  }

  /* LOGO MOBILE - CENTRAGE FORCÉ */
  .logo-link {
    width: 100%; /* Prend toute la largeur */
    display: flex;
    justify-content: center !important; /* Centre l'image dans le lien */
    margin: 0 auto;
  }

  .logo-img {
    display: block; /* S'assure qu'elle n'est pas inline */
    height: auto;
    width: 70%;
    max-width: 280px;
    margin: 0 auto; /* Force le centrage par marges aussi */
  }

  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
  nav a {
    font-size: 0.7rem;
  }

  .contact-container {
    padding: 40px 20px;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   LOGO TEXTE FINAL (Style Mixte & Noir)
   ========================================= */
.text-logo {
  font-family: 'Helvetica Neue', 'Lato', sans-serif;
  font-weight: 100;
  line-height: 1;
  color: #000000; /* Noir */
  margin-bottom: 20px;
  letter-spacing: 1px;

  /* Alignement parfait sur la ligne de base (le sol) */
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;

  /* Animation */
  opacity: 0;
  animation: fadeUp 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

.word-group {
  white-space: nowrap;
}

/* 1. LES INITIALES (B et J) - MÊME TAILLE */
.text-logo .big-letter {
  font-size: 3.8rem; /* Taille identique pour B et J */
  text-transform: uppercase;
  font-weight: 100;
  /* Pas de décalage, ils sont posés sur la ligne */
}

/* 2. "ureau" (Minuscule mais agrandie pour la hauteur) */
.text-logo .lower-text {
  font-size: 2.8rem; /* Plus grand que les petites capitales pour compenser la hauteur du 'u' */
  text-transform: lowercase; /* Force la minuscule */
  font-weight: 300; /* Un tout petit peu plus épais pour la lisibilité */
  letter-spacing: 0px; /* Les minuscules sont mieux serrées */
}

/* 3. "OURDAN" (Petites Capitales) */
.text-logo .small-caps {
  font-size: 2.2rem; /* Taille standard des petites capitales */
  text-transform: uppercase; /* Force la majuscule */
  font-weight: 300;
  letter-spacing: 3px;
  margin-left: 3px;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .text-logo {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .spacer {
    display: none;
  }

  /* On réduit tout proportionnellement sur mobile */
  .text-logo .big-letter {
    font-size: 3.2rem;
  }
  .text-logo .lower-text {
    font-size: 2.4rem;
  }
  .text-logo .small-caps {
    font-size: 1.9rem;
  }
}
/* =========================================
   SECTION IDENTITÉ (SIGNATURE BORDEAUX & GRIS)
   ========================================= */

.identity-card {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  padding: 40px 50px;
  max-width: 950px;
  margin: 0 auto;

  opacity: 0;
  animation: fadeUp 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

/* --- LA PHOTO CIRCULAIRE --- */
.profile-photo-container {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 3px var(--primary-color),
    0 10px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

/* --- LE TEXTE À DROITE --- */

/* 1. LE NOM (Emeric JOURDAN) */
.profile-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400; /* "Emeric" est en épaisseur normale/fine */
  font-size: 2.8rem;

  /* IMPORTANT : On enlève uppercase pour respecter "Emeric" */
  text-transform: none;
  letter-spacing: 1px; /* Espacement plus naturel */
  line-height: 1.2;

  /* COULEUR : Le Rouge du thème */
  color: var(--primary-color);

  margin-bottom: 0px; /* Collé au titre manuscrit */
}

/* Pour mettre JOURDAN en gras */
.bold-name {
  font-weight: 700;
  text-transform: uppercase; /* Sécurité pour forcer JOURDAN en majuscules */
}

/* 2. LE TITRE (Manuscrit, Gris, Fin) */
.profile-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem; /* Taille confortable */

  /* COULEUR : Gris foncé / Noir doux */
  color: #201f1f;

  /* FINESSE : On force le trait le plus fin possible */
  font-weight: 100 !important;
  text-transform: none;
  margin-bottom: 20px;

  /* On enlève l'ombre portée pour rendre le texte plus net et moins "gras" */
  text-shadow: none;
}

.profile-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: #666; /* Gris moyen pour le sous-titre */
  font-style: italic;
  font-weight: 400;
  margin-bottom: 30px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
  .identity-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 30px 15px;
  }

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

  .profile-text h1 {
    font-size: 2.2rem; /* Adapté mobile */
  }

  .profile-title {
    font-size: 2.2rem;
  }
}
