/* Import d'une écriture proche du logo */
@import url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');

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

/* ---- BODY ---- */
body {
  font-family: 'Lora', serif;
  background-color: #121212;
  background-image: url('image1.png'); /* Motif arabesque */
  background-size: cover;
  background-position: center;
  color: #e0e0e0;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ---- LOGO ---- */
.logo {
  height: 120px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.logo-container {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ---- NAVIGATION ---- */
.nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 1.1rem;
}

.nav-list a {
  color: #e0e0e0;
  text-decoration: none;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-list a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- INTRO ---- */
.intro-bloc {
  border: 1px solid rgba(255,255,255,0.12);
  padding: 1.5rem;
  margin: 1rem auto 3rem;
  border-radius: 12px;

  background: rgba(20,20,20,0.78);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);

  text-align: center;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  opacity: 1;

  transition: opacity 1s ease, transform 1s ease;
}

.intro-bloc.visible {
  opacity: 1;
}

.intro-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.intro-subtitle {
  font-size: 1.1rem;
  color: #cccccc;
}

.intro-text {
  font-size: 1rem;
  color: #f0eded;
  margin-top: 1.5rem;
}

/* ---- IMAGES ---- */
.image-bloc {
  opacity: 0;
  transition: opacity 1s ease-out, transform 1s ease-out;
  text-align: center;
  margin: 2rem 0;
}

.image-bloc.visible {
  opacity: 1;
}

.image-bloc:hover img {
  transform: scale(1.02);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.12);
}

.illustration {
  max-width: 300px;
  display: block;
  margin: 0 auto;
}

.citation-image {
  max-width: 600px;
  border-radius: 0px;
  display: block;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
}

/* ---- FOOTER ---- */
.footer {
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  padding: 2rem 1rem;
  background-color: #1a1a1a;
  line-height: 1.6;
}

.content-section {
  border-top: 1px solid #666;
  padding-top: 2rem;
  margin-top: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.footer a {
  color: #aaa;
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---- QUI SUIS-JE ---- */
.portrait-gauche {
  flex: 0 0 200px;
}

.portrait-gauche img {
  width: auto;
  height: 300px;
  border-radius: 0%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  margin-left: 325px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  p {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .image-bloc img {
    max-width: 90% !important;
    height: auto;
  }
}

.slogan {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  margin: 2rem auto;
  font-family: 'Cormorant Garamond', serif;
}

.dark-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  background-color: #000;
}

main.container {
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(4px) saturate(110%);
  -webkit-backdrop-filter: blur(4px) saturate(110%);
  margin-top: 1rem;
  padding: 3rem 1.5rem;
  border-radius: 8px;
}

.intro-title.formation {
  text-align: right;
  padding-right: 10rem;
}
.intro-title.experience {
  text-align: left;
  padding-left: 10rem;
}
.image-bloc.chemin {
  margin-top: -60px;
}
.image-bloc.livre {
  margin-top: -30px;
}
.image-bloc:hover img {
  transform: none;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}
.intro-bloc.flex-presentation {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: -2rem;
}
.intro-bloc.flex-presentation .intro-text {
  flex: 1;
}
.intro-bloc.flex-presentation img.sg-portrait {
  flex-shrink: 0;
  max-width: 180px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

/* Titre de section */
.intro-title {
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-size: 2rem;
  letter-spacing: 0.3px;
  color: #fff;
  margin: 0 0 1.25rem;
  position: relative;
}
.intro-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 0.6rem auto 0;
  background: linear-gradient(90deg, transparent, rgb(161,98,178), transparent);
  opacity: 0.85;
}

/* Listes */
.intro-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.intro-list li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.6;
  color: #eeedf0;
}
.intro-list li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.75em;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(161,98,178);
  box-shadow: 0 0 0 3px rgba(161,98,178,0.18);
}

/* Listes centrées */
.intro-list2 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.intro-list2 li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.6;
}
.intro-list2 li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.75em;
  transform: translateY(-50%);
}

