
/* =========================
   BACKGROUND BULLES
========================= */

.background-bulles {
    background-color: rgb(247, 245, 245);
    background-blend-mode: lighten;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: -2;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    filter: hue-rotate(0deg);
    transition: filter 0.6s ease;
}

.bulles {
    position: absolute;
    width: 40vw;
    height: 40vw;
    border-radius: 999px;
    filter: blur(90px);
}
.bulle-3 {
    background-color: rgba(255, 72, 0, 0.04);
    animation: ani-bulle-1 12s infinite;
}
.bulle-2 {
    background-color: rgba(255, 0, 191, 0.04);
    animation: ani-bulle-2 16s infinite;
}
.bulle-1 {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: saturate(3);
    animation: ani-bulle-3 22s infinite;
}
.bulle-4 {
    background-color: rgba(255, 0, 34, 0.04);
    animation: ani-bulle-4 14s infinite;
}

/* Animations des bulles */
@keyframes ani-bulle-1 {
    0% {
        transform: translate(0, 0) scale(2);
    }
    10% {
        transform: translate(50px, -50px) scale(0.4);
    }
    50% {
        transform: translate(100px, 0) scale(1);
    }
    60% {
        transform: translate(50px, 50px) scale(1.2);
    }
    100% {
        transform: translate(0, 0) scale(2);
    }
}

@keyframes ani-bulle-2 {
    0% {
        transform: translate(150px, 150px) scale(0.4);
    }
    10% {
        transform: translate(200px, 100px) scale(1);
    }
    50% {
        transform: translate(250px, 150px) scale(1.2);
    }
    60% {
        transform: translate(200px, 200px) scale(2);
    }
    100% {
        transform: translate(150px, 150px) scale(0.4);
    }
}

@keyframes ani-bulle-3 {
    0% {
        transform: translate(-150px, -150px) scale(0.4);
    }
    10% {
        transform: translate(-100px, -200px) scale(2.4);
    }
    50% {
        transform: translate(-50px, -150px) scale(1.4);
    }
    90% {
        transform: translate(-100px, -100px) scale(1.5);
    }
    100% {
        transform: translate(-150px, -150px) scale(0.4);
    }
}

@keyframes ani-bulle-4 {
    0% {
        transform: translate(0, 0) scale(2);
    }
    10% {
        transform: translate(50px, -50px) scale(0.4);
    }
    50% {
        transform: translate(100px, 0) scale(1);
    }
    60% {
        transform: translate(50px, 50px) scale(1.2);
    }
    100% {
        transform: translate(0, 0) scale(2);
    }
}


/* =========================
   VUES HUB / SECTION
========================= */

.ap-view {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.ap-view-hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(12px);
}



/* =========================
   PATH-SUBNAV : transition de couleur
========================= */

.path-subnav {
    transition: background-color 0.5s ease;
}


/* =========================
   STYLE DES SECTIONS
========================= */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200vh;
}
.ap-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
}

.ap-section {
    text-align: justify;
    width: 90vw;
    max-width: 1200px;
    margin-top: 10vh;
    margin-bottom: 10vh;
    padding: 20px 60px;
    border: 1px solid var(--global-transparent-white-1);
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(24px) brightness(1.1) saturate(5) ;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.08);
}
@media (max-width: 800px) {
    .ap-section {
        margin-top: 6vh;
        width: 90vw;
    }
}
@media (min-width : 1000px) {
    .ap-section {
    width: 80vw;
    padding: 30px 80px;
    border-radius: 20px;
}
}
.ap-grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.ap-subhub-box {
    padding: 1.5rem;
}

.ap-content {
    width: 100%;
}

.ap-content p,
.philo-level2-content p,
.philo-level2-content p ul {
    font-size: var(--txt-size-09);
    font-weight: 400;
    line-height: var(--txt-lh-normal);
    color: var(--txt-color-blackop-80);
    margin: 0 0 1rem 0;
    text-align: justify;
} 

.ap-content p strong,
.philo-level2-content p strong {
    font-weight: 620;
}

