/* ---------------------------------------------------------
   DESIGN SYSTEM
--------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Petit+Formal+Script&family=Roboto+Condensed:wght@300;400&display=swap');

:root {
    --fond: rgba(195, 185, 171, 0.6);
    --fond-clair: rgba(255, 255, 255, 0.7);
    --accent: #00468a;
    --texte: #2b2b2b;
    --ombre: rgba(0, 0, 0, 0.15);
    --rayon: 14px;
    --transition: 0.25s;
    --max-width: 1000px;
    --font-titre: "Petit Formal Script", cursive;
    --font-texte: Georgia, serif;
    --font-condensed: "Roboto Condensed", sans-serif;
}

/* ---------------------------------------------------------
   RESET
--------------------------------------------------------- */

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

body {
    background-image: url("/images/fond6.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    font-family: var(--font-texte);
    color: var(--texte);
    line-height: 1.55;
    padding: 10px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.35); /* intensité du voile */
    pointer-events: none;
    z-index: -1;
}

html {
    overflow-y: scroll;
}

.p-compact {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------
   ANIMATION DOUCE
--------------------------------------------------------- */

.fade-in {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.9s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------------------
   TITRES
--------------------------------------------------------- */

h1 {
    text-align: center;
    color: var(--accent);
    font-size: 54px;
    font-family: var(--font-titre);
    margin-bottom: 10px;
}

h5 {
    text-align: center;
    color: var(--accent);
    font-family: var(--font-condensed);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

/* ---------------------------------------------------------
   BLOCS GÉNÉRIQUES
--------------------------------------------------------- */

.box {
    background-color: var(--fond);
    padding: 25px;
    border-radius: var(--rayon);
    max-width: var(--max-width);
    margin: 25px auto;
    box-shadow: 0 4px 12px var(--ombre);
    font-size: 22px;
}

/* ---------------------------------------------------------
   TITRE ENCADRÉ
--------------------------------------------------------- */

.titre {
    background-color: var(--fond);
    padding: 20px;
    border-radius: var(--rayon);
    max-width: var(--max-width);
    margin: 25px auto;
    text-align: center;
    font-family: var(--font-titre);
}

/* ---------------------------------------------------------
   TEXTES
--------------------------------------------------------- */

.text,
.text_service {
    background-color: var(--fond);
    padding: 25px;
    border-radius: var(--rayon);
    max-width: var(--max-width);
    margin: 25px auto;
    font-size: 26px;
    box-shadow: 0 4px 12px var(--ombre);
}

.text_footer {
    background-color: var(--fond);
    padding: 20px;
    border-radius: var(--rayon);
    max-width: var(--max-width);
    margin: 25px auto;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 4px 12px var(--ombre);
}

.text ul {
    padding-left: 30px;
    margin-top: 10px;
}

.service-list {
    margin-top: 10px;
    padding-left: 30px;
    font-size: 24px;
    line-height: 1.6;
}

.service-list li {
    margin-bottom: 8px;
}

/* ---------------------------------------------------------
   MENU
--------------------------------------------------------- */

.menu {
    position: fixed;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.element {
    text-decoration: none;
    font-family: var(--font-texte);
    font-size: 20px;
    background-color: #9a9287;
    border: 2px solid black;
    border-radius: var(--rayon);
    padding: 10px 14px;
    color: white;
    transition: var(--transition);
}

.element:hover {
    background-color: white;
    color: var(--accent);
    transform: scale(1.05);
}

/* ---------------------------------------------------------
   IMAGES
--------------------------------------------------------- */

.center_logo {
    display: block;
    margin: 25px auto;
    width: 200px;
    transition: var(--transition);
}

.center_logo:hover {
    transform: scale(1.08);
}

.photo_profile {
    display: block;
    margin: 25px auto;
    width: 280px;
    border-radius: var(--rayon);
    box-shadow: 0 6px 15px var(--ombre);
    transition: var(--transition);
}

.photo_profile:hover {
    transform: scale(1.05);
}

.image,
.imageDiplome {
    height: 240px;
    border-radius: var(--rayon);
    border: 6px solid rgb(110, 99, 85);
    box-shadow: 0 6px 15px var(--ombre);
    transition: var(--transition);
}

.image:hover,
.imageDiplome:hover {
    transform: scale(1.08);
}

/* ---------------------------------------------------------
   LOGOS
--------------------------------------------------------- */

.logo_sap {
    height: 60px;
    transition: var(--transition);
}

.logo_facebook {
    height: 40px;
    transition: var(--transition);
}

.logo_facebook:hover,
.logo_sap:hover {
    transform: scale(1.1);
}

/* ---------------------------------------------------------
   FORMULAIRE
--------------------------------------------------------- */

.container {
    background-color: var(--fond);
    padding: 25px;
    border-radius: var(--rayon);
    max-width: 800px; /* élargi */
    margin: 25px auto;
    box-shadow: 0 4px 12px var(--ombre);
    font-size: 22px;
}


input[type=text],
input[type=email],
input[type=tel],
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #bbb;
    border-radius: var(--rayon);
    margin-bottom: 18px;
    font-size: 20px;
}

input[type=submit] {
    background-color: var(--accent);
    color: white;
    padding: 14px 22px;
    border: none;
    border-radius: var(--rayon);
    cursor: pointer;
    font-size: 22px;
    transition: var(--transition);
}

input[type=submit]:hover {
    background-color: #1872D9;
}

/* ---------------------------------------------------------
   PARTENAIRES
--------------------------------------------------------- */

.partner-feature {
    text-align: center;
    margin: 40px auto 20px;
}

.partner-banner {
    width: 100%;
    max-width: 500px;
    border-radius: var(--rayon);
    box-shadow: 0 4px 12px var(--ombre);
    transition: transform 0.25s;
}

.partner-banner:hover {
    transform: scale(1.03);
}

.partner-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px auto 40px;
    max-width: 1000px;
    padding: 0 20px;
}

.partner-logo {
    height: 200px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    border-radius: var(--rayon);
    box-shadow: 0 4px 12px var(--ombre);
    transition: transform 0.25s;
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* ---------------------------------------------------------
   FORMATIONS / DIPLÔMES
--------------------------------------------------------- */

.social-media {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: var(--max-width);
    margin: 10px auto 40px;
}

/* ---------------------------------------------------------
   SAP CREDIT IMAGE
--------------------------------------------------------- */

.sap-credit-img {
    display: block;
    margin: 25px auto 0;
    width: 260px;
    max-width: 80%;
    border-radius: var(--rayon);
    box-shadow: 0 4px 12px var(--ombre);
}

/* ---------------------------------------------------------
   CARTES DE SERVICES
--------------------------------------------------------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 25px auto;
    padding: 0 20px;
}

.service-card {
    background-color: var(--fond);
    padding: 20px;
    border-radius: var(--rayon);
    box-shadow: 0 4px 12px var(--ombre);
    font-size: 22px;
    transition: var(--transition);
}

.service-card h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 26px;
}

.service-card:hover {
    transform: scale(1.03);
    background-color: var(--fond-clair);
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

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

    .menu {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin-bottom: 20px;
    }

    .element {
        font-size: 16px;
        padding: 8px 10px;
    }

    /* Logo principal réduit */
    .center_logo {
        width: 90px;
        margin-top: 10px;
    }

    /* Photo d’Elise */
    .photo_profile {
        width: 200px;
    }

    /* Logos SAP + Facebook réduits */
    .logo_facebook,
    .logo_sap {
        height: 40px;
    }

    h1 {
        font-size: 28px;
    }

    h5 {
        font-size: 14px;
        font-family: var(--font-condensed);
    }

    .titre {
        padding: 10px;
        margin-bottom: 10px;
    }

    .text,
    .text_service {
        font-size: 22px;
        padding: 18px;
    }
}

/* ---------------------------------------------------------
   GALERIE PHOTOS + LIGHTBOX PREMIUM
--------------------------------------------------------- */

.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.tile {
    width: 260px;
    height: 160px;
    background: var(--fond-clair);
    border-radius: var(--rayon);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid #8a7f72;
    box-shadow: 0 4px 12px var(--ombre);
}

.tile:hover {
    background: white;
    transform: scale(1.05);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 30px;
}

/* ---------------------------------------------------------
   MINIATURES CARRÉES + OBJECT-FIT COVER
--------------------------------------------------------- */

.gallery img {
    width: 180px;
    height: 180px; /* carré parfait */
    object-fit: cover; /* empêche toute déformation */
    object-position: center; /* centre l’image */
    border-radius: var(--rayon);
    border: 4px solid rgb(110, 99, 85);
    box-shadow: 0 6px 15px var(--ombre);
    transition: transform 0.25s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(2.2);
    z-index: 20;
}


/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lightbox.visible {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--rayon);
    box-shadow: 0 0 25px #000;
    transition: opacity 0.3s ease;
}

/* Bouton fermer */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 42px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    font-size: 60px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 20px;
    transform: translateY(-50%);
    transition: 0.2s;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ---------------------------------------------------------
   TUILES DE THEMES AVEC IMAGE + TITRE (VERSION 3 COLONNES)
--------------------------------------------------------- */

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    gap: 30px;
    justify-items: center;
    margin-top: 30px;
}

