/* ========== Pages intérieures - Layout plein écran ========== */

/* Hero identique à la page d'accueil */
.page-hero {
    position: relative;
    z-index: 10;
    width: 100%;
}

.page-hero-title {
    display: block;
    padding: 0;
    background: none;
    color: #333645;
    border-radius: 0;
    letter-spacing: -0.02em;
    font-weight: 900;
    z-index: 2;
    position: relative;
    border: none;
    text-transform: uppercase;
    box-shadow: none;
    font-size: 3.5rem;
    line-height: 1.1;
    text-align: center;
    padding-top: 4rem; 
}

.page-hero-desc {
    padding-bottom:2rem;
    margin-bottom:2rem;
    margin-bottom:2rem;
    border: none !important;
}

/* Sections plein écran */
.fullscreen-section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: visible;
}

.fullscreen-section .row {
    width: 100%;
}

	.fullscreen-section .section-text {
		padding: 2rem 3rem;
		color: black;
	}

.fullscreen-section .section-text h2 {
    font-size: 2.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.fullscreen-section .section-text .section-body {
    font-size: 1.15rem;
    line-height: 1.65;
}

.fullscreen-section .section-text .section-body span[style] {
    font-size: inherit !important;
    line-height: inherit !important;
}

.fullscreen-section .section-text .section-body ul {
    padding-left: 1.2rem;
    margin: 0.75rem 0;
}

.fullscreen-section .section-text .section-body ul li {
    margin-bottom: 0.35rem;
}

	.fullscreen-section .section-text .section-body p {
		margin-bottom: 0.75rem;
		color: black;
	}

.fullscreen-section .section-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.fullscreen-section .section-img img {
    height: auto;
    max-height: 45vh;
    object-fit: contain;
}

/* Navigation entre sections */
.section-nav-fixed {
    position: fixed;
    z-index: 1000;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: opacity 0.4s, transform 0.3s;
    opacity: 0.6;
}

.section-nav-fixed:hover {
    opacity: 1;
    text-decoration: none;
}

.section-nav-fixed i {
    font-size: 2rem;
}

.section-nav-down {
    bottom: 1.5rem;
}

.section-nav-down:hover {
    transform: translateX(-50%) translateY(3px);
}

.section-nav-up {
    top: 10rem;
}

.section-nav-up:hover {
    transform: translateX(-50%) translateY(-3px);
}

.section-nav-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

/* Arrow color adapts to current section background */
.section-nav-fixed {
    color: var(--text-color);
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes bounceUp {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

.section-nav-down {
    animation: bounceDown 2s ease-in-out infinite;
}

.section-nav-down:hover {
    animation: none;
}

.section-nav-up {
    animation: bounceUp 2s ease-in-out infinite;
}

.section-nav-up:hover {
    animation: none;
}

/* ========== Section Dots Navigation (right side) ========== */
.section-dots-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.section-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    position: relative;
    width: 12px;
    height: 12px;
}

.section-dot-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(51, 54, 69, 0.5);
    background: transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.section-dot:hover .section-dot-indicator {
    border-color: var(--primary);
    background: rgba(78, 134, 138, 0.3);
    transform: scale(1.2);
}

.section-dot--active .section-dot-indicator {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
}

.section-dot-label {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-color);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.6rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-dot:hover .section-dot-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* CTA Section */
.cta-section {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 4rem 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

    .cta-title span {
        text-shadow: 3px 3px 0 #fff, -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff;
    }

    .cta-title.text-danger {
        color: var(--text-color) !important;
    }

.cta-shadow {
    text-shadow: 3px 3px 0 #fff, -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff;
}

.cta-description {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    line-height: 1.65em;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 1.4rem;
    border-radius: 5px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-cta {
    display: inline-block;
    padding: 1.20rem 2rem;
    background: var(--danger);
    color: white;
    border-radius: 5px;
    margin-bottom: -1.50rem;
    margin-top: 1.5rem;
    letter-spacing: 0.25rem;
    font-weight: 600;
    border: none;
    z-index: 2;
    position: relative;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

    .btn-cta:hover {
        text-decoration: none;
        background: var(--primary);
        color: #fff;
    }

.cta-arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.btn-cta:hover .cta-arrow {
    transform: translateX(5px);
}

.section-dot--active .section-dot-label {
    color: var(--primary);
}

/* Responsive: hide dots nav on tablet and below */
@media screen and (max-width: 991px) {
    .section-dots-nav {
        display: none;
    }
}

/* Couleurs de fond des sections */
.bg-white-section {
    background-color: #fff;
    color: var(--text-color);
}

.bg-white-section h2 {
    color: var(--text-color);
}

.bg-danger-section {
    background-color: #f5f5f5;
}

.bg-danger-section h2 {
    color: black;
}

.bg-danger-section .section-body {
    color: rgba(255,255,255,0.95);
}

.bg-danger-section .section-body strong {
    color: #fff;
}

.bg-primary-section {
    background-color: var(--primary);
    color: #fff;
}

.bg-primary-section h2 {
    color: #fff;
}

.bg-primary-section .section-body {
    color: rgba(255,255,255,0.95);
}

.bg-primary-section .section-body strong {
    color: #fff;
}

.bg-secondary-section {
    background-color: var(--secondary);
    color: #fff;
}

.bg-secondary-section h2 {
    color: #fff;
}

.bg-secondary-section .section-body {
    color: rgba(255,255,255,0.95);
}

.bg-secondary-section .section-body strong {
    color: #fff;
}

.bg-success-section {
    background-color: var(--success);
    color: #fff;
}

.bg-success-section h2 {
    color: #fff;
}

.bg-success-section .section-body {
    color: rgba(255,255,255,0.95);
}

.bg-success-section .section-body strong {
    color: #fff;
}

.bg-light-section {
    background-color: #f8f9fa;
    color: var(--text-color);
}

.bg-light-section h2 {
    color: var(--text-color);
}

/* Contraste renforcé pour certaines sections */
.bg-secondary-section,
.bg-secondary-section h2,
.bg-secondary-section .section-body,
.bg-secondary-section .section-body p,
.bg-secondary-section .section-body li,
.bg-secondary-section .section-body strong,
.bg-success-section,
.bg-success-section h2,
.bg-success-section .section-body,
.bg-success-section .section-body p,
.bg-success-section .section-body li,
.bg-success-section .section-body strong {
    color: #1f2230 !important;
}

/* Correction lisibilité texte sur bulles claires */
.fullscreen-section.section-bubble-text-dark .section-img,
.fullscreen-section.section-bubble-text-dark .section-img *,
.fullscreen-section.section-bubble-text-dark .section-img p,
.fullscreen-section.section-bubble-text-dark .section-img span,
.fullscreen-section.section-bubble-text-dark .section-img strong,
.fullscreen-section.section-bubble-text-dark .section-img a {
    color: #1f2230 !important;
    text-shadow: none !important;
}

/* ========== Responsive ========== */

@media screen and (max-width: 991px) {
    .page-hero-title {
        font-size: 2.8rem;
    }

    .fullscreen-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .fullscreen-section .section-text h2 {
        font-size: 2rem;
    }

    .fullscreen-section .section-text .section-body {
        font-size: 1.15rem;
    }

    .fullscreen-section .section-text {
        padding: 1.5rem 2rem;
    }

    .fullscreen-section .section-img img {
        max-height: none;
        max-width: 100%;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .cta-description {
        font-size: 1.15rem;
    }
}

@media screen and (max-width: 1024px) {
    .page-hero {
        padding: 1rem 15px;
    }

    .page-hero-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .page-hero-desc {
        font-size: 1.1rem;
    }

    .fullscreen-section .row > [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .fullscreen-section .section-text {
        padding: 1.5rem;
        text-align: center;
    }

    .fullscreen-section .section-text h2 {
        font-size: 1.75rem;
    }

    .fullscreen-section .section-text .section-body {
        font-size: 1.05rem;
        text-align: left;
    }

    .fullscreen-section .section-img {
        padding: 1rem;
    }

    .fullscreen-section .section-img img {
        max-width: 70%;
    }

    .section-nav-fixed {
        display: none;
    }

    /* CTA harmonized with sections */
    .cta-section {
        padding: 3rem 1.5rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 1.05rem;
    }

    .btn-cta {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        letter-spacing: 0.15rem;
    }

    /* Split panels */
    .split-panel {
        min-height: auto;
        padding: 1rem 0;
    }

    .split-panel-inner {
        padding: 1.5rem;
        max-width: 100%;
        text-align: center;
    }

    .split-panel .section-body {
        text-align: left;
        font-size: 1.05rem;
    }

    .split-panel h2 {
        font-size: 1.75rem;
    }
}

@media screen and (max-width: 576px) {
    .page-hero-title {
        font-size: 1.75rem;
    }

    .page-hero-desc {
        font-size: 1rem;
    }

    .fullscreen-section .section-text h2 {
        font-size: 1.5rem;
    }

    .fullscreen-section .section-text .section-body {
        font-size: 1rem;
    }

    .fullscreen-section .section-img img {
        max-width: 80%;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .split-panel h2 {
        font-size: 1.5rem;
    }

    .split-panel .section-body {
        font-size: 1rem;
    }
}

/* Split section - two panels side by side */
.split-section {
    padding: 0;
}

.split-section > .container-fluid {
    height: 100%;
}

.split-section .row {
    min-height: 100vh;
}

.split-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-panel-inner {
    padding: 3rem;
    max-width: 540px;
}

.split-panel .section-img {
    display: flex;
    justify-content: center;
    padding: 0;
}

.split-panel .section-img img {
    max-height: 30vh;
    object-fit: contain;
}

.split-panel h2 {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.split-panel .section-body {
    font-size: 1.05rem;
    line-height: 1.65;
}

@media screen and (max-width: 991px) {
    .split-section .row {
        min-height: auto;
    }

    .split-panel-inner {
        padding: 2rem 1.5rem;
    }

    .split-panel h2 {
        font-size: 1.75rem;
    }
}

/* Blocs de présentation : texte foncé */
.fullscreen-section.presentation-block .section-text,
.fullscreen-section.presentation-block .section-text h2,
.fullscreen-section.presentation-block .section-text .section-body,
.fullscreen-section.presentation-block .section-text .section-body p,
.fullscreen-section.presentation-block .section-text .section-body li,
.fullscreen-section.presentation-block .section-text .section-body strong,
.fullscreen-section.presentation-block .section-text .section-body a {
    color: #1f2230 !important;
}

.fullscreen-section.presentation-block .section-text .section-body span[style],
.fullscreen-section.presentation-block .section-text .section-body *[style] {
    color: #1f2230 !important;
}

/* Texte foncé sur les blocs dynamiques de présentation */
.presentation-block,
.presentation-block h1,
.presentation-block h2,
.presentation-block h3,
.presentation-block h4,
.presentation-block h5,
.presentation-block h6,
.presentation-block p,
.presentation-block li,
.presentation-block span,
.presentation-block strong,
.presentation-block em,
.presentation-block a,
.presentation-block div {
    color: #1f2230 !important;
}

.presentation-block *[style] {
    color: #1f2230 !important;
}