.ap-subfragment-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}





/* =========================
   PRESENTATION FRAGMENT
========================= */
.intro-title {
    font-size: var(--txt-size-10);
    font-weight: 600;
    text-align: center;
    margin: 3rem 0;
}
.block-presentation-annee {
    border-left: 2px solid rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    padding-left: 25px;
    padding-bottom: 1px;
    margin-left: -25px;
    margin-bottom: 8px;
}
.ap-section h2 img {
    width: 6rem;
    height: 6rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 99px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    margin-right: 8px;
    filter: sepia(0.1);
}
.presentation-nav {
    width: 90vw;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: saturate(3) brightness(1.03);
    border: 1px solid var(--global-transparent-white-1);
    border-radius: 99px;
    padding: 10px;
    margin-bottom: -6vh;
}
.interactive-section-mark { 
  display: block;
  height: 2px;
  width: 100%;
  --c:no-repeat linear-gradient(var(--button-global-color) 0 0);
  background: var(--c),var(--c),var(--global-white-2);
  background-size: 60% 100%;
  animation: mark-interaction 3s infinite ease-out;
}
@keyframes mark-interaction {
  0%   {background-position:-150% 0,-150% 0}
  66%  {background-position: 250% 0,-150% 0}
  100% {background-position: 250% 0, 250% 0}
}


#en-bref-paragraph {
    text-align: justify;
    border-left: 1px solid rgba(0, 0, 0, 0.4);
    padding-left: 1rem;
}
@media (max-width: 800px) {
    .ap-section h2 img {
        width: 4rem;
        height: 4rem;
    }
    .presentation-nav {
        margin-bottom: -4vh;
        padding: 5px;
        border-radius: 25px;
    }
    #en-bref-paragraph { 
        text-align: left; 
    }
}
#presentation-section {
    animation: presentation-section-in 0.3s;
    margin-bottom: 40vh;
}
@media (max-width: 800px) {
    #presentation-section {
        padding-left: 35px;
        padding-right: 35px;
    }
}
@media (max-width: 600px) {
    #presentation-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@keyframes presentation-section-in {
    0% {filter: blur(7px)};
    100% {filter: blur(1)}
}
/* =========================
   INLINE ACCORDION
========================= */

.inline-accordion {
    display: inline;
    background-color: rgb(255, 255, 0, 0.2);
}
.inline-accordion:hover {
    background-color: rgb(255, 255, 0, 0.3)
}
.realisation-exemples {
    display: inline;
    padding: 0 5px;
    background-color: rgba(0, 190, 255, 0.2);
}
.realisation-exemples img {
    display: inline-block;
    height: 0.9rem;
}
.realisation-exemples a {
    padding: 0 2px;
    background-color: rgba(0, 255, 200, 0.2);
}
.realisation-exemples a:hover {
    background-color: rgba(0, 255, 200, 0.4);
}


.accordion-trigger {
    cursor: pointer;
    display: inline;
    color: inherit;
    text-decoration: none;
    transition: border-bottom-color 0.2s ease;
    padding: 0 2px;
    background: transparent;
}


.accordion-title {
    font-style: italic;
    font-weight: 400;
    user-select: none;
    border-bottom: 1px dotted invisible;
}
.accordion-title:hover {
    border-bottom: 1px dotted rgba(0, 0, 0, 0.8);
}

.accordion-indicator {
    display: inline;
    font-size: 0.9em;
    letter-spacing: 0.8px;
    user-select: none;
}

.accordion-content {
    display: none;
    margin: 0 4px;
    font-weight: 400;
}

.accordion-content.expanded {
    display: inline;
    font-style: italic;
}

.accordion-block {
    display: inline;
    opacity: 0;
    animation: accordion-fade-in 0.3s ease-out forwards;
}

.accordion-block.fading-out {
    animation: accordion-fade-out 0.3s ease-in forwards;
}

@keyframes accordion-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes accordion-fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 90;
    }
}


/* =========================
   PHILOSOPHIE ACCORDION (3 niveaux)
========================= */

