/* Typo 1 : Clemente PDak SemiBold */
@font-face {
    font-family: 'Clemente';
    src: url('../fonts/ClementePDak-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Typo 2 : Franklin Gothic Book */
@font-face {
    font-family: 'Franklin Gothic';
    src: url('../fonts/Franklin Gothic Book Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* ========================================
   VARIABLES
======================================== */

:root {
    /* Typographies */
    --font-heading: 'Clemente', sans-serif;
    --font-body: 'Franklin Gothic', Arial, sans-serif;

    /* Couleurs */
    --color-primary: #DF1A30;
    --color-text: #3A3A3A;
    --color-secondary: #B5ACAF;
    --color-white: #FFFFFF;
}

/* ========================================
   STYLES DE BASE (communs à toutes tailles)
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    hyphens: none;
    word-break: normal;
}

body {
    font-family: var(--font-body);
    background-color: #f5f5f5;
}

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
}

/* ========================================
   HERO - STYLES COMMUNS
======================================== */

/* Header */
.header {
    text-align: center;
}

.logo {
    height: auto;
}

/* Section Hero */
.hero {
    text-align: center;
}

.hero h1 {
    font-family: var(--font-body);
    color: var(--color-text);
    text-transform: uppercase;
}

.hero p {
    color: var(--color-white);
    background-color: var(--color-primary);
    margin: 0 auto;
}

.hero p:nth-of-type(1) {
    font-family: var(--font-body);
}

.hero p:nth-of-type(2) {
    font-family: var(--font-heading);
}

.hero img {
    display: block;
    margin-right: 0;
    height: auto;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: #ff6b35;
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #e55a2b;
}

/* Content */
.content {}

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

/* MOBILE */
@media (max-width: 767px) {
    .landing-container {
        padding: 0 15px;
    }

    .header {
        padding: 15px 0;
    }

    .logo {
        max-width: 200px;
    }

    .hero {
        padding: 30px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero p {
        width: 100%;
        max-width: 100%;
    }

    .hero p:nth-of-type(1) {
        font-size: 1.2rem;
        padding: 15px 10px;
    }

    .hero p:nth-of-type(2) {
        font-size: 0.8rem;
        padding: 10px;
        margin-bottom: 20px;
    }

    .hero img {
        width: calc(100% + 30px);
        margin-left: -15px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .content {
        padding: 40px 0;
    }
}

/* TABLETTE */
@media (min-width: 768px) and (max-width: 1023px) {
    .landing-container {
        padding: 0 40px;
    }

    .header {
        padding: 20px 0;
    }

    .logo {
        max-width: 220px;
    }

    .hero {
        padding: 20px 0 60px 0;
    }

    .hero h1 {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .hero p {
        width: 90%;
    }

    .hero p:nth-of-type(1) {
        font-size: 1.9rem;
        padding: 13px 0;
    }

    .hero p:nth-of-type(2) {
        font-size: 1.3rem;
        padding: 12px 0;
        margin-bottom: 30px;
    }

    .hero img {
        width: calc(100% + 80px);
        margin-left: -40px;
        height: 350px;
        object-fit: cover;
        object-position: center;
    }

    .cta-button {
        padding: 14px 35px;
        font-size: 1.05rem;
    }

    .content {
        padding: 50px 0;
    }

}

/* DESKTOP */
@media (min-width: 1024px) {
    .landing-container {
        padding: 0 140px;
    }

    .header {
        padding: 20px 0;
    }

    .logo {
        max-width: 220px;
    }

    .hero {
        padding: 20px 0 80px 0;
        position: relative;
    }

    .hero::before {
        content: "";
        position: absolute;
        left: -70px;
        top: 240px;
        height: 400px;
        width: 4px;
        background: var(--color-text);
        z-index: 3;
        pointer-events: none;
    }

    .hero h1 {
        font-size: 3.2rem;
        margin-bottom: 20px;
    }

    .hero p {
        width: 800px;
    }

    .hero p:nth-of-type(1) {
        font-size: 1.9rem;
        padding: 15px 0;
    }

    .hero p:nth-of-type(2) {
        font-size: 1.5rem;
        padding: 15px 0;
        margin-bottom: 40px;
    }

    .hero img {
        /* width: calc(100% + 140px); */
        width: 100%;
        /* margin-left: -140px; */
        height: 450px;
        object-fit: cover;
        object-position: center 50%;
    }

    .cta-button {
        padding: 15px 40px;
        font-size: 1.1rem;
    }

    .content {
        padding: 60px 0;
    }

}

/* ========================================
   CONTENT 1 - STYLES COMMUNS
======================================== */

.content-1 {}

.content-title {
    font-family: var(--font-body);
    color: var(--color-text);
    text-align: center;
    margin: 0 auto;
    max-width: 820px;
    line-height: 1.3;
}

.content-title .highlight {
    color: var(--color-primary);
}

.content-intro {
    font-family: var(--font-body);
    color: var(--color-text);
    text-align: justify;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    margin: 0 auto;
}

.feature-box {
    border: 1.5px solid var(--color-text);
    text-align: center;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    object-fit: cover;
    flex-shrink: 0;
}

.feature-box:nth-child(2) .feature-icon {
    transform: scale(1.6);
}

.feature-box:nth-child(3) .feature-icon {
    transform: scale(0.9);
}

.feature-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.feature-title {
    font-family: var(--font-body);
    color: var(--color-primary);
    text-transform: uppercase;
}

.feature-text {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.35;
    margin-top: auto;
}

/* ========================================
   RESPONSIVE CONTENT 1
======================================== */

/* MOBILE */
@media (max-width: 767px) {
    .content-1 {
        padding: 40px 0;
    }

    .content-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .content-intro {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-box {
        padding: 30px 15px;
        margin: 0 40px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .feature-box:nth-child(1) .feature-icon {
        transform: scale(0.9);
    }

    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .feature-text {
        font-size: 1rem;
    }
}

/* TABLETTE */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-1 {
        padding: 0;
    }

    .content-title {
        font-size: 2.4rem;
        margin-bottom: 30px;
    }

    .content-intro {
        font-size: 1.3rem;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-inline: clamp(10px, 5vw, 40px);
    }

    .feature-box {
        padding: 25px 10px;
        aspect-ratio: 1 / 1;
        justify-content: space-between;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .feature-title {
        font-size: clamp(1.1rem, 1.3vw, 1.4rem);
        margin-bottom: 8px;
    }

    .feature-text {
        font-size: clamp(0.95rem, 1vw, 1.1rem);
        line-height: 1.3;
    }
}

/* DESKTOP */
@media (min-width: 1024px) {
    .content-1 {
        padding: 0;
    }

    .content-title {
        font-size: 2.8rem;
        margin-bottom: 40px;
    }

    .content-intro {
        font-size: 1.5rem;
        margin-bottom: 50px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-inline: clamp(10px, 5vw, 40px);
    }

    .feature-box {
        padding: 28px 18px;
        aspect-ratio: 1 / 1;
    }

    .feature-icon {
        width: 62px;
        height: 62px;
        margin-bottom: 16px;
    }

    .feature-title {
        font-size: clamp(1.1rem, 1.3vw, 1.4rem);
        margin-bottom: 12px;
    }

    .feature-text {
        font-size: clamp(0.95rem, 1vw, 1.1rem);
        line-height: 1.35;
    }
}

/* ========================================
   CONTENT 2 - STYLES COMMUNS
======================================== */

.content-2 {
    position: relative;
    padding: 0 !important;
    /* Enlève le padding de .content */
}

.red-box-1 {
    background-color: var(--color-primary);
    position: absolute;
}

.red-box-1-text {
    color: var(--color-white);
    font-family: var(--font-heading);
    text-align: justify;
    line-height: 1.8;
}

.highlight-large {
    font-weight: 600;
}

.text-wrap-container {
    position: relative;
    overflow: auto;
}

.content-image-left {
    height: auto;
    position: relative;
    overflow: hidden;
}

.content-image-left img {
    width: 100%;
    height: auto;
    display: block;
}

.text-beside-image {
    position: relative;
    text-align: justify;
}

.text-below-image {
    clear: both;
}

.content-subtitle {
    font-family: var(--font-heading);
    color: var(--color-text);
    text-align: justify;
}

.content-paragraph {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    text-align: justify;
}

.cta-campus.cta-with-margin {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

/* Bloc texte + image côte à côte - COMMUN */
.split-content {
    align-items: center;
    text-align: justify;
}

.split-image img {
    width: 100%;
    height: auto;
}

.motto {
    font-weight: 700;
    text-align: justify;
}

/* ========================================
   RESPONSIVE CONTENT 2
======================================== */

/* MOBILE */
@media (max-width: 767px) {
    .content-2 {
        padding: 0;
    }

    .red-box-1 {
        width: 260px;
        padding: 60px 15px;
        right: -15px;
        z-index: 2;
    }

    .red-box-1-text {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .highlight-large {
        font-size: 1.4rem;
    }

    .text-wrap-container {
        margin-top: 40px;
    }

    .content-image-left {
        width: 100%;
        margin-top: 100px;
        margin-bottom: 20px;
    }

    .text-beside-image {
        margin-left: 0;
        margin-bottom: 20px;
    }

    .content-subtitle {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .content-paragraph {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .split-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .cta-campus.cta-with-margin {
        margin-bottom: 10px;
    }

    .motto {
        font-size: 1.2rem;
        display: block;
        text-align: center;
    }
}

/* TABLETTE */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-2 {
        margin-top: 40px;
    }

    .red-box-1 {
        width: 480px;
        padding: 80px 50px;
        right: -40px;
        z-index: 2;
    }

    .red-box-1-text {
        font-size: 1.5rem;
        max-width: 600px;
    }

    .highlight-large {
        font-size: 2.3rem;
    }

    .text-wrap-container {
        display: flex;
        align-items: flex-end;
        gap: 30px;
        flex-wrap: wrap;
    }

    .content-image-left {
        max-width: 55%;
        flex: 0 0 55%;
        height: auto;
        margin-top: 100px;
        float: none;
        display: block;
    }

    .text-beside-image {
        min-width: 45%;
        flex: 1 0 45%;
        margin: 0;
    }

    .text-below-image {
        flex: 0 0 100%;
        clear: none;
    }

    .content-subtitle {
        font-size: 1.8rem;
    }

    .content-paragraph {
        font-size: 1.2rem;
    }

    .split-content .content-paragraph {
        margin-bottom: 30px;
    }

    .split-content {
        display: grid;
        grid-template-columns: 55% 1fr;
        gap: 40px;
        margin-top: 60px;
        align-items: stretch;
    }

    .cta-campus.cta-with-margin {
        margin-bottom: 30px;
    }

    .split-image {
        height: 100%;
        overflow: hidden;
    }

    .split-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scale(1.1);
    }

    .motto {
        font-size: 1.5rem;
        display: block;
        text-align: center;
    }
}


/* DESKTOP */
@media (min-width: 1024px) {
    .content-2 {
        margin-top: 100px;
        padding: 80px 0;
    }

    .red-box-1 {
        width: 585px;
        padding: 100px 70px;
        right: -140px;
        top: 0;
        z-index: 2;
    }

    .red-box-1-text {
        font-size: 1.8rem;
        max-width: 600px;
    }

    .highlight-large {
        font-size: 2.8rem;
    }

    .text-wrap-container {
        margin-top: 80px;
    }

    .content-image-left {
        width: 55%;
        margin-top: 100px;
        margin-bottom: 40px;
        margin-right: 40px;
        float: left;
    }

    .text-beside-image {
        margin-left: 0;
        margin-bottom: 30px;
        margin-top: 620px;
    }

    .content-subtitle {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .content-paragraph {
        font-size: 1.6rem;
    }

    .split-content .content-paragraph {
        margin-bottom: 40px;
    }

    .cta-campus.cta-with-margin {
        margin-bottom: 30px;
    }

    .split-content {
        display: grid;
        grid-template-columns: 55% 1fr;
        gap: 40px;
        margin-top: 60px;
        align-items: stretch;
    }

    .split-image {
        height: 100%;
        overflow: hidden;
    }

    .split-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scale(1.1);
    }

    .motto {
        font-size: 1.8rem;
        display: block;
        text-align: center;
    }
}

/* ========================================
   CONTENT 3 - STYLES COMMUNS
======================================== */

:root {
    --c3-overlap: 0px;
}

.content-3 {
    position: relative;
    padding: 0 !important;
    /* même logique que content-2 */
}

.c3-media {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    /* 1 colonne */
    grid-auto-rows: auto;
}

.red-box-2 {
    background-color: var(--color-primary);
    z-index: 2;
    grid-row: 1;
    /* ligne 1 */
    justify-self: start;
    /* à gauche */
}

/* Guillemets (police) */
.quote-close,
.quote-open {
    font-family: var(--font-body);
}

.red-box-2-title {
    color: var(--color-white);
    font-family: var(--font-heading);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: initial;
}

.red-box-2-title .quote-open {
    display: block;
    text-align: left;
}

.red-box-2-title .quote-text {
    display: block;
    margin: 20px 0;
}

.red-box-2-title .quote-close {
    display: block;
    text-align: right;
}

.content-image-right {
    display: block;
    width: 100%;
    height: auto;
    z-index: 1;
    grid-row: 2;
    /* ligne 2 */
    justify-self: end;
    /* à droite */
    align-self: start;
    margin-top: calc(-1 * var(--c3-overlap));
}

.c3-body {
    width: 100%;
    text-align: center;
}

.content-text-block {
    max-width: 900px;
    margin: 0 auto;
}

.content-paragraph-large {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    text-align: justify;
}

/* CTA */
.cta-campus {
    display: inline-block;
    background-color: var(--color-text);
    font-family: var(--font-heading);
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-campus:hover {
    background-color: #555555;
}

/* ========================================
   RESPONSIVE CONTENT 3
======================================== */

/* MOBILE */
@media (max-width: 767px) {
    :root {
        --c3-overlap: 40px;
    }

    .c3-media {
        padding-top: 40px;
    }

    .red-box-2 {
        width: 260px;
        padding: 50px 15px;
        margin-left: -15px;
    }

    .red-box-2-title {
        font-size: 1.2rem;
    }

    .red-box-2-title .quote-open,
    .red-box-2-title .quote-close {
        font-size: 2.9rem;
        margin-top: -30px;
        margin-bottom: -30px;
    }

    .content-image-right {
        width: 100%;
        margin-right: -15px;
    }

    .c3-body {
        padding: 30px 0;
    }

    .content-paragraph-large {
        font-size: 1rem;
        margin: 0 0 20px;
    }

    .cta-wrapper {
        text-align: center;
    }

    .cta-campus {
        padding: 12px 28px;
        font-size: 1rem;
    }
}

/* TABLETTE */
@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --c3-overlap: 160px;
    }

    .c3-media {
        margin-top: 40px;
    }

    .red-box-2 {
        width: 480px;
        padding: 80px 50px;
        margin-left: -40px;
    }

    .red-box-2-title {
        font-weight: 400;
        line-height: 1.4;
    }

    .red-box-2-title .quote-open,
    .red-box-2-title .quote-close {
        font-size: 3.5rem;
        margin-top: -30px;
        margin-bottom: -30px;
    }

    .red-box-2-title .quote-text {
        font-size: 2.9rem;
    }

    .content-image-right {
        width: 95%;
        margin-right: -40px;
    }

    .c3-body {
        padding: 50px 0 0;
    }

    .content-paragraph-large {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .cta-campus {
        padding: 14px 34px;
        font-size: 1.5rem;
    }
}

/* DESKTOP */
@media (min-width: 1024px) {
    :root {
        --c3-overlap: 160px;
    }

    .content-3 {
        padding: 80px 0;
    }

    .c3-media {
        margin-top: 0;
    }

    .red-box-2 {
        width: 585px;
        padding: 70px 70px;
        margin-left: -140px;
        position: relative;
    }

    .red-box-2::after {
        content: "";
        position: absolute;
        left: 400px;
        top: 70px;
        width: 400px;
        height: 4px;
        background: var(--color-text);
        z-index: 3;
        pointer-events: none;
        transform: translateY(-50%);
    }

    .red-box-2-title {
        font-size: 1.8rem;
    }

    .red-box-2-title .quote-open,
    .red-box-2-title .quote-close {
        font-size: 5.5rem;
        margin-top: -30px;
        margin-bottom: -30px;
    }

    .red-box-2-title .quote-text {
        font-size: 3.2rem;
    }

    .content-image-right {
        width: 95%;
        margin-right: -140px;
    }

    .c3-body {
        padding: 60px 0 0;
        position: relative;
    }

    .c3-body::after {
        content: "";
        position: absolute;
        right: -70px;
        top: 60px;
        height: 400px;
        width: 4px;
        background: var(--color-text);
        z-index: 3;
        pointer-events: none;
    }

    .content-paragraph-large {
        font-size: 1.4rem;
        margin-bottom: 40px;
    }

    .cta-campus {
        padding: 16px 40px;
        font-size: 1.9rem;
    }
}


/* ========================================
   CONTENT OEP - STYLES COMMUNS
======================================== */

.content-oep {
    text-align: center;
    padding: 0;
}

/* Titre */
.oep-title {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.3;
}

.oep-title .date-highlight {
    color: var(--color-primary);
}

/* Texte */
.oep-text {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    text-align: justify;
}

/* CTA */
.oep-cta {
    display: inline-block;
    font-family: var(--font-heading);
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    transition: filter 0.2s ease, transform 0.05s ease;
}

/* Effets d’interaction */
.oep-cta:hover {
    filter: brightness(0.92);
}

.oep-cta:active {
    transform: translateY(1px);
}

.oep-cta:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

/* ========================================
   RESPONSIVE CONTENT OEP
======================================== */

/* MOBILE */
@media (max-width: 767px) {
    .content-oep {
        padding: 40px 0;
    }

    .oep-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .oep-text {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .oep-cta {
        font-size: 1rem;
        padding: 12px 28px;
    }
}

/* TABLETTE */
@media (min-width: 768px) and (max-width: 1023px) {
    .content-oep {
        padding: 50px 0;
    }

    .oep-title {
        font-size: 1.5rem;
        margin-bottom: 18px;
        margin-top: 50px;
    }

    .oep-text {
        font-size: 1.3rem;
        margin-bottom: 70px;
    }

    .oep-cta {
        font-size: 1.5rem;
        padding: 14px 34px;
    }
}

/* DESKTOP */
@media (min-width: 1024px) {
    .content-oep {}

    .oep-title {
        font-size: 1.9rem;
        margin-bottom: 20px;
        margin-top: 70px;
    }

    .oep-text {
        font-size: 1.5rem;
        margin-bottom: 70px;
    }

    .oep-cta {
        font-size: 1.9rem;
        padding: 16px 38px;
    }
}

/* FOOTER */
.footer {
    margin-top: 60px;
    width: 100%;
}

/* Bandeau noir */
.footer-black {
    background-color: var(--color-text);
    color: var(--color-white);
    text-align: center;
    padding: 20px 15px;
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* Bandeau rouge */
.footer-red {
    background-color: var(--color-primary);
    height: 20px;
    margin-bottom: 20px;
}

/* MOBILE */
@media (max-width: 767px) {
    .footer-black {
        font-size: 1rem;
    }

    .footer-black .footer-sep {
        display: none;
    }

    .footer-black .footer-chunk {
        display: block;
    }
}

/* TABLETTE */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-black {
        font-size: 1.2rem;
    }
}

/* DESKTOP - Débordements pleine largeur */
@media (min-width: 1024px) {

    .footer-black,
    .footer-red {
        width: calc(100% + 280px);
        /* 2 × 140px */
        margin-left: -140px;
    }
}