/* Tuile complète */
.theme-tile {
    width: 220px;
    text-decoration: none;
    color: var(--texte);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Image carrée */
.theme-image {
    width: 220px;
    height: 220px;
    border-radius: var(--rayon);
    border: 4px solid rgb(110, 99, 85);
    box-shadow: 0 6px 15px var(--ombre);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.25s ease;
}

.theme-image:hover {
    transform: scale(1.05);
}

/* Titre sous la tuile */
.theme-title {
    margin-top: 10px;
    font-size: 22px;
    text-align: center;
    font-family: var(--font-texte); /* même police que les champs du formulaire */
    background: var(--fond);
    padding: 8px 12px;
    border-radius: var(--rayon);
    width: 100%;
    box-shadow: 0 4px 12px var(--ombre);
}

/* Version mobile : 1 colonne */
@media screen and (max-width: 900px) {
    .theme-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   SERVICES — CARTES THÉMATIQUES (2 colonnes × 3 lignes)
--------------------------------------------------------- */

.services-wrapper {
    max-width: 1000px;
    margin: 25px auto;
    padding: 0 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    background-color: var(--fond);
    padding: 25px;
    border-radius: var(--rayon);
    box-shadow: 0 4px 12px var(--ombre);
    font-size: 22px;
    transition: var(--transition);
}

.service-card:hover {
    transform: scale(1.03);
    background-color: var(--fond-clair);
}

.service-card h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 28px;
    font-family: var(--font-condensed);
    text-align: center;
}

.service-card p {
    font-size: 22px;
    line-height: 1.55;
    text-align: left;
}

/* Version mobile : 1 colonne */
@media screen and (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
	
	.service-card p {
        font-size: 16px;
        line-height: 1.55;
        text-align: left;
    }
}

/* ---------------------------------------------------------
   TEMOIGNAGES — BULLES AVEC QUEUE + SIGNATURE
--------------------------------------------------------- */

.temoignages-wrapper {
    max-width: 1000px;
    margin: 25px auto;
    padding: 0 20px;
}

.temoignages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
    align-items: start; /* ← chaque bulle garde sa propre hauteur */
}