/* Harmonise les cartes */
.intro-bloc {
  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Options d’alignement par section */
.intro-title.formation,
.intro-title.experience {
  text-align: center;
  padding: 0;
}

/* Responsive petit bonus */
@media (max-width: 600px) {
  .intro-title { font-size: 1.7rem; }
  .intro-list li { padding-left: 1.2rem; }
  .intro-list2 li { padding-left: 1.2rem; }
}

/* === Fond verrouillé au viewport === */
body {
  background: none !important;
}
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  background: url('image1.png') center center / cover no-repeat fixed;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

/* Bloc de citation */
.quote-card{
  background: transparent;
  padding: 24px 32px;
  text-align: center;
}
.quote-card blockquote{
  margin: 0;
  font-family: 'Parisienne', cursive;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: .2px;
  text-shadow:
    0 0 10px rgba(124,58,237,.20),
    0 2px 8px rgba(0,0,0,.35);
  font-size: clamp(28px, 4.5vw, 56px);
}
.quote-card .q-line{
  display: inline-block;
  white-space: nowrap;
}
.quote-card::after{
  content:"";
  display:block;
  width: 120px;
  height: 2px;
  margin: .75rem auto 0;
  background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
  opacity: .8;
}
.quote-card cite{
  display:block;
  margin-top: .6rem;
  font-family: 'Lora', serif;
  font-size: clamp(14px, 1.4vw, 18px);
  color: #e9ddff;
  opacity: .95;
}

/* ===== Burger (mobile) ===== */
.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; border: 0; padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 36px;
  height: 28px;
  cursor: pointer;
  position: relative;
  margin: 0 auto;
}

.burger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #e0e0e0;
  top: 4px;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}
.burger span:nth-child(2) { top: 13px; }
.burger span:nth-child(3) { top: 22px; }

/* État ouvert */
.nav-toggle:checked + .burger span:nth-child(1) {
  top: 13px; transform: rotate(45deg);
}
.nav-toggle:checked + .burger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked + .burger span:nth-child(3) {
  top: 13px; transform: rotate(-45deg);
}

/* Desktop */
.menu { position: relative; }
.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Mobile */
@media (max-width: 768px) {
  .burger { display: block; }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(20,20,20,0.95);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    z-index: 1000;
  }
  .nav-list li { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-list a { display: block; padding: 1rem 1.25rem; }

  .nav-toggle:checked ~ .nav-list { display: flex; }
}

@media (max-width: 768px) {
  .intro-bloc.flex-presentation img.sg-portrait {
    max-width: 140px;       /* réduit l’image */
    margin: 0 auto 1rem;    /* la centre et ajoute un petit espace dessous */
    display: block;         /* pour que margin auto fonctionne */
  }
}
/* === Qui suis-je — mobile : empile + centre texte et image === */
@media (max-width: 768px) {
  .intro-bloc.flex-presentation {
    display: flex;             /* sécurité si une autre règle l'a retiré */
    flex-direction: column;    /* empile image + texte */
    align-items: center;       /* centre les enfants horizontalement */
    text-align: center;        /* centre tous les textes du bloc */
  }

  .intro-bloc.flex-presentation .intro-text {
    width: 100%;               /* évite un bloc étroit qui “glisse” à droite */
    text-align: center;        /* centre explicitement le contenu texte */
  }

  .intro-bloc.flex-presentation img.sg-portrait {
    display: block;
    max-width: 140px;          /* taille mobile (ajuste si tu veux) */
    margin: 0 auto 1rem;       /* image centrée */
  }
}

.site-title {
  font-family: 'EB Garamond', serif;
  font-size: 2rem;
  text-align: center;
  margin: 0;
}


.site-subtitle {
  font-size: clamp(0.9rem, 3.5vw, 1.2rem); /* s’adapte : min 0.9rem, max 1.2rem */
  text-align: center;
  margin: 0.3rem 0 1.2rem;
  color: #ddd;
  white-space: nowrap;   /* reste toujours sur une seule ligne */
}

.intro-text {
  text-align: justify !important;
}
