@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sean+Slab:wght@400;800&display=swap');

@font-face {
  font-family: 'Sean Slab Narrow';
  src: url('../fonts/seanslab-normalblack-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

:root {
    --main: #EAEAEA;
    --main-light: #C6C5C6;
    --main-dark: #7B7A7B;
    --bg: #f4f6f8;
    --text: #1d1d1f;
    --white: #fff;
}

body {
    font-family: 'Sean Slab', serif;
    font-size: 12pt;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: var(--main-dark);
}

a:focus{
    outline: 2px solid var(--main-light);
}

h1,
h2 {
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--main-dark);
    font-family: 'Sean Slab', serif;
    font-size: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}

/* --------------------- NAVIGATION HEADER --------------------- */


.logo {
    height: 120px;
    flex-shrink: 0;
    margin-left: -47px;
}

  

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}
    
.social-icons img {
    height: 80px;
}

.social-icons-wrapper {
    margin-left: auto;
    margin-right: -50px; /* Increased negative margin to shift further right */
}

.social-icons-wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: none !important;
}

.social-icons-wrapper img,
.LogoRedirect {
    height: 80px !important;
}

.social-icons-wrapper i {
    font-size: 1.5rem !important;
}

/* --------------------- HERO --------------------- */

.hero {
    background: var(--white);
    color: var(--main-dark);
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

.hero-text h1 {
    font-size: 2.8rem;
}

.hero-text span {
    color: var(--white);
    background: var(--main);
    padding: 0.3rem 0.8rem;
    border-radius: 0px;
}

.cta {
    background: var(--main);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: 0px;
    display: block;
    margin: 1.5rem auto;
    font-weight: 600;
    transition: 0.3s;
    text-decoration: none;
}

.cta:hover {
    background: var(--main-dark);
    color: var(--text);
}

/* --------------------- SECTIONS --------------------- */

.section, .light {
    background: var(--bg);
    color: var(--text);
    padding: 60px 40px;
    width: 100%;
}

.section *, .light * {
    color: var(--text) !important;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.text {
    flex: 1;
}

.profile {
    max-width: 300px;
    border-radius: 0px;
    box-shadow: none;
}

.quote {
    font-style: italic;
    margin-top: 1rem;
    color: #444;
}

/* --------------------- TIMELINE --------------------- */

.timeline {
    display: block;
    gap: 0;
    margin-top: 2rem;
}

.timeline-item {
    display: block;
    align-items: unset;
    gap: 0;
    position: static;
    padding-left: 0;
    margin-bottom: 2rem;
    background: none;
    box-shadow: none;
    border: none;
}

.timeline-item::before {
    display: none;
}

.timeline-icon {
    display: none;
}

.timeline-content {
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.timeline-content:hover {
    transform: none;
}

.timeline-date {
    font-weight: bold;
    color: var(--text);
    font-size: 1.1rem;
    display: inline;
    margin-right: 0.5em;
}

.timeline-item .timeline-content p {
    margin-top: 0.2rem;
    font-size: 16px;
    color: var(--text);
    font-family: 'Sean Slab Narrow', serif;
    font-weight: 400;
}

.timeline h2 {
    font-family: 'League Spartan', sans-serif;
    font-weight: 600;
    font-size: 2.5rem; /* Adjusted for better visual hierarchy */
}

.timeline-item p strong {
    font-family: 'Sean Slab', serif;
    font-weight: 800;
    font-size: 1.2rem; /* Adjusted for better visual hierarchy */
}

.timeline-item p,
.timeline-item ul li {
    font-family: 'Sean Slab Narrow', serif;
    font-weight: 400;
    font-size: 1rem;
}

/* --------------------- SKILLS --------------------- */

h2 {
    font-size: 36px !important;
    font-family: 'Sean Slab', serif;
    font-weight: 800;
    color: #111;
    margin-bottom: 2rem;
    text-align: left;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-top: 2rem;
}

.skill-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0px;
    box-shadow: 0 6px 16px rgba(169, 168, 169, 0.1);
    transition: transform 0.3s;
    text-align: center;
    font-weight: 600;
    color: var(--text);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(169, 168, 169, 0.2);
}

.skill-card h3 {
    font-family: 'Sean Slab', serif;
    font-weight: 800;
}

/* --------------------- HIGHLIGHT / FOOTER --------------------- */

.highlight {
    background: var(--bg);
    color: var(--text);
    padding: 60px 40px;
}

.highlight .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.highlight .container h2 {
    margin-left: -47px;
    text-align: left;
}

.highlight .container p {
    margin-left: -47px;
    text-align: left;
}

.footer {
    background: var(--main-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

#about, #skills {
    background: var(--bg);
    color: var(--white);
}

#skills h2 {
    font-size: 1.5rem;
    font-family: 'Sean Slab', serif;
    font-weight: 800;
}

/* --------------------- RESPONSIVE --------------------- */

@media (max-width: 1200px) {
    .container {
        padding: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 900px) {
    .anniversary-banner {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .anniversary-content {
        width: 100%;
        text-align: center;
        transform: none;
        padding: 15px;
    }

    .anniversary-content .years {
        font-size: 3.5rem;
    }

    .anniversary-content .text {
        font-size: 1rem;
    }

    .grid {
        flex-direction: column;
        text-align: center;
    }

    .profile {
        max-width: 250px;
        margin: 2rem auto;
    }

    .text {
        padding: 0 1rem;
    }


    .logo {
        height: 100px;
    }

    .social-icons img {
        height: 40px;
    }

    .social-icons-wrapper {
        margin-right: 0;
    }

    header {
        padding: 20px 10px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .section {
        padding: 40px 20px;
    }

    .timeline-item {
        padding: 1rem;
    }

    .timeline-date {
        display: block;
        margin-bottom: 0.3rem;
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .skill-card {
        padding: 1rem;
    }

    .skill-card i {
        font-size: 1.5rem;
    }

    .skill-card h3 {
        font-size: 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .cta {
        padding: 0.6rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .logo {
        height: 80px;
    }

    .social-icons img {
        height: 30px;
    }

    .social-icons-wrapper {
        margin-right: 0;
    }

    .anniversary-content {
        min-width: unset;
        padding: 10px;
    }

    header {
        padding: 15px 5px;
    }

    .highlight .container h2,
    .highlight .container p {
        margin-left: 0;
        text-align: center;
    }

    .highlight .container {
        text-align: center;
        padding: 0 20px;
    }

    .page-title {
        margin-left: 0 ;
        font-size: 1.8rem;
        padding-left: 2rem;
        padding-right: 2rem;
        margin-top: 1.5rem;
        margin-bottom: 1.2rem;
        word-break: break-word;
        line-height: 1.15;
    }
}

@media (max-width: 480px) {
    .anniversary-content .years {
        font-size: 2.5rem;
    }

    .anniversary-content .text {
        font-size: 0.8rem;
    }

    .cta {
        width: 100%;
        text-align: center;
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .section, .light {
        padding: 25px 10px;
    }

    .container {
        padding: 0.8rem;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }

    .timeline-item {
        padding: 0.6rem;
        margin-bottom: 1.5rem;
    }

    .timeline-date {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
    }

    .skill-card {
        padding: 0.7rem;
    }

    .skill-card i {
        font-size: 1.2rem;
    }

    .skill-card h3 {
        font-size: 0.85rem;
    }
    
    .grid {
        gap: 0.8rem;
    }

    .profile {
        max-width: 180px;
        margin: 1.5rem auto;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .anniversary-banner {
        padding: 1rem 0.5rem;
        gap: 0.5rem;
    }

    .anniversary-content {
        min-width: unset;
        padding: 5px;
    }

    .anniversary-content .years {
        font-size: 1.4rem;
    }

    .anniversary-content .text {
        font-size: 0.7rem;
    }

    .cta {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .roller-counter-container {
        font-size: 1.5rem;
    }

    .logo {
        height: 60px;
        margin-left: 0;
    }

    .social-icons img {
        height: 25px;
    }

    .social-icons-wrapper {
        margin-right: 0;
    }

    header {
        padding: 10px 5px;
    }
}

.historique-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 40px 0 60px 0;
}

.anniversary-banner {
    display: flex;
    background: #eaeaea;
    border-radius: 0px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    padding: 30px 40px;
    gap: 40px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
}

.anniversary-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    perspective: 1000px;
    position: relative;
    padding: 20px;
    /* background-color: var(--white); */
    /* box-shadow: 0 4px 16px rgba(0,0,0,0.06); */
    transform: scale(1.05);
}

.anniversary-content .years {
    font-family: 'Sean Slab', serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text);
}

.anniversary-content .text {
    font-family: 'Sean Slab Narrow', serif;
    font-size: 16px;
    font-weight: 400;
    margin-top: 8px;
    text-align: center;
    color: var(--text);
}

/* Styles pour le compteur à barillet */
.roller-counter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    height: 100%;
}

.digit-container {
    overflow: hidden;
    height: 1em; /* Ajuste selon la taille de ta police */
    width: 0.8em; /* Ajuste selon la taille de ta police */
    display: inline-block;
    margin: 0 0.05em;
}

.digit-roller {
    display: flex;
    flex-direction: column;
    transition: transform 2s cubic-bezier(0.23, 1, 0.32, 1);
}

.digit {
    height: 1em; /* Même hauteur que .digit-container */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajouter des marqueurs pour simuler un compteur mécanique */
.digit-container::before,
.digit-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
    box-shadow: none;
}

.digit-container::before {
    top: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.digit-container::after {
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}

/* Option pour désactiver les animations pour les personnes qui préfèrent réduire les mouvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive styles */
@media (max-width: 900px) {
    /* Removed parcours-timeline styles as they are not used in historique.php */
}

@media (max-width: 600px) {
    /* Removed parcours-details and parcours-content styles as they are not used in historique.php */
}

@media (min-width: 769px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
        justify-items: center;
    }

    #skills h2 {
        text-align: left;
        padding-left: 0;
    }
}

#about h2 {
    font-family: 'Sean Slab', serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

#about p {
    font-family: 'Sean Slab Narrow', serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text);
    text-align: left;
}

.page-title {
    text-align: left;
    font-family: 'Sean Slab', serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: #111;
    margin: 1.5rem 0 1.5rem 0;
    padding-bottom: 0;
    border-bottom: none;
    text-decoration: none;
    letter-spacing: -1px;
    margin-left: -47px;
}

.historique-page .logo, .historique-page .logo img {
    height: 120px !important;
    max-height: 120px !important;
    width: auto;
    color: rgb(0, 0, 0) !important;
    background-color: transparent;
    text-decoration: none;
}
.navbar a, .navbar a:visited {
  color: rgb(0, 0, 0);
  font-weight: bold;
}

.fw-bold {
  font-weight: bold !important;
}

.navbar a, .navbar a:visited {
    color: #000 !important;
    font-family: 'Sean Slab', serif !important;
    font-size: 16px !important;
}

.fw-bold {
    font-weight: bold !important;
}

.card-content h3 {
    font-family: 'Sean Slab', sans-serif;
    font-weight: 800;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 0.5em;
    text-align: left;
    line-height: 1.2;
    height: 76px; /* Hauteur fixe pour tous les titres */
    display: flex;
    align-items: flex-end;
}
  
.nav-icon img {
    height: 28px;
    vertical-align: middle;
  }
  
  .nav-icon.contact-icon img {
    height: 26px;
  }
  
  .navbar-nav.desktop-nav {
    gap: 2.5rem;
  }

/* Animations de base */
.animate-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-card {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-card.visible {
  opacity: 1;
  transform: scale(1);
}

.animate-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-item.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 991px){
    .navbar a, .navbar a:visited {
  margin-bottom: 40px !important;
  }
  .fab{
    font-size : 18.5pt
  }
}

 @media (max-width: 901px) and (min-width:  833px) {
    .logo {
    margin-right: calc(-47px + (901px - 100vw) * 0.5) !important;
    }
}

@media (max-width: 480px){
    h1{
        margin-left: -21px !important;
    }
}



 @media (max-width: 767px) and (min-width:  576px) {
    .logo {
    margin-left: -14px !important;
    }
}

 @media (max-width: 1054px) and (min-width:  992px) {
    .container, .container-md, .container-sm {
    max-width: 1012px;
    }
}

@media (max-width: 1076px) and (min-width:  992px) {
    .logo {
    margin-left: -14px !important;
    }
    h1{
        margin-left: -14px !important;
    }
}


 @media (max-width: 1060px) and (min-width:  992px) {
    .social-icons-wrapper {
    margin-right: 15px;
    }
}


 @media (max-width: 1234px) and (min-width: 1200px) {
    .social-icons-wrapper {
    margin-right: 15px !important;
    }
    .logo {
    margin-left: -14px !important;
    }
    h1{
        margin-left: -14px !important;
    }
}


 @media (max-width: 819px) and (min-width: 769px) {
    .logo {
    margin-left: -14px !important;
    }
    h1{
        margin-left: -14px !important;
    }
}

 @media (max-width: 768px) and (min-width: 768px) {
    .logo {
    margin-left: -14px !important;
    }
    h1{
        margin-left: -48px !important;
    }
}


 @media (max-width: 575px) and (min-width: 481px) {
    .logo {
        padding-left: 37px !important;
    }
    h1{
        padding-left: 48px !important;
    }
}


@media (max-width: 1399px) and (min-width: 1200px) {
    .highlight .container h2{
        text-align: center;
    }
    .highlight .container p{
        text-align: center;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .highlight .container h2{
        text-align: center;
    }
    .highlight .container p{
        text-align: center;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .highlight .container h2{
        text-align: center;
    }
    .highlight .container p{
        text-align: center;
    }
}
