
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&family=Roboto+Serif:wght@400;500;600;700&display=swap');

/* ========================================
   1. STYLES GÉNÉRAUX
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #33282b;
    font-family: 'Roboto', sans-serif;
    background-image:
        linear-gradient(
            rgba(255, 248, 237, 0.15),
            rgba(255, 248, 237, 0.15)
        ),
        url("IMAGES/fond.png");
    background-size: cover;
    background-position: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Serif', serif;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

main {
    max-width: 1100px;
    margin: auto;
}


/* ========================================
   2. HEADER ET NAVIGATION
======================================== */

.site-header {
    max-width: 1130px;
    margin: auto;
    padding: 16px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand img {
    width: 220px;
    height: auto;
    mix-blend-mode: multiply;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 38px;
    padding-top: 29px;
}

.site-header a {
    text-decoration: none;
    font-family: 'Roboto Serif', serif;
    color: #4b1e2a;
    font-size: 18px;
}

.site-header a:hover {
    color: #a87b30;
}


/* ========================================
   3. ACCUEIL ET ORNEMENTS
======================================== */

.hero {
    text-align: center;
    padding: 0 20px 70px;
    color: #702b3b;
}

.ornament {
    margin-bottom: 5px;
}

.ornament img {
    width: 560px;
    max-width: 100%;
    height: auto;
}

.hero h1 {
    font: normal clamp(29px, 4vw, 46px) 'Roboto Serif', serif;
    margin: 0;
}

.tagline {
    font: normal clamp(21px, 3vw, 32px) 'Roboto Serif', serif;
    margin: 0;
    color: #702b3b;
}


/* ========================================
   4. SECTION INTRODUCTION
======================================== */

.intro {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 0 60px 105px;
}

.intro h2 {
    font: normal 25px 'Roboto Serif', serif;
    color: #702b3b;
}

.intro p {
    font-size: 15px;
    line-height: 1.45;
    margin: 18px 0;
}

.intro-art {
    width: 100%;
    mix-blend-mode: multiply;
}


/* ========================================
   5. ATLAS ET TITRE DE LA CARTE
======================================== */

.atlas {
    text-align: center;
    margin: 0 70px;
}

.atlas h2 {
    font: normal 25px 'Roboto Serif', serif;
    color: #702b3b;
}

.atlas > h2 {
    font-size: 29px;
    margin-bottom: 10px;
}

.atlas > p {
    font-size: 14px;
}

.titre-carte {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.titre-carte img {
    width: 100px;
    height: auto;
    position: relative;
    top: 5px;
}

.titre-carte img:last-child {
    transform: scaleX(-1);
}


/* ========================================
   6. FRISE CHRONOLOGIQUE
======================================== */

.timeline {
    margin: 35px 0 22px;
    text-align: left;
    position: relative;
}

.timeline output {
    display: block;
    color: #702b3b;
    font: 26px 'Roboto Serif', serif;
    position: relative;
    margin-bottom: 8px;
}

.timeline input {
    width: 100%;
    margin: 0;
    accent-color: #c4a46a;
    cursor: pointer;
}

.ticks {
    display: flex;
    justify-content: space-between;
    color: #77716b;
    font-size: 12px;
}


/* ========================================
   7. CARTE INTERACTIVE
======================================== */

.map-stage {
    position: relative;
    width: 100%;
    border-radius: 23px;
}

.map-image {
    display: block;
    width: 100%;
    border-radius: 23px;
}

.scotland-hotspot {
    position: absolute;
    left: 15.5%;
    top: 15%;
    width: 6%;
    height: 10%;
    transform: translate(-50%, -50%);
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
}

/* Carte SVG interactive */

#europeMap {
    display: block;
    width: 100%;
    aspect-ratio: 1600 / 1300;
    border: none;
    border-radius: 23px;
}

/* Anciens boutons provisoires */
.scotland-hotspot,
.england-hotspot {
    display: none;
}


/* Zone cliquable Angleterre */

.england-hotspot {
    position: absolute;
    left: 21%;
    top: 32%;
    width: 4%;
    height: 6%;
    transform: translate(-50%, -50%);
    border: 2px solid #c4a46a;
    background: #702b3b;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
}

.scotland-hotspot:focus-visible {
    outline: 3px solid #702b3b;
    outline-offset: 3px;
}


/* ========================================
   8. FICHE PERSONNAGE
======================================== */

.info-panel {
    position: absolute;
    right: -30%;
    top: -3%;
    width: min(53%, 490px);
    max-height: none;
    overflow: visible;
    text-align: left;
    background: white;
    border: 1px solid #c4a46a;
    border-radius: 34px;
    padding: 30px 28px 25px;
    box-shadow: 2px 4px 1px #8c713c;
    z-index: 4;
    animation: panelIn .24s ease-out;
}

.info-panel[hidden],
.panel-content[hidden] {
    display: none;
}

.info-panel h3 {
    font: normal 21px 'Roboto Serif', serif;
    margin: 0 35px 20px 0;
}

/* Bouton de fermeture */

.close {
    position: absolute;
    right: 15px;
    top: 13px;
    width: 28px;
    height: 28px;
    border: 1px solid #702b3b;
    border-radius: 50%;
    background: #f7f0df;
    color: #702b3b;
    font-size: 23px;
    line-height: 20px;
    cursor: pointer;
}


/* ========================================
   9. ONGLETS HISTOIRE / SÉRIE
======================================== */

/* Conteneur des onglets */

.tabs {
    display: flex;
    border: 1px solid #c4a46a;
    border-radius: 35px;
    background: #f1e8cf;
    padding: 7px;
    gap: 4px;
    margin-bottom: 18px;
}

/* Boutons des onglets */

.tabs button {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 12px;
    border: 0;
    border-radius: 30px;
    background: transparent;
    color: #77716b;
    font: 15px 'Roboto Serif', serif;
    cursor: pointer;
}

/* Onglet sélectionné */

.tabs button.active {
    background: #4b1e2a;
    color: #FFF8ED;
}

/* Icônes des onglets */

.icone-couronne,
.icone-camera {
    display: inline-block;
    flex-shrink: 0;
    background-color: currentColor;
}

.icone-couronne {
    width: 30px;
    height: 19px;
    -webkit-mask: url("IMAGES/courronne-icone.svg") center / contain no-repeat;
    mask: url("IMAGES/courronne-icone.svg") center / contain no-repeat;
}

.icone-camera {
    width: 24px;
    height: 24px;
    -webkit-mask: url("IMAGES/icone-camera.svg") center / contain no-repeat;
    mask: url("IMAGES/icone-camera.svg") center / contain no-repeat;
}


/* ========================================
   10. PORTRAIT ET INFORMATIONS
======================================== */

.profile {
    display: grid;
    grid-template-columns: 46% 1fr;
    gap: 18px;
    margin-bottom: 20px;
}

.profile img {
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.profile h4 {
    font: normal 18px 'Roboto Serif', serif;
    margin: 0 0 6px;
}

.profile p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.35;
}

.panel-content > h4 {
    font: normal 19px 'Roboto Serif', serif;
    margin: 12px 0 7px;
}

.panel-content > p {
    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 9px;
}



/* CARROUSEL DES SOUVERAINS */

/* Conserver la mise en page des autres fiches */

.royal-carousel {
    display: block;
    width: 100%;
}

.royal-slide {
    width: 100%;
}

/* Navigation sous le portrait */

.royal-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 12px 0 20px;
}

