/* Regard Sur - Page d'Accueil CSS */
/* Fichier: assets/css/accueil.css */

/* === Variables === */
:root {
  --orange: #EE7900;
  --noir: #1c1c1c;
  --blanc: #f9f9f9;
}

/* ========================================
   SECTION 1 : HERO
======================================== */
.hero {
    height: calc(100vh - var(--nav-height)); /* formule pour adapter auto la taille du hero avec la taille de la bar nav */
    min-height: 680px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Vidéo background */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(14,14,14,0.5)  0%,
        rgba(14,14,14,0.1)  40%,
        rgba(14,14,14,0.85) 78%,
        rgba(14,14,14,1)    100%
    );
}

/* Grain de texture */
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* === CENTRE : Titre principal === */
.hero-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 3;
    padding: 0 2rem;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--orange);
    opacity: 0.6;
}

.hero h1 {
    background: none;
    -webkit-text-fill-color: unset;
    font-size: unset;
    margin-bottom: 0;
    animation: none;
}

.hero-title {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 200;
    font-size: clamp(2rem, 5.2vw, 6.5rem);
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(249,249,249,0.7);
    opacity: 0;
    animation: fadeUp 1s ease 0.4s forwards;
}

.hero-title-vous {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(5rem, 14vw, 16rem);
    line-height: 0.85;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(249,249,249,0.15);
    margin-top: 0.06em;
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
    user-select: none;
    position: relative;
}

.hero-title-vous::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange) 0%, #ff9a30 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero:hover .hero-title-vous::after { opacity: 1; }

/* === BAS : Barre stats / CTA / desc === */
.hero-bottom {
    position: relative;
    z-index: 3;
    padding: 0 4rem 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 3rem;
    opacity: 0;
    animation: fadeUp 0.9s ease 1s forwards;
}

.hero-bottom-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}

.stat-sep {
    width: 1px;
    height: 18px;
    background: rgba(249,249,249,0.15);
    flex-shrink: 0;
}

.stat-txt {
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: rgba(249,249,249,0.5);
    text-transform: uppercase;
}

/* CTA dans le hero */
.hero-bottom-cta {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    gap: 0.8rem;
}

.hero .cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0rem;
    padding: 0.7rem 4rem;
    background: var(--orange);
    color: var(--noir);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero .cta-primary:hover {
    background: #ff8800;
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(238,121,0,0.3);
}

/* Description droite */
.hero-bottom-desc {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-end;
}

.hero-desc-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(249,249,249,0.55);
    max-width: 300px;
}

.hero-tagline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(249,249,249,0.3);
}

.hero-tagline-badge i {
    color: var(--orange);
    font-size: 0.55rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 0.4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
    background: none;
    border: none;
}

.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--orange), transparent);
    animation: scrollLine 1.5s ease infinite;
    transform-origin: top;
}

/* === Animations Hero === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ========================================
   SECTION 2 : DÉFIS
======================================== */
/* === Section wrapper === */
.defis-section {
    background: #242424;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
 
.defis-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(238,121,0,0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(238,121,0,0.04) 0%, transparent 40%);
    pointer-events: none;
}
 
.defis-section .container {
    position: relative;
    z-index: 1;
}
 
/* === Titre === */
.defis-header {
    margin-bottom: 56px;
}
 
.defis-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(238,121,0,0.7);
    margin-bottom: 1rem;
}
 
.defis-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: #f9f9f9;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
}
 
.defis-title em {
    color: #EE7900;
    font-style: normal;
}
 
.defis-body-text {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(249,249,249,0.45);
    line-height: 1.7;
    max-width: 520px;
}
 
/* === Bloc citations === */
.defis-citations {
    margin-bottom: 20px;
    position: relative;
}
 
.defis-citation-track {
    position: relative;
    min-height: 130px;
    padding : 0rem 20rem 0rem 0rem;
}
 
.defis-citation {
    display: none;
    background: #1a1a1a;
    border-left: 4px solid rgba(238,121,0,0.35);
    border-radius: 0 12px 12px 0;
    padding: 1.6rem 1.8rem 1.4rem;
    position: relative;
    overflow: hidden;
    animation: defisFadeIn 0.4s ease forwards;
}
 
