/* =====================================================
   FEUILLE DE STYLES POUR LA PAGE DE L'ARTICLE
===================================================== */

/* --- TYPOGRAPHIE ADOBE FONTS --- */
@import url("https://use.typekit.net/kgg5siv.css");

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

/* =====================================================
   CORPS DE LA PAGE
===================================================== */
body {
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    background-color: white;
    color: #333;
}

b, strong{
    font-weight: bold;
}

p {
    margin-bottom: 24px;
    line-height: 1.4;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.8;
}

/* =====================================================
   TITRES
===================================================== */
h1 {
    font-family: "dazzle-unicase", sans-serif;
    font-weight: 900;
    font-size: 48px;
    margin: 64px 0 20px 0;
    color: #25408f;
}

h2 {
    font-family: "dazzle-unicase", sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin: 32px 0 8px;
    color: #25408f;
}

h3 {
    font-family: "dazzle-unicase", sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin: 24px 0 8px;
    color: #25408f;
}

h4 {
    font-family: "dazzle-unicase", sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: white;
}

/* =====================================================
   CONTENEUR PRINCIPAL & GRILLE
===================================================== */
.container {
    max-width: 1136px;
    margin: 0 auto;
    padding: 0 72px;
    text-align: left;
}

.grid-composition {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 30px;
    gap: 16px;
    position: relative;
}

/* --- SPANS DE LA GRILLE --- */
.header       { grid-column: span 12; border: none; text-align: right; }
.full-img     { grid-column: span 12; height: 300px; padding: 0; border: none; }
.text-4col    { grid-column: span 4; }
.text-8col    { grid-column: span 8; }
.text-12col   { grid-column: span 12; }
.side-img     { grid-column: span 4; padding: 0; border: none; }
.video        { grid-column: span 12; aspect-ratio: 16/9; color: white; display: flex; align-items: center; justify-content: center; }
.bottom-img   { grid-column: span 4; padding: 0; border: none; height: 200px; }
.card         { grid-column: span 4; }

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


/* =====================================================
   NAVIGATION BAR
===================================================== */
.navbar {
    position: sticky;
    top: 20px;
    z-index: 1000;
    width: fit-content;
    margin: 0 auto;
    background-color: rgba(37,64,143,0.9);
    padding: 12px 32px;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    font-family: 'Montserrat', sans-serif;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    font-weight: 600;
    font-size: 18px;
    color: white;
}

.nav-container a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.25s ease;
}

.nav-container a:hover {
    color: #25408f;
    background-color: white;
}

/* =====================================================
   BOUTONS FLOTTANTS
===================================================== */
/* Conteneur des boutons flottants horizontaux */
.floating-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 9999;
    bottom: 20px; /* valeur par défaut, modifiée par JS */
}

.floating-nav a {
    padding: 10px 18px;
    border: 2px solid #25408f;
    border-radius: 12px;
    background: white;
    color: #25408f;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.25s ease;

    min-width: 90px;          /* largeur minimale */
    text-align: center;       /* centre le texte à l’intérieur */
    white-space: nowrap;      /* empêche le texte de passer à la ligne */
}

.floating-nav a:hover {
    background-color: #25408f;
    color: white;
}

@media (max-width: 768px) {
    .floating-nav-horizontal a {
        min-width: 100px;
        padding: 10px 22px;
    }
}

/* =====================================================
   IMAGES & ZONES SPÉCIALES
===================================================== */
.porsche {
    background-image: url('../img/FP1.webp');
    background-size: cover;
    background-position: 70% center;
    height: 500px;
    border-radius: 8px;
}

.image_incrustee {
    overflow: hidden;
    width: 100%;
    height: 300px;
    background-size: contain;
    position: relative;
    background-image: 01img;
}

.image_incrustee p {
    width: 100%;
    height: 300px;
    background-color: rgba(rgb(141,9,9),0.2);
    position: absolute;
    bottom: 0;
}

.image_incrustee:hover p {
    bottom: 0;
    transition: all ease 0.2s;
}

/* =====================================================
   ANNEXES
===================================================== */

.annexe-list li {
  margin-bottom: 32px;
  border-left: 2px solid #25408f;
  padding-left: 24px;
}

.annexe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.annexe-oeuvre {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 30px;
  margin-bottom: 64px;
}

/* IMAGE */
.annexe-image {
  grid-column: span 4;
}

.annexe-image img {
  width: 100%;
  height: auto;
  display: block;
}

.annexe-image figcaption {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 8px;
}

/* TEXTE */
.annexe-texte {
  grid-column: span 8;
  max-width: 640px;
}

.annexe-meta {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 24px;
}