/* Flèches */

.royal-prev,
.royal-next,
.maryWilliam-prev,
.maryWilliam-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #b89b65;
    border-radius: 50%;
    background: transparent;
    color: #702b3b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.royal-prev:hover,
.royal-next:hover,
.maryWilliam-prev:hover,
.maryWilliam-next:hover {
    background: #702b3b;
    color: #fffaf4;
    border-color: #702b3b;
}

/* Compteur */

.royal-counter,
.maryWilliam-counter {
    color: #702b3b;
    font-size: 12px;
    letter-spacing: 2px;
}


/* ========================================
   11. ENCADRÉS D'INFORMATIONS
======================================== */

.fact {
    border: 1px solid #c4a46a;
    border-radius: 3px;
    background: #f3ead2;
    margin-top: 20px;
    padding: 12px 14px;
}

.fact-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fact-content img {
    width: 90px;
    height: auto;
    flex-shrink: 0;
}

.fact-content p {
    flex: 1;
    margin: 0;
}
.fact h4 {
    font: normal 18px 'Roboto Serif', serif;
    margin: 0 0 8px;
}

.fact p {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.fact a {
    color: #702b3b;
    text-decoration: underline;
}

.map-hint {
    color: #77716b;
    font-size: 12px !important;
    margin-top: 13px;
}

/* Icône et titre sur la même ligne */

.fact-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.fact-title img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.fact-title h4 {
    margin: 0;
}

/* ========================================
   12. AVERTISSEMENT
======================================== */

.warning {
    margin: 105px 70px 45px;
    color: #77716b;
    font-size: 13px;
}

.warning h3 {
    font: normal 17px 'Roboto Serif', serif;
}

.warning p {
    line-height: 1.45;
}


/* ========================================
   13. FOOTER
======================================== */

footer {
    background: #4b1e2a;
    color: #fff8ed;
    min-height: 210px;
    padding: 25px max(40px, calc((100vw - 1100px)/2));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer strong {
    font: normal 17px 'Roboto Serif', serif;
}

footer p {
    font-size: 13px;
}

footer a {
    text-decoration: none;
}

footer small {
    text-align: center;
    font-size: 12px;
}


/* ========================================
   14. ANIMATIONS
======================================== */

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ========================================
   15. RESPONSIVE
======================================== */

@media (max-width: 760px) {

    .site-header {
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .brand img {
        width: 75px;
    }

    .site-header nav {
        padding: 0;
        gap: 13px;
        flex-wrap: wrap;
    }

    .site-header a {
        font-size: 12px;
    }

    .hero {
        padding: 30px 10px 45px;
    }

    .ornament {
        font-size: 20px;
    }

    .intro {
        grid-template-columns: 1fr;
        margin: 0 25px 65px;
        gap: 10px;
    }

    .intro-art {
        max-width: 450px;
        justify-self: center;
    }

    .atlas {
        margin: 0 15px;
    }

    .atlas > h2 {
        font-size: 23px;
    }

    .info-panel {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        max-height: none;
        margin-top: 14px;
        border-radius: 25px;
        padding: 25px 18px;
    }

    .profile img {
        height: 220px;
    }

    .tabs button {
        font-size: 13px;
    }

    .warning {
        margin: 55px 25px 35px;
    }

    footer {
        padding: 25px;
    }
}
.york-prev,
.york-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #b89b65;
    border-radius: 50%;
    background: transparent;
    color: #702b3b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.york-prev:hover,
.york-next:hover {
    background: #702b3b;
    color: #fffaf4;
    border-color: #702b3b;
}

.york-counter {
    color: #702b3b;
    font-size: 12px;
    letter-spacing: 2px;
}

/* Flèches du carrousel Henri VII */

.tudor-prev,
.tudor-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #b89b65;
    border-radius: 50%;
    background: transparent;
    color: #702b3b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Effet au survol */

.tudor-prev:hover,
.tudor-next:hover {
    background: #702b3b;
    color: #fffaf4;
    border-color: #702b3b;
}

/* Compteur 1 / 2 */

.tudor-counter {
    color: #702b3b;
    font-size: 12px;
    letter-spacing: 2px;
}

/* ========================================
   CARROUSEL HENRI VIII
======================================== */

/* Flèches identiques aux autres carrousels */

.henry8-prev,
.henry8-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #b89b65;
    border-radius: 50%;
    background: transparent;
    color: #702b3b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Effet au survol */

.henry8-prev:hover,
.henry8-next:hover {
    background: #702b3b;
    color: #fffaf4;
    border-color: #702b3b;
}

/* Compteur 1 / 7 */

.henry8-counter {
    color: #702b3b;
    font-size: 12px;
    letter-spacing: 2px;
}

/* Titres "Sa bio" identiques sur toutes les fiches */

.panel-content > h4,
.royal-slide > h4 {
    font-family: 'Roboto Serif', serif;
    font-size: 19px;
    font-weight: 400;
    text-transform: none;
    margin: 12px 0 7px;
}

.children-prev,
.children-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #b89b65;
  border-radius: 50%;
  background: transparent;
  color: #702b3b;
  font-size: 13px;
  cursor: pointer;
  transition: all .3s ease;
}

.children-prev:hover,
.children-next:hover {
  background: #702b3b;
  color: #fffaf4;
  border-color: #702b3b;
}

.children-counter {
  color: #702b3b;
  font-size: 12px;
  letter-spacing: 2px;
}

#childrenBio p {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 9px;
}

/* =========================================
   CARROUSEL THE SPANISH PRINCESS
========================================= */

.spanish-prev,
.spanish-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #b89b65;
  border-radius: 50%;
  background: transparent;
  color: #702b3b;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.spanish-prev:hover,
.spanish-next:hover {
  background: #702b3b;
  color: #fffaf4;
  border-color: #702b3b;
}

.spanish-counter {
  color: #702b3b;
  font-size: 12px;
  letter-spacing: 2px;
}

#spanishBio p {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 9px;
}
