/* ========================================
   BASE STYLES
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--light-bg);
    font-family: var(--body-font-family);
    color: var(--body-color);
    line-height: 1.6;
}

.highlight {
    color: var(--secondary-color);
    font-family: var(--annotation-font-family);
    font-size: 40px;
    font-weight: 600;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    background-color: var(--navbar-bg);
    padding: 25vh 0 80px;
    position: relative;
    overflow: visible;
    padding-left: 0;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    max-width: 1800px;
    margin: 0 auto;
    gap: 50px;
    position: relative;
    padding-right: 40px;
    min-height: 200px
}

.founder-photo {
    flex-shrink: 0;
    width: 450px;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    height: 600px;
    margin-left: 0;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 20px 20px 0;
    display: block; 
    margin-bottom: 0;
    margin-left: 0;
}

.founder-bio {
    color: var(--navbar-text);
    padding-top: 0;
    flex: 1;
    min-width: 0;
    margin-left: 500px;
    position: relative;
    z-index: 5;
}

.intro-text {
    font-family: var(--body-font-family);
    font-weight: var(--body-font-weight);
    font-size: 20px;
    margin-bottom: 10px;
    opacity: 0.9;
    color: var(--hero-text-color);
}

.founder-bio h1 {
    font-family: var(--h1-font-family);
    font-weight: var(--h1-font-weight);
    font-size: 44px;
    line-height: var(--h1-line-height);
    color: var(--secondary-color);
    margin-bottom: 0;
}

.founder-bio .highlight {
    color: var(--secondary-color);
    font-family: var(--annotation-font-family);
    font-weight: var(--annotation-font-weight);
    font-size: 52px;
    margin-top: 5px;
}

/* ========================================
   BIO POINTS SECTION
======================================== */

.bio-points-section {
    background-color: var(--light-bg);
    padding: 60px 40px 80px;
    position: relative;
    margin-top: -150px;
    z-index: 2;
    padding-top: 50px;
}

.bio-points-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-left: calc(450px + 5%);
    padding-top: 40px;
}

.bio-points-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.bio-point {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0;
}

.bio-point-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bio-point-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.bio-point-content h3 {
    font-family: var(--h3-font-family);
    font-weight: bold;
    font-size: 20px;
    line-height: 26px;
    color: var(--h3-color);
    margin-bottom: 10px;
}

.bio-point-content p {
    font-family: var(--body-font-family);
    font-weight: var(--body-font-weight);
    color: var(--body-color);
    font-size: 16px;
    line-height: 22px;
}

/* ========================================
   PHILOSOPHY SECTION
======================================== */

.philosophy-section {
    background-color: var(--light-bg);
    padding: 80px 40px;
    text-align: center;
}

.philosophy-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.philosophy-section h2 {
    font-family: var(--h2-font-family);
    font-weight: var(--h2-font-weight);
    font-size: 40px;
    line-height: 52px;
    color: var(--h2-color);
    margin-bottom: 20px;
}

.philosophy-section h3 {
    font-family: var(--h3-font-family);
    font-weight: bold;
    font-size: 20px;
    line-height: var(--h3-line-height);
    color: var(--h3-color);
    margin-bottom: 30px;
}

.philosophy-section p {
    font-family: var(--body-font-family);
    font-weight: var(--body-font-weight);
    font-size: 16px;
    line-height: 26px;
    color: var(--body-color);
    margin-bottom: 30px;
}

.philosophy-section strong {
    font-family: var(--body-font-family);
    font-weight: bold;
    font-size: 16px;
    line-height: 26px;
    color: var(--body-color);
}

.philosophy-btn {
    position: relative;
    justify-content: center;
    padding: 8px 32px;
    border-radius: 25px;
    font-family: var(--font-nunito);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #b03306 0%, #F7931E 100%);
    color: var(--dark-bg);
    transition: all 0.3s ease;
    box-sizing: border-box;
    z-index: 1;
    height: 40px;
    display: inline-flex;
    align-items: center;
}

.philosophy-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 3px;
    background: linear-gradient(135deg, #b03306 0%, #F7931E 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    box-sizing: border-box;
}

.philosophy-btn:hover::before {
    opacity: 1;
}

.philosophy-btn:hover {
    background: transparent;
    color: black;
    -webkit-background-clip: text;
    background-clip: text;
}

