

/* ======================
        GLOBAL
====================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background-color: whitesmoke;
}

a {
    color: #0D233B;
    text-decoration: none;

    font-size: 16px;
    font-style: italic;
}

h1,
h2,
p {
    margin: 0;
}

section {
    padding: 80px 128px;
}

/* ======================
        HEADER
====================== */

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 24px 128px;

    border-bottom: 1px solid #d7d7d7;
}

.logo {
    color: #0D233B;

    font-size: 28px;
    font-weight: bold;
    font-style: normal;
}

.nav {
    display: flex;

    gap: 64px;
}

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

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 80px;
}

.heroText,
.aboutMe {
    display: flex;
    flex-direction: column;
}

.heroText {
    gap: 48px;
}

.aboutMe {
    gap: 24px;
}

.nomPrenom {
    font-size: 80px;
}

.desc {
    color: #666;

    font-size: 32px;
}

.bouton {
    display: flex;

    gap: 32px;
}

/* ======================
        CTA
====================== */

.CTA {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 220px;
    height: 60px;

    border-radius: 12px;

    box-sizing: border-box;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background-color .25s ease,
        border-color .25s ease;
}

.CTA-principal {
    background-color: #173f68;

    color: white;
}

.CTA-secondaire {
    border: 3px solid #ffe2c6;
}

/* ANIMATION CTA */

.CTA:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 10px 20px rgba(0,0,0,.12);
}

.CTA:active {

    transform:
        translateY(-1px);
}

/* CTA PRINCIPAL */

.CTA-principal:hover {

    background-color:
        #214f80;
}

/* CTA SECONDAIRE */

.CTA-secondaire:hover {

    background:
        #ffe2c6;

    border-color:
        #ffd4a8;
}
/* ======================
        HERO IMAGE
====================== */

.illustration {
    display: block;

    width: 500px;
    max-width: 100%;
}

/* ======================
        OFFRES
====================== */

.offre {
    display: flex;
    flex-wrap: wrap;

    gap: 32px;

    align-items: stretch;
}

.titreOffres {
    width: 100%;

    text-align: center;

    font-size: 64px;
}

.cards {
    flex: 1;

    min-width: 280px;

    display: flex;
    flex-direction: column;

    padding: 40px;

    background: white;

    border-radius: 16px;
}

.titreOffreCard {
    margin-bottom: 24px;

    text-align: center;

    font-size: 32px;
}

.prixOffreCard {
    margin-bottom: 32px;

    text-align: center;

    color: #173f68;

    font-size: 40px;
}

.descOffreCard {
    display: flex;
    flex-direction: column;

    gap: 16px;

    margin-bottom: 40px;

    padding-left: 20px;
}

.cards .CTA {
    align-self: center;

    margin-top: auto;
}

/* ======================
        PROJETS
====================== */

.projets {

    overflow: hidden;
}

.titreProjets {

    width: 100%;

    text-align: center;

    margin-bottom: 64px;

    font-size: 64px;
}

.carousel {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 32px;

    transition: .5s ease;
}

.projetCards {

    flex: 0 0 260px;

    padding: 24px;

    background: white;

    border-radius: 16px;

    box-shadow:
        0 10px 25px rgba(0,0,0,.08);

    transition:
        transform .5s ease,
        opacity .5s ease,
        flex-basis .5s ease;

    transform:
        translateX(0)
        scale(.85);

    opacity: .4;
}

.projetCards.active {

    flex-basis: 420px;

    transform:
        translateX(0)
        scale(1);

    opacity: 1;
}

.imgProjet {

    width: 100%;

    height: 240px;

    object-fit: cover;
    object-position: center top;

    border-radius: 10px;

    margin-bottom: 16px;
}

.titreProjetCard {

    margin-bottom: 12px;
}

.descProjetCard {

    color: #666;
}

/* POINTS */

.dots {

    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 40px;
}

.dot {

    width: 14px;

    height: 14px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #d8d8d8;

    cursor: pointer;

    transition: .3s;
}

.dot.active {

    background: #173f68;

    transform: scale(1.2);
}

/* ======================
        CONTACT
====================== */

.contact {
    max-width: 800px;

    margin: auto;
}

.titreContact {
    margin-bottom: 40px;

    text-align: center;

    font-size: 64px;
}

.formContact {
    display: flex;
    flex-direction: column;

    gap: 24px;
}

.inputContact,
.textareaContact {
    padding: 20px;

    border: 1px solid #ddd;
    border-radius: 10px;

    font-size: 16px;
}

.textareaContact {
    min-height: 180px;

    resize: vertical;
}


.turnstileWrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: -4px 0 4px;
}

.turnstileWrap .cf-turnstile {
    width: 100%;
    max-width: 420px;
}

.formContact .CTA {
    align-self: center;
}

button {
    border: none;

    cursor: pointer;
}




/* ======================
        NOTIFICATION CONTACT
====================== */

.contactToast {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 1000;

    display: flex;
    align-items: center;
    gap: 16px;

    max-width: min(420px, calc(100% - 40px));
    padding: 18px 22px;

    color: #0D233B;
    background:
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(245,250,255,.92));

    border: 1px solid rgba(23, 63, 104, .14);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(13, 35, 59, .18);

    opacity: 0;
    transform: translateY(24px) scale(.96);
    pointer-events: none;

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.contactToast.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.contactToastIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    width: 42px;
    height: 42px;

    color: white;
    background: linear-gradient(135deg, #1eb980, #173f68);
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(30, 185, 128, .28);

    font-size: 24px;
    font-weight: 800;
}

.contactToast strong {
    display: block;
    margin-bottom: 4px;

    font-size: 17px;
}


/* ======================
        PAGES LEGALES
====================== */

.legalPage {
    max-width: 880px;
    margin: 0 auto;
    color: #0D233B;
}

.legalPage h1 {
    margin-bottom: 32px;
    font-size: 56px;
}

.legalPage h2 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 28px;
}

.legalPage p {
    color: #555;
    line-height: 1.7;
}


.legalPage ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 0;
    padding-left: 22px;
    color: #555;
    line-height: 1.7;
}

.legalPage .legal-note {
    margin-top: 12px;
    padding: 14px 16px;
    border-left: 4px solid #ffe2c6;
    background: #fff7ef;
    border-radius: 8px;
}

/* ======================
        FOOTER
====================== */

footer {
    display: flex;
    justify-content: space-between;

    padding: 64px 128px;

    border-top: 1px solid #d7d7d7;
}

footer ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.navFooter,
.legalFooter {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.reseaux {
    display: flex;

    gap: 16px;
}

.iconReseaux {
    width: 32px;
}

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

@media screen and (max-width: 768px) {

    section {
        padding: 48px 24px;
    }

    /* HEADER */

    .menu {
        flex-direction: column;

        gap: 20px;

        padding: 20px 24px;
    }

    .nav {
        justify-content: center;

        flex-wrap: wrap;

        gap: 20px;
    }

    /* HERO */

    .hero {
        flex-direction: column-reverse;

        gap: 48px;

        text-align: center;
    }

    .heroText,
    .aboutMe {
        align-items: center;
    }

    .nomPrenom {
        font-size: 48px;
    }

    .desc {
        font-size: 20px;
    }

    .illustration {
        width: 260px;
    }

    .bouton {
        flex-direction: column;

        width: 100%;

        align-items: center;
    }

    .CTA {
        width: 100%;

        max-width: 300px;
    }

    /* OFFRES */

    .offre {
        flex-direction: column;
    }

    .titreOffres {
        font-size: 40px;
    }

    .cards {
        min-width: auto;

        padding: 32px;
    }

    .titreOffreCard {
        font-size: 28px;
    }

    .prixOffreCard {
        font-size: 32px;
    }

    /* PROJETS */

    .titreProjets {
        font-size: 40px;

        margin-bottom: 40px;
    }

    .carousel {

        flex-direction: column;

        align-items: center;

        gap: 0;
    }

    .projetCards {

        display: none;

        width: 100%;

        max-width: 420px;

        box-sizing: border-box;

        transform: scale(.95);

        opacity: 0;

        transition:
            transform .4s ease,
            opacity .4s ease;
    }

    .projetCards.active {

        display: block;

        transform: scale(1);

        opacity: 1;
    }

    .imgProjet {

        height: 220px;

        object-fit: cover;
        object-position: center top;
    }

    .dots {

        margin-top: 32px;

        flex-wrap: wrap;
    }

    /* CONTACT */

    .titreContact {
        font-size: 40px;
    }

    .contact {
        max-width: 100%;
    }

    
.turnstileWrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: -4px 0 4px;
}

.turnstileWrap .cf-turnstile {
    width: 100%;
    max-width: 420px;
}

.formContact .CTA {
        width: 100%;
    }

    .legalPage h1 {
        font-size: 40px;
    }

    .legalPage h2 {
        font-size: 24px;
    }

    /* FOOTER */

    footer {
        flex-direction: column;

        align-items: center;

        gap: 32px;

        padding: 48px 24px;

        text-align: center;
    }

}