.defis-citation.is-active {
    display: block;
}
 
.defis-citation::after {
    content: '\201C';
    position: absolute;
    top: -0.2rem;
    right: 1.2rem;
    font-size: 5rem;
    color: rgba(238,121,0,0.06);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}
 
.defis-citation p {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    font-weight: 500;
    font-style: italic;
    color: rgba(249,249,249,0.8);
    line-height: 1.75;
    position: relative;
    z-index: 1;
}
 
.defis-citation p strong {
    color: #f9f9f9;
    font-weight: 500;
    font-style: normal;
}
 
.defis-citation p em {
    color: #EE7900;
}
 
.defis-citation cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.68rem;
    font-style: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(249,249,249,0.25);
}
 
/* Navigation citations */
.defis-citation-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
 
.defis-nav-btn {
    background: none;
    border: 1px solid rgba(238, 121, 0, 0);
    color: #EE7900;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
 
.defis-nav-btn:hover {
    background: rgba(238,121,0,0.12);
}
 
.defis-nav-btn:focus-visible {
    outline: 2px solid rgba(238,121,0,0.5);
    outline-offset: 2px;
}
 
.defis-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
 
.defis-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(249,249,249,0.15);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}
 
.defis-dot.is-active {
    background: #EE7900;
    width: 20px;
    border-radius: 3px;
}
 
.defis-dot:focus-visible {
    outline: 2px solid rgba(238,121,0,0.5);
    outline-offset: 2px;
}
 
/* === 3 Cartes === */
.defis-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 20px;
}
 
.defis-card {
    background: #1c1c1c;
    border-radius: 12px;
    padding: 1.6rem 1.4rem;
    border-top: 2px solid rgba(238,121,0,0.2);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
 
.defis-card:hover {
    border-top-color: rgba(238,121,0,0.6);
    transform: translateY(-4px);
}
 
.defis-card-icon {
    display: block;
    font-size: 1.3rem;
    color: #EE7900;
    margin-bottom: 0.9rem;
    opacity: 0.85;
}
 
.defis-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f9f9f9;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}
 
.defis-card p {
    font-size: 0.85rem;
    color: rgba(249,249,249,0.45);
    line-height: 1.65;
}
 
/* === CTA barre finale === */
.defis-cta-bar {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background: #1a1a1a;
    border: 1px solid rgba(238,121,0,0.12);
    border-radius: 12px;
    padding: 1.1rem 1.6rem;
    flex-wrap: wrap;
}
 
.defis-cta-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(249,249,249,0.6);
    flex: 1;
    min-width: 180px;
}
 
.defis-cta-btn {
    display: inline-flex;
    align-items: center;
    background: #EE7900;
    color: #1c1c1c;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 4rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}
 
.defis-cta-btn:hover {
    background: #ff8800;
    transform: translateY(-2px);
}
 
.defis-cta-btn:focus-visible {
    outline: 2px solid rgba(238,121,0,0.5);
    outline-offset: 2px;
}
 
.defis-cta-subtext {
    font-size: 0.72rem;
    color: rgba(249,249,249,0.25);
    letter-spacing: 0.5px;
    white-space: nowrap;
}
 
/* === Animation === */
@keyframes defisFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   SECTION 3 : SOLUTION
======================================== */
.solution-section {
    background: #1c1c1c;
    padding: 120px 0;
    position: relative;
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-text h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem); 
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #f9f9f9;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.solution-lead {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    color: rgba(249,249,249,0.45);
    margin-bottom: 2.5rem;
}

.solution-lead strong {
    color: #EE7900;
    font-weight: 600;
}

.solution-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 3rem;
    color: #f9f9f9;
}

.solution-stats-band {
    margin: 2rem 0 2.5rem;
}

.solution-stats-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.9rem;
    opacity: 0.85;
}