.annexe-texte p {
  line-height: 1.7;
}
@media (max-width: 768px) {
  .annexe-image,
  .annexe-texte {
    grid-column: span 12;
  }

  .annexe-oeuvre {
    margin-bottom: 80px;
  }
}

.annexes-wrapper {
    padding-bottom: 40px; /* espace général en bas */
}

.video-wrapper {
    display: flex !important;        /* forcer le flex */
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    flex-direction: row;             /* par défaut : vidéo à gauche */
}

.video-wrapper.reverse {
    flex-direction: row-reverse !important; /* vidéo à droite */
}

.video-frame {
    flex: 1;
    min-width: 250px;
    max-width: 450px;
}

.video-frame iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.video-text {
    flex: 1;
    min-width: 250px;
}

@media (max-width: 768px) {
    .video-wrapper,
    .video-wrapper.reverse {
        flex-direction: column !important;
    }

    .video-frame {
        max-width: 100%;
        margin-bottom: 15px;
    }
}

.video-link {
    position: relative;
}

.video-link img {
    width: 100%;
    display: block;
}

.play-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    background: rgba(0,0,0,0.3);
}

/* =====================================================
   CARDS, LEGENDES, AUDIO
===================================================== */
.item {
    border-radius: 8px;
    position: relative;
    z-index: 5;
    overflow: hidden;
    text-align: left;
}

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

.card {
    background-color: #e1dfd5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 16px;
}

.audio_container {
    padding: 16px 0 0 16px;
}

.audio_container figcaption {
    font-size: 12px;
    font-style: italic;
    padding: 16px 0 0 16px;
}

