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

:root {
    --primary: #0ebfe3;
    --dark: #001540;
    --light: #f8f6f2;
    --text: #555;
    --radius: 15px;
    --shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* ===================================
   PRINCIPES
=================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ===================================
   TITRES
=================================== */

h1, h2, h3, h4 {
    font-family: 'Souvenir',serif;
}

h1 {
    font-size: 4rem;
    color: White;       
}

h2 {
    font-size: 2.5rem;
    color: black;
}

h3 {
    font-size: 1.5rem;
    color: black;
    font-weight:bold;
    font-family:Arial, Helvetica, sans-serif;
}

h4 {
    font-size: 2rem;
    color: whitesmoke;
    font-style:italic;
}

h5 {
    font-size: 1.15rem;
    color: lightslategrey;
    font-family: 'DM Sans', sans-serif;
    font-style:italic;
    font-weight:normal;
}

/* ===================================
   CONTENEUR
=================================== */

.container {
    width: min(1100px,90%);
    margin: auto;
}

    .container p {
        font-size: 1.3rem;
        color: whitesmoke;
    }

.containerSpecialContact {
    width: min(1100px,90%);
    margin: auto;
}

.section {
    background-image: url("../images/fondMac.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
    margin-bottom: 30px;
    margin-top: 50px;
}

.section h2 {
    font-size: 2.5rem;
    color: black;
}

/* ===================================
   BAR
=================================== */

header {
    position: sticky;
    top: 0;
    background: rgba(248,246,242,.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

.navbar {
    width: min(1100px,90%);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
}

.menu {
    display: flex;
    gap: 40px;
}

    .menu a {
        transition: .3s;
    }

        .menu a:hover,
        .menu a.active {
            color: var(--primary);
        }




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

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url("../images/accueil.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--dark);
    backdrop-filter: brightness(70%);
}



.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: center;
    color: white;
    margin-bottom: 40px;
    background-color: #bbb;
}

    .hero-content p {
        max-width: 65%;
        font-size: 1.3rem;
        margin-top: 20px;
        color: white;
    }

    .hero-content b{
        max-width:50vw;
    }




/* ===================================
   SECTIONS
=================================== */

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

    .two-columns img {
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

.dark {
    background: var(--dark);
    color: white;
}

    .dark p {
        color: #cfcfcf;
    }

/* ===================================
   CARTES DE COLONNES 
=================================== */                                                                                                                                                                                                                                           


.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

    .card img {
        display: block;
        width: 100%;
        height: auto;
    }

.card-content {
    padding: 20px;
}

    .card-content h3 {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .card-content p {
        margin: 0;
        line-height: 1.6;
        color: var(--dark);
        font-family: 'DM Sans', sans-serif;
    }

.cardWithText {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.cardWithText img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.35s ease, transform 0.35s ease;
}

.cardWithText .card-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cardWithText p {
    margin: 0;
    color: white;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.cardWithText:hover img {
    filter: blur(4px) brightness(0.75);
    transform: scale(1.04);
}

.cardWithText:hover .card-text {
    opacity: 1;
}

.cardWithText:hover p {
    opacity: 1;
    transform: translateY(0);
}

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

.contact {
    display: grid;
    gap: 20px;
    background-image: url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}




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

.contact-cards {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: white;
    padding: 20px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 280px;
    transition: .3s;
}

    .contact-card:hover {
        transform: translateY(-5px);
    }

    .contact-card i {
        font-size: 2rem;
        color: var(--dark);
        width: 40px;
        text-align: center;
    }

.contact-text h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-family: 'Souvenir', sans-serif;
}

.contact-text p {
    margin: 0;
    color: var(--dark);
    font-family: 'DM Sans', sans-serif;
}

/*.contact-image {
    filter: contrast(115%) saturate(110%);
}*/

.image-mac {
    filter: contrast(115%) saturate(110%);
    width: 1080px;
    height: auto;
    margin-top: 100px;
    margin-bottom: 100px;
    position: center;
}

/* ===================================
    SECTION CARTES
=================================== */

.cards-section {
    background: var(--light);
    padding: 60px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.cards-banner {
    text-align: center;
    width: min(1100px, 90%);
    margin: 0 auto;
}

.cards-banner h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.cards-banner p {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0;
}

/* ===================================
    CARTES SYSTEME
=================================== */

.system-cards {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    position: relative;
    margin: 0 auto;
    gap: 25px;
    width: min(1100px, 90%);
    max-width: 100%;
    align-self: auto;
}

.system-card {
    flex: 0 0 348px;
    display: table-column;
    align-items: center;
    gap: 25px;
    background:rgba(248,246,242,.95);
    backdrop-filter: blur(7px);
    padding: 20px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .3s ease;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

    .system-card:hover {
        transform: translateY(-6px);
    }

    .system-card i {
        font-size: 2rem;
        color: var(--dark);
        width: 40px;
        text-align: center;
    }

    .system-card p {
        font-family: 'Souvenir', serif;
        color: black;
        font-style: italic;
    }

.system-card button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    font-size: .95rem;
    font-weight: bold;
    cursor: pointer;
    transition: background .2s;
}
.system-card button:hover {
    background: #1459d9;
}

.system-text h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .card-header i {
        font-size: 40px;
    }

    .card-header h3 {
        margin: 0;
    }

/* ===================================
   ENCADRÉS DE COTE
=================================== */

.side-box {
    position: fixed;
    transform: translateY(-50%);
    width: 15vw;
    min-height: 30vh;
    background: whitesmoke;
    border: 1px solid #d8d8d8;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
    padding: 18px;
    z-index: 999;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .side-box:hover {
        transform: translateY(-50%) scale(1.02);
        box-shadow: 0 15px 35px rgba(0,0,0,.25);
    }

.side-left {
    top: 45vh;
    left: 0px;
}

.side-right {
    position: absolute;
    top: 40vh;
    right: 0;
}

.side-box-header {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2b2b2b;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 8px;
}

.promo-item {
    margin-bottom: 18px;
}

    .promo-item h4 {
        margin: 0 0 5px;
        color:black;
    }

    .promo-item p {
        margin: 0 0 10px;
        color: black;
        font-size: .9rem;
    }

.side-right ul {
    padding-left: 20px;
    margin: 15px 0;
    color: black;
}

.side-right li {
    margin-bottom: 8px;
    color:black;
}

.side-right p {
    margin-bottom: 8px;
    color: black;
}

.side-box button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary);
    color: white;
    font-size: .95rem;
    font-weight: bold;
    cursor: pointer;
    transition: background .2s;
}

    .side-box button:hover {
        background: #1459d9;
    }

@media (min-width: 800px) {
    .side-box {
        display: none;
    }

    .commandeSite{
        display: none;
    }
}

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

footer {
    background: var(--dark);
    color: #bbb;
    text-align: center;
    padding: 40px 30px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   MENU MOBILE
=================================== */

#menu-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
}

.mobile-map {
    display: none;
}

/* =======================
        VERSION MOBILE
======================= */

@media (max-width:768px) 

{
    .menu,
    #menu-toggle {
        display: none;
    }

    .cards-section {
        display: none;
    }

    .system-card {
        display: flex;
        padding-left: 23px
    }
    
    .btn-question {
        display: flex;
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 2rem;
        color: rgb(19, 13, 13);
    }

    h2 {
        font-size: 1.5rem;
        color: rgb(19, 13, 13);
    }

    h4 {
        font-size: 1.2rem;
        color: rgb(162, 162, 162);
    }

    .section{
        display: none;
    }

    /* Logo centré */

    .navbar {
        justify-content: center;
    }


    .side-box {
        display: none;
    }


    .hero {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
        text-align: center;
    }

    .hero-content h4 {
        text-align: center;
    }

    .hero-content b {
        display: block;
        text-align: left;
        line-height: 1.7;
    }


    .system-cards {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .system-card {
        width: 100%;
    }

    /* Carte */

    .mobile-map {
        display: block;
        margin-top: 40px;
        text-align: center;
    }

        .mobile-map h2 {
            margin-bottom: 20px;
        }

        .mobile-map img {
            width: 100%;
            border-radius: 10px;
            position: absolute;
            bottom: 0px;
        }

    /* Boutons */

    .mobile-buttons {
        margin-top: 20px;
        position: absolute;
        left: 15vw;
        display: flex;
        flex-direction: column;
        gap: 15px;
        z-index: 4;
    }

    .btn-map {
                display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 15px;
        border-radius: 19px;
        padding: 15px 15px;
        color: white;
        text-decoration: none;
        font-weight: bold;
        width: 70vw;
        font-size: 17px;
    }

    .apple {
        background: #000;
    }

    .google {
        background: #3997e3;
    }

    .phone {
        top: -140px;
        background: #e7e7e7;
        justify-content: center;
        color: #000;
        position: absolute;
    }

    footer {
        position: absolute ;
        font-size: 0.9rem;
        padding: 30px;
        bottom: 0;
        width: 100%;
    }
}