.solution-stats-grid {
    display: flex;
    border: 1px solid rgba(238, 121, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(36, 36, 36, 0.5);
}

.solution-stat-item {
    flex: 1;
    padding: 1.2rem 1rem;
    text-align: center;
    position: relative;
}

.solution-stat-item + .solution-stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(238, 121, 0, 0.2);
}

.solution-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.solution-stat-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(249, 249, 249, 0.5);
    line-height: 1.3;
}

.promesse-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: rgba(36, 36, 36, 0.4);
    border-radius: 12px;
    border-left: 4px solid #EE7900;
    transition: all 0.3s ease;
}

.promesse-item:hover {
    background: rgba(36, 36, 36, 0.7);
    transform: translateX(8px);
}

.promesse-icon {
    font-size: 2rem;
    color: #EE7900;
    flex-shrink: 0;
}

.promesse-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f9f9f9;
}

.promesse-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(249, 249, 249, 0.75);
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #EE7900;
    color: #EE7900;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: #EE7900;
    color: #1c1c1c;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(238, 121, 0, 0.3);
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #EE7900;
    border: 2px solid #EE7900;
    color: #1c1c1c;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background: transparent;
    color: #EE7900;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(238, 121, 0, 0.3);
}

.solution-visual {
    position: relative;
}

.solution-visual img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.solution-visual:hover img {
    transform: scale(1.05);
}

.visual-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #2a2a2a 0%, #1c1c1c 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(249, 249, 249, 0.3);
    border: 2px dashed rgba(238, 121, 0, 0.2);
}

.visual-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.visual-placeholder p {
    font-size: 1rem;
    font-weight: 500;
}

/* Contact CTA */
.contact-cta {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #EE7900 0%, #ff8800 100%);
    color: #1c1c1c;
}

.contact-cta h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #1c1c1c;
    color: #f9f9f9;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

/* CTA Button Global */
.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #EE7900 0%, #ff8800 100%);
    color: #1c1c1c;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(238, 121, 0, 0.3);
}

.cta-button:focus {
    outline: 2px solid #EE7900;
    outline-offset: 2px;
}

/* Animations globales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
    .defis-citation-track {
    padding : 0rem 10rem 0rem 0rem;
    }

    .solution-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .solution-visual {
        order: -1;
    }

    .defis-section,
    .solution-section {
        padding: 80px 0;
    }
}

@media (max-width: 900px) {
    .hero-bottom {
        grid-template-columns: 1fr;
        padding: 1.5rem 2rem 2.5rem;
        gap: 2rem;
    }
    .hero-bottom-desc {
        text-align: left;
        align-items: flex-start;
    }
    .hero-bottom-cta { align-items: flex-start; }
    .hero-bottom-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem 2rem;
    }
    .hero-title-vous { letter-spacing: -2px; }
}

@media (max-width: 768px) {
    .hero-video-wrapper {
        display: none;
    }

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

    .defis-section,
    .solution-section {
        padding: 60px 0;
    }

    .defis-citation-track {
    padding : 0rem 2rem 0rem 0rem;
}

    .defis-header  { 
        margin-bottom: 40px; 
    }

    .defis-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .defis-cta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
 
    .defis-cta-subtext { 
        display: none; 
    }

    .solution-stats-grid {
        flex-direction: column;
    }

    .solution-stat-item + .solution-stat-item::before {
        top: 0;
        left: 10%;
        height: 1px;
        width: 80%;
    }

    .solution-stat-number {
        font-size: 1.75rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .cta-secondary,
    .cta-primary {
        width: 100%;
        justify-content: center;
    }

    .contact-cta h2 {
        font-size: 2rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(1.6rem, 7vw, 3rem); }
    .hero-title-vous { font-size: clamp(4rem, 20vw, 8rem); }
    .stat-num { font-size: 1.4rem; }

    .defis-citation { padding: 1.2rem 1.2rem 1rem; }
    .defis-citation p { font-size: 0.9rem; }
}

/* Print styles */
@media print {
    .hero {
        height: auto;
        padding: 2rem 0;
    }

    .hero, .contact-cta {
        background: none !important;
        color: black !important;
    }

}