/* ========================================
   TEAM GRID SECTION
======================================== */

.team-grid-section {
    margin-top: 20vh;
    background-color: var(--light-bg);
}

.team-grid-section h2 {
    font-family: var(--h2-font-family);
    font-weight: var(--h2-font-weight);
    font-size: 40px;
    line-height: 50px;
    color: var(--h2-color);
    margin-bottom: 50px;
    text-align: left;
    margin-left: 15%;
}

.team-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Première ligne - 3 experts */
.team-row-first {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 25px;
    justify-items: center;
}

/* Deuxième ligne - 2 experts centrés */
.team-row-second {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 660px;
    margin: 0 auto;
    justify-items: center;
}

.team-member-card {
    width: 100%;
    max-width: 320px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.team-member-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.expert-photo {
    width: 120%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, var(--overlay-bg));
    color: var(--navbar-text);
    padding: 40px 20px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.member-info h4 {
    font-family: var(--h3-font-family);
    font-weight: 600;
    font-size: 1em;
    color: var(--navbar-text);
    margin-bottom: 5px;
}

.member-info .role {
    color: var(--secondary-color);
    font-family: var(--body-font-family);
    font-weight: 700;
    font-size: 0.95em;
}

.team-member-card:hover .member-info {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   APPROACH SECTION
======================================== */

.approach-section {
    margin-top: 20vh;
    background-color: var(--light-bg);
    padding: 80px 40px;
    text-align: center;
}

.approach-section h2 {
    font-family: var(--h2-font-family);
    font-weight: var(--h2-font-weight);
    font-size: 40px;
    line-height: var(--h2-line-height);
    color: var(--h2-color);
    margin-bottom: 50px;
    text-align: left;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.approach-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto 40px;
    align-items: stretch;
    max-height: 350px;
}

.approach-card {
    background-color: #FFE9D2;
    border: 2px solid var(--secondary-color);
    border-radius: 20px 20px 0 0;
    padding: 15px 25px 0; 
    transition: transform 0.3s ease;
    overflow: visible; 
    max-height: 320px;
}

.approach-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 0px;
}

.card-header .bi {
    font-size: 48px;
    color: var(--secondary-color);
    width: 48px;
    height: 48px;
}

.card-header img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.card-header h4 {
    font-family: var(--h3-font-family);
    font-weight: var(--h3-font-weight);
    font-size: 26px;
    text-align: left;
    color: var(--h3-color);
    margin: 0;
    padding-top: 0;
}

.card-content {
    background-color: var(--navbar-bg);
    color: var(--navbar-text);
    padding: 18px;
    border-radius: 10px;
    transform: translateY(15%); 
    position: relative; 
    z-index: 10; 
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content p {
    text-align: left;
    font-family: var(--body-font-family);
    font-weight: var(--body-font-weight);
    color: #FFE9D2;
    line-height: 24px;
    font-size: 14px;
    margin: 0;
}

.card-content strong {
    font-family: var(--body-font-family);
    font-weight: bold;
    color: #FFE9D2;
    font-size: 14px;
    margin: 0;
}

.approach-buttons {
    margin-top: 20vh;
}

.approach-btn-orange {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 32px;
    border-radius: 25px;
    font-family: var(--font-nunito);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #b03306 0%, #F7931E 100%);
    color: var(--dark-bg);
    transition: all 0.3s ease;
    box-sizing: border-box;
    z-index: 1;
    min-width: 180px;
    height: 40px;
}

.approach-btn-orange::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    padding: 3px;
    background: linear-gradient(135deg, #b03306 0%, #F7931E 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    box-sizing: border-box;
}

.approach-btn-orange:hover::before {
    opacity: 1;
}

.approach-btn-orange:hover {
    background: transparent;
    color: transparent;
    background-image: linear-gradient(135deg, #b03306 0%, #F7931E 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.approach-btn-dark {
    background: black;
    color: white;
    border: 3px solid black;
    padding: 5px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-nunito);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    min-width: 180px;
    height: 40px;
    line-height: 24px;
}

.approach-btn-dark:hover {
    background: transparent;
    color: var(--dark-bg);
    text-decoration: none;
}

/* ========================================
   BUTTONS
======================================== */

.btn-dark, .btn-orange {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-nunito);
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 10px;
    border: none;
    cursor: pointer;
}

.btn-dark {
    background-color: var(--dark-bg);
    color: var(--navbar-text);
}

.btn-orange {
    background: var(--accent-gradient);
    color: white;
}

.btn-dark:hover, .btn-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
}