.legende {
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.legende img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.legende figcaption {
    border-radius: 0 0 8px 8px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: #25408f;
    color: #eae3e0;
    padding: 8px;
    font-weight: 300;
    font-size: 16px;
    text-align: center;
}

/* =====================================================
   NOTES ET HR
===================================================== */
.note {
    text-decoration: none;
    font-size: 12px;
    vertical-align: super;
    font-weight: 700;
    color: #25408f;
}

.decoupe {
    column-count: 2;
}

hr {
    grid-column: 2 / span 10;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, white, #25408f, white);
    margin: 64px 0 16px 0;
}

.decal {
    height: 80px;
}
.back-to-top {
    color: #25408f;          /* texte bleu par défaut */
    text-decoration: none;
    font-weight: 700;
    transition: 0.25s ease;
}

.back-to-top:hover {
    color: white;            /* texte blanc au survol */
    background-color: #25408f; /* fond bleu au survol */
    padding: 2px 4px;
    border-radius: 4px;
}

.back-to-top-target {
    display: block;
    position: relative;
    top: -80px; /* hauteur de la navbar + un petit offset */
    visibility: hidden; /* invisible mais prend la place */
}

/* =====================================================
   FOOTER
===================================================== */
footer {
    background-color: #25408f;
    color: white;
    padding: 40px 0;
}

.footer-video {
    display: flex;               /* active flexbox */
    justify-content: center;     /* centre horizontalement */
    align-items: center;         /* centre verticalement si nécessaire */
}

.footer-video video {
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: cover;
    display: block;
    pointer-events: none;       /* évite clics accidentels */
}

.footer-container {
    max-width: 1136px;
    margin: 0 auto;
    padding: 0 72px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 48px;
}

.footer-section {
    grid-column: span 4;
}

.footer-section-double {
    grid-column: span 8;
}

.footer-section h4 {
    border-bottom: 1px solid rgba(255,255,255,0.8);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.footer-section h4,
.footer-section-double h4 {
    border-bottom: 1px solid rgba(255,255,255,0.8);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.footer-link {
    color: white; /* texte blanc par défaut */
    text-decoration: none;
    padding: 4px 8px; /* même padding que nav pour l’effet hover */
    border-radius: 6px;
    transition: 0.25s ease;
}

/* =====================================================
   POINTS DE RUPTURE / MOBILE
===================================================== */
@media (max-width: 768px) {
    .container { padding: 0 16px; grid-column: span 4; }
    .grid-composition { grid-template-columns: repeat(4,1fr); }
    .header, .full-img, .text-8col, .text-12col, .side-img, .video, .bottom-img, .card {
        grid-column: span 4;
    }
    .logo { display: none; }
    .decoupe { column-count: 1; }
    .footer-container { grid-template-columns: repeat(4,1fr); padding:0 20px; }
    .footer-section { grid-column: span 4; }
    h4 { margin-top: 24px; }
    hr { grid-column: span 4; height: 1px; background-image: linear-gradient(to right, rgb(235,232,219), #ff7b00, rgb(235,232,219)); margin-top: 48px; }
    .audio_container { padding-left: 13px; }
    .audio_container figcaption { font-size: 12px; padding: 8px 0 16px 12px; }
}

/* ================================
   TIMELINE – ALIGNEMENT LIGNE + POINTS
================================ */
:root {
  --blue-auto: #25408f;
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* AXE */
.timeline::before {
  content: "";
  position: absolute;
  left:20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--blue-auto);
}

.timeline li {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  align-items: start;
}

.timeline h3 {
  margin-top: 4px; 
  margin-bottom: 8px;
  line-height: 1.2;
}

.timeline h3,
.timeline p {
  grid-column: 2;
}

.timeline p {
  margin: 0;
  line-height: 1.6;
}

/* ================================
   CAROUSELS
================================ */
.carousel {
    position: relative;
    width: 100%;
    height: auto;
}

.carousel-inner {
    display: flex;
    overflow: hidden;
}

.carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

button {
    position: absolute;
    top: 50%;
    transform: translate(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
}

button .prev {
    left: 0;
}

button .next {
    left: 0;
}

/* ================================
   INTERVIEW
================================ */

.elyse {
    color: #25408f;
}

.question {
    font-weight: bold;
    color: #25408f;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.reponse {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.question h3 {
    color: #25408f;
    border-top: 2px solid #25408f;
    padding-top: 24px;
}

.interview-gallery.editorial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.interview-gallery.editorial .main {
    grid-column: span 2;
    grid-row: span 2;
}

.interview-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ================================
   MOBILE WARNING
================================ */

#mobile-warning {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;                 /* centre tout le contenu */
    justify-content: center;       /* horizontal */
    align-items: center;           /* vertical */

    padding: 30px;
    box-sizing: border-box;
    background-color: white;
}

/* Conteneur du contenu */
.warning-content {
    display: flex;
    flex-direction: column;        /* empile titre / texte / bouton */
    align-items: center;           /* centre horizontalement */
    gap: 15px;                     /* espace entre éléments */
    max-width: 450px;              /* largeur max du contenu */
    width: fit-content;            /* prend juste la largeur nécessaire */
    padding: 30px;
    box-sizing: border-box;
    text-align: center;            /* centre texte */
}

/* Titre */
.warning-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
    color: #25408f;
}

/* Paragraphe */
.warning-content p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    color: #25408f;
}

/* Bouton */
.btn-custom {
    font-family: 'Montserrat', sans-serif;
    display: block;               /* bloc pour centrage horizontal */
    padding: 10px 18px;
    background-color: white;
    border: 2px solid #25408f;
    font-size: 14px;
    font-weight: 600;
    color: #25408f;
    border-radius: 12px;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: 120px;             /* espace au-dessus du bouton */
    margin-left: 196px;
    position: center;
}

.btn-custom:hover {
    background-color: #25408f;
    color: white;
}

/* Affichage sur mobiles / tablettes */
@media (min-width: 1025px) {
    #mobile-warning { display: none !important; }
}
@media (max-width: 1024px) {
    #mobile-warning { display: flex; }
}

/* ================================
   BIBLIOGRAPHIE
================================ */
.title{
    color: #25408f;
    font-style: italic;
}

.article-with-notes {
    display: grid;
    grid-template-columns: 250px 1fr; /* colonne boutons + texte */
    gap: 56px;
    margin-top: 60px;
}

/* Colonne des boutons */
.article-with-notes .footnotes {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start; /* ← force alignement à gauche */
    padding-left: 0;         /* ← enlève le padding du ul */
    margin: 0;               /* ← enlève le margin du ul */
}

.article-with-notes .footnotes li {
    list-style: none;
    width: fit-content;      /* ← pour que le bouton prenne sa largeur naturelle */
}

/* Zone texte principale */
.article-with-notes .main-text {
    overflow: hidden;
}

/* Sections de bibliographie */
.biblio-section {
    display: none;
    margin-bottom: 40px;
     grid-column: 1 / -1;
    max-width: 100%;
}

.biblio-section.active {
    display: block;
}

.biblio-section h2.soul {
    color: #25408f;
    font-size: 1.6rem;
    margin-bottom: 16px;
    border-bottom: 2px solid #25408f;
    padding-bottom: 6px;
}

.biblio-section ul {
    padding-left: 20px;
}

.biblio-section ul li {
    margin-bottom: 12px;
    line-height: 1.5;
}


/* Mobile simplifié */
@media (max-width: 1024px) {
    .article-with-notes {
        grid-template-columns: 1fr;
    }

    .article-with-notes .footnotes {
        position: relative;
        top: 0;
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
        margin-bottom: 20px;
    }
}