/* Bulle */
.temoignage-bulle {
    position: relative;
    background-color: var(--fond);
    padding: 25px;
    border-radius: var(--rayon);
    box-shadow: 0 4px 12px var(--ombre);
    font-size: 22px;
    line-height: 1.55;
    transition: var(--transition);
    border: 2px solid #8a7f72;
}

/* Effet hover */
.temoignage-bulle:hover {
    transform: scale(1.02);
    background-color: var(--fond-clair);
}

/* Queue — version gauche */
.temoignage-bulle.left::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 40px;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 18px solid var(--fond);
    z-index: 2;
}

/* Bordure de la queue gauche */
.temoignage-bulle.left::before {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 38px;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #8a7f72;
    z-index: 1;
}

/* Queue — version droite */
.temoignage-bulle.right::after {
    content: "";
    position: absolute;
    bottom: -18px;
    right: 40px;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 18px solid var(--fond);
    z-index: 2;
}

/* Bordure de la queue droite */
.temoignage-bulle.right::before {
    content: "";
    position: absolute;
    bottom: -20px;
    right: 38px;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #8a7f72;
    z-index: 1;
}

/* Signature */
.signature {
    margin-top: 15px;
    text-align: right;
    font-family: var(--font-condensed);
    font-size: 18px;
    color: #444;
}


/* Responsive */
@media screen and (max-width: 900px) {
    .temoignages-grid {
        grid-template-columns: 1fr;
    }
}