.approach-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   RESPONSIVE DESIGN MOBILE - HERO SECTION
======================================== */

@media (max-width: 1200px) {
    .bio-points-container {
        margin-left: calc(350px + 3%);
    }
}

@media (max-width: 992px) {
    .bio-points-container {
        margin-left: 0;
        padding-left: 40px;
        padding-right: 40px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding-right: 0;
        min-height: auto;
    }

    .founder-photo {
        width: 280px;
        height: 350px;
        margin: 0 auto;
        order: 1;
        position: relative;
        left: auto;
        top: auto;
    }

    .founder-photo img {
        margin-top: 0;
        margin-bottom: 0;
        position: static;
        border-radius: 20px;
    }

    .founder-bio {
        order: 2;
        padding-top: 0;
        margin-left: 0;
    }

    .founder-bio h1 {
        font-size: 32px;
    }

    .founder-bio .highlight {
        font-size: 40px;
    }

    .intro-text {
        font-size: 18px;
    }

    .hero-section {
        padding: 15vh 20px 40px;
    }
}

/* ========================================
   RESPONSIVE DESIGN MOBILE - BIO POINTS SECTION
======================================== */

@media (max-width: 768px) {
    .bio-points-container {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 30px;
        margin-left: 0;
    }

    .bio-points-section {
        margin-top: 0;
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .bio-point {
        gap: 15px;
    }

    .bio-point-icon {
        width: 40px;
        height: 40px;
    }

    .bio-point-icon img {
        width: 40px;
        height: 40px;
    }

    .bio-point-content h3 {
        font-size: 18px;
        line-height: 24px;
    }

    .bio-point-content p {
        font-size: 15px;
        line-height: 21px;
    }
}

/* ========================================
   RESPONSIVE DESIGN MOBILE - TEAM GRID SECTION
======================================== */

@media (max-width: 1024px) {
    .team-row-first {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        margin: 0 auto 30px;
    }
    
    .team-row-second {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .team-row-first,
    .team-row-second {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 300px;
        margin: 0 auto;
    }

    .team-row-first {
        margin-bottom: 25px;
    }

    .team-member-card {
        max-width: 100%;
    }

    .expert-photo {
        height: 280px;
        width: 100%;
    }

    .team-grid-section {
        padding: 60px 20px;
        margin-top: 10vh;
    }

    .team-grid-section h2 {
        text-align: center;
        margin-left: 0;
        font-size: 32px;
        margin-bottom: 40px;
    }

    .member-info {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN MOBILE - APPROACH SECTION
======================================== */

@media (max-width: 768px) {
    .approach-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .approach-btn-dark, 
    .approach-btn-orange {
        width: auto;
        min-width: 200px;
        max-width: 280px;
    }

    .btn-dark, .btn-orange {
        margin: 5px 0;
        width: 80%;
        text-align: center;
    }

    .approach-cards {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .approach-card {
        max-height: none;
    }

    .approach-section {
        padding: 60px 20px;
        margin-top: 10vh;
    }

    .approach-section h2 {
        text-align: center;
        font-size: 32px;
        margin-bottom: 40px;
    }

    .card-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .card-header .bi {
        font-size: 40px;
    }

    .card-header h4 {
        text-align: center;
        padding-top: 0;
        font-size: 22px;
    }

    .card-content {
        min-height: auto;
        padding: 20px 15px;
    }

    .card-content p {
        font-size: 15px;
        line-height: 22px;
    }
}

/* ========================================
   RESPONSIVE DESIGN MOBILE - PHILOSOPHY SECTION
======================================== */

@media (max-width: 768px) {
    .philosophy-section {
        padding: 60px 20px;
    }

    .philosophy-section h2 {
        font-size: 32px;
        line-height: 40px;
        text-align: center;
    }

    .philosophy-section h3 {
        font-size: 18px;
        text-align: center;
    }

    .philosophy-section p {
        font-size: 15px;
        line-height: 24px;
    }

    .philosophy-btn {
        display: block;
        margin: 20px auto 0;
        width: fit-content;
        min-width: 200px;
        text-align: center;
    }
}

/* ========================================
   RESPONSIVE DESIGN MOBILE - VERY SMALL SCREENS
======================================== */

@media (max-width: 480px) {
    .hero-section {
        padding: 12vh 15px 30px;
    }

    .founder-photo {
        width: 240px;
        height: 300px;
    }

    .founder-bio h1 {
        font-size: 26px;
    }

    .founder-bio .highlight {
        font-size: 32px;
    }

    .intro-text {
        font-size: 16px;
    }

    .philosophy-section h2,
    .approach-section h2,
    .team-grid-section h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .team-member-card {
        border-radius: 15px;
    }

    .expert-photo {
        height: 250px;
    }

    .member-info {
        padding: 30px 15px 15px;
    }

    .member-info h4 {
        font-size: 1em;
    }

    .member-info .role {
        font-size: 0.9em;
    }

    .bio-point-content h3 {
        font-size: 17px;
    }

    .bio-point-content p {
        font-size: 14px;
    }

    .approach-btn-dark, 
    .approach-btn-orange {
        min-width: 180px;
        font-size: 15px;
    }

    .philosophy-btn {
        min-width: 180px;
        font-size: 15px;
    }
}
/* ========================================
   RESPONSIVE DESIGN MOBILE - PAGE ÉQUIPE
======================================== */

@media (max-width: 768px) {
    /* Hero Section */
    .hero-section {
        padding: 15vh 20px 200px;
        position: relative;
        overflow: visible !important;

    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding-right: 0;
        min-height: auto;
        position: relative;
    }

    /* Bio du fondateur - en premier */
    .founder-bio {
        order: 1;
        padding-top: 0;
        margin-left: 0;
        margin-bottom: 30px;
    }

    .founder-bio h1 {
        font-size: 32px;
    }

    .founder-bio .highlight {
        font-size: 40px;
    }

    .intro-text {
        font-size: 18px;
    }

    /* Photo du fondateur - en position absolue comme en desktop */
    .founder-photo {
        width: calc(100% - 40px);
        max-width: 250px;
        height: 250px;
        margin: 0 auto;
        order: 2;
        position: absolute;
        left: 30%;
        transform: translateX(-50%);
        bottom: -250px;
        z-index: 100;
    }


    .founder-photo img {
        margin-top: 0;
        margin-bottom: 0;
        position: static;
        border-radius: 20px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    /* Bio Points Section - comme en desktop avec margin-top négatif */
    .bio-points-section {
        margin-top: -100px;
        padding-top: 180px;
        padding-bottom: 60px;
        background-color: var(--light-bg);
        position: relative;
        z-index: 1;
    }

    .bio-points-container {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 0;
        margin-left: 0;
    }

    .bio-points-grid {
        gap: 25px;
    }

    .bio-point {
        gap: 15px;
    }

    .bio-point-icon {
        width: 40px;
        height: 40px;
    }

    .bio-point-icon img {
        width: 40px;
        height: 40px;
    }

    .bio-point-content h3 {
        font-size: 18px;
        line-height: 24px;
    }

    .bio-point-content p {
        font-size: 15px;
        line-height: 21px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-bottom: 180px;
    }

    .founder-photo {
        height: 300px;
        max-width: calc(100% - 40px);
        bottom: -300px;
    }

    .bio-points-section {
        margin-top: -120px;
        padding-top: 300px;
    }

    .founder-bio h1 {
        font-size: 26px;
    }

    .founder-bio .highlight {
        font-size: 32px;
    }

    .intro-text {
        font-size: 16px;
    }
}

/* ========================================
   ESPACEMENT CARDS APPROCHE
======================================== */
.approach-card {
    margin-bottom: 25px;
}

.approach-cards {
    gap: 25px;
}
@media (min-width: 768px) {
    .bio-points-container {
        padding-left: 500px;
        padding-right: 20px;
        padding-top: 0;
        margin-left: 0;
    }
}
@media (min-width: 1600px) {
    .bio-points-container {
        padding-left: 550px;
        padding-right: 20px;
        padding-top: 0;
        margin-left: 0;
    