.philo-accordion {
    width: 100%;
    margin-top: 2rem;
}

/* NIVEAU 1 - Premiers titres */
.philo-level1 {
    margin-bottom: 0.5rem;
}

.philo-level1-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.philo-level1-header:hover {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
}

.philo-level1-title {
    font-family: 'Intertight', sans-serif;
    font-size: var(--txt-size-13);
    font-weight: 700;
    color: var(--txt-color-blackop-90);
    letter-spacing: var(--txt-spacing-normal);
}

/* Flèche niveau 1 - sobre et moderne */
.philo-arrow {
    position: relative;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transform:  rotate(180deg);
    transition: transform 0.3s ease;
}

.philo-arrow::before,
.philo-arrow::after {
    content: '';
    position: absolute;
    background-color: var(--txt-color-blackop-70);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.philo-arrow::before {
    width: 8px;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(45deg);
    transform-origin: left center;
}

.philo-arrow::after {
    width: 8px;
    height: 2px;
    bottom: 50%;
    left: 0;
    transform: translateY(50%) rotate(-45deg);
    transform-origin: left center;
}

/* État ouvert niveau 1 */
.philo-level1.active > .philo-level1-header .philo-arrow {
    transform: rotate(-90deg);
}

/* Contenu niveau 1 */
.philo-level1-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 1.5rem;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.philo-level1.active > .philo-level1-content {
    max-height: 12000px;
    opacity: 1;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}


/* NIVEAU 2 - Seconds titres */
.philo-level2 {
    margin-bottom: 0.25rem;
}

.philo-level2-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* Effet de surlignage par balayage */
.philo-level2-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.08);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 0;
}

.philo-level2.active > .philo-level2-header::before {
    transform: translateX(0);
}

.philo-level2-title {
    font-family: 'Intertight', sans-serif;
    font-size: var(--txt-size-11);
    font-weight: 700;
    color: var(--txt-color-blackop-85);
    letter-spacing: var(--txt-spacing-normal);
    position: relative;
    z-index: 1;
}

/* Puce disque niveau 2 */
.philo-disc {
    width: 6px;
    height: 6px;
    margin-left: 6px;
    border-radius: 50%;
    background-color: var(--txt-color-blackop-90);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Contenu niveau 2 */
.philo-level2-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 1.5rem;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

.philo-level2.active > .philo-level2-content {
    max-height: 12000px;
    opacity: 1;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

/* Paragraphes dans le contenu */
.philo-level2-content h3 {
    font-size: var(--txt-size-10);
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--txt-color-blackop-85);
}
.philo-level2-content h2 {
    font-size: var(--txt-size-11);
    font-weight: 700;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--txt-color-blackop-85);    
}

.philo-level2-content p:last-child {
    margin-bottom: 0;
}

.philo-perso-disclaimer {
    border: 1px solid rgba(0, 30, 255, 0.3);
    background-color: rgba(0, 30, 255, 0.05);
    padding-left: 25px;
    padding-right: 25px;
    margin-bottom: 20px;
    border-radius: 7px;
}
.philo-perso-disclaimer legend {
    font-weight: 800;
    font-size: var(--txt-size-09);
    text-transform: uppercase;
    color: rgba(0, 30, 255, 0.7);
}

/* RESPONSIVE */
@media (max-width: 800px) {
    .philo-level1-content {
        padding-left: 1rem;
    }
    
    .philo-level2-content {
        padding-left: 1rem;
    }
    
    .philo-level1-title {
        font-size: var(--txt-size-11);
    }
    
    .philo-level2-title {
        font-size: var(--txt-size-10);
    }
}

@media (max-width: 600px) {
    .philo-level1-content {
        padding-left: 0.5rem;
    }
    
    .philo-level2-content {
        padding-left: 0;
    }
    
    .philo-level2-content p,
    .ap-content p {
        text-align: left;
        padding-left: 0;
        margin-left: 0;
    }
    
    .philo-level1-header {
        padding: 0.7rem 0.25rem;
    }
    
    .philo-level2-header {
        padding: 0.5rem 0.25rem;
    }
}