/* =========================
VARIABLES DE COULEURS
========================= */
:root {
    --color-primary: #68A178;
    --color-secondary: #C7DDC6;
    --color-tertiary: #34553D;
    --color-accent: #F88282;
    --color-bg: #FCFBF8;
    --color-text: #101F14;
    --color-light: #FFFFFF;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --border-radius-img : 50%;
}

/* =========================
RÉINITIALISATION
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'system-ui', Arial, sans-serif;
}

/* =========================
TYPOGRAPHIE
========================= */
h1, h2, h3, h4, h5 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* =========================
CONTAINERS
========================= */
body {
    background-color: var(--color-bg);
}

.container {
    width: 90%;
    max-width: 100%; /* largeur max de ta page */
    margin: 0 auto;    /* centre le container */
    padding: 0 1rem;   /* petit espace interne pour pas coller aux bords */
}


/* =========================
BOUTONS
========================= */
.btn {
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    font-weight: 500;
    transition: background-color var(--transition-speed);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-light);
}

.btn-primary:hover {
    background-color: var(--color-bg);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary {
    background-color: var(--color-bg);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    font-size: 1.4rem;
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
}

/* Bouton Me contacter spécifique */
.btn-contact {
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    font-weight: 500;
    background-color: var(--color-accent);
    color: var(--color-light);
    transition: background-color var(--transition-speed);
}

.btn-contact:hover {
    background-color: var(--color-bg);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

/* Bouton balise a */
a.btn {
    text-decoration: none;
    display: inline-block;
}

.form-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-bg);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1.2rem;
}

.form-button:hover {
    background-color: var(--color-tertiary);
    transform: translateY(-2px);
}

.form-button:active {
    transform: translateY(0);
}

/* =========================
LISTES
========================= */
ul {
    padding: 0 0.5rem;
    list-style: inside;
    font-size: 1.4rem;
}

li {
    padding: 0.5rem 0.5rem;
}

/* =========================
SECTIONS
========================= */
.section {
    padding: 4rem 2rem;
    margin: 4rem 2rem;
}

/* Section générique */
.section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Texte dans la section */
.section-text {
    flex: 1;
    display: flex;
    flex-direction: column; /* empile les textes verticalement */
    gap: 1rem;
    align-items: flex-start; /* centre le texte horizontalement */
}

/* Image */
.section-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.section-img img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-img);
}

/* Pour inverser l’image et le texte (ex: image à gauche) */
.section.reverse .section-content {
    flex-direction: row-reverse;
}

/* =========================
CARTES / PROJETS
========================= */
.card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem 0 1.5rem 1.5rem ;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform var(--transition-speed);
}

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

.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 650px;          /* largeur fixe */
    min-height: 600px;     /* hauteur minimum commune */
}

.card-head {
    background-color: var(--color-bg);
    padding: 1.5rem 0 1.5rem 0rem ;
    border-radius: 850px 850px 0px 0px; /* arc de cercle en haut */
    transition: transform var(--transition-speed);
    text-align: center;
}

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

.card-head-title {
    font-size: 2rem;
    margin: 1rem 1rem;
    color : var(--color-text);

}

.card-head-subtitle {
    font-size: 1.4rem;
    margin: 0.5rem 1rem 0;
    font-style: italic;
    font-weight :500;
}

.card-head-icon {
    font-size: 2rem;
}

/* =========================
FORMULAIRES
========================= */

/* Conteneur global */

.form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.form.custom-form {
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 0 auto ;
}


/* Groupes de champs */
.form-group {
    margin-bottom: 1.5rem;
}

/* Labels */
.form-label {
    display: block;
    font-weight: 600;
    color: var(--color-tertiary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Inputs + selects + textarea */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-secondary);
    border-radius: 0.75rem;
    background-color: #fff;
    color: var(--color-text);
    font-size: 1.1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(104, 161, 120, 0.25); /* halo vert */
    outline: none;
}

/* Textarea spécifique */
    textarea.form-control {
    min-height: 120px;
    resize: vertical;
}


/* Messages d'erreur ou succès */
.form-error {
    color: var(--color-accent);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.form-success {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}


/* =========================
IMAGES
========================= */
.img-round {
    border-radius: 50%;
}

.img-responsive {
    max-width: 100%;
    height: auto;
}

/* =========================
UTILS
========================= */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* =========================
HEADER / NAV
========================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 5rem;
    background-color: var(--color-bg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: sticky; /* reste visible en scroll */
    top: 0;
    z-index: 1000;
    gap: 1rem;
}

.logo {
    width: 100%;
    max-width: 150px;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    align-items: start;
    gap: 2rem;

}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.5rem;;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

/* Effet hover avec soulignement animé */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Page active */
.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =========================
FOOTER
========================= */
.footer {
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.footer p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: --var(--color-text);
}

.footer a {
    color: var(--color-text);
    font-size: 1rem;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer a:hover {
    color: var(--color-accent);
}

/* Variante : liens de navigation dans le footer */
.footer-nav {
    margin-top: 1rem;
    display: flex;
    justify-content: space-around;
    gap: 1.5rem;
    align-items: start;
}

.footer-nav a {
    font-size: 1.2rem;
    font-weight: 500;
    padding-bottom: 1rem;
}
/*==========================
PAGE ERREUR
===========================*/
.section-content.error {
    display:flex;
    flex-direction: column;
}

.section-text.error-quote {
    font-style: italic;
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--color-tertiary);
    font-weight: 600;
}

.section-list.error-list{
    list-style: inside;
    padding-left: 1rem;
    margin-top: 1rem;
    font-size: 1.2rem;;
}

.section-img.error-img {
    max-width: 350px;
    min-height: 350px;
    border-radius: var(--border-radius-img);
}
/* =========================
FOOTER PERSONNALISÉ
========================= */

.footer-social a {
    font-size: 2rem;
    color: var(--color-text);
    margin: 0 0.5rem;
    transition: color var(--transition-speed);
}

.footer-contact a {
    display : flex;
    flex-direction: column ;
    align-items: start;
}

.footer-bottom {
    display: flex;
    flex-direction: column ;
    align-items: center;
    justify-content: center;
}

/* =========================
SECTIONS PERSONNALISÉES
========================= */
/* Hero section */
.btn-hero {
    font-size: 1.5rem;
    padding: 0.8rem 1.6rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-text {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.section-img .hero-img  img {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

/* About section */
.section-title.about-title {
    align-self: flex-start; /* sort le titre du centrage du parent */
    width: 100%;
    text-align: left;
}

.about-text {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.section-img .about-img img {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
}

/* Projects section */
.section-content.projects {
    flex-direction: column;
    gap: 2rem;
}

.card.projects-card {
    display: flex ;
    flex-direction: row-reverse;

}

.section-img .projects-img img {
    border-radius: 0;
    max-width: 500px;
    max-height: fit-content;
    height: auto;
    width: 100%;
    justify-content: end;
}

h3.project-title {
    color : var(--color-text);
    font-size : 1.5rem;
}

ul.projects-list {
    display: flex;       /* met les li en ligne */
    gap: 0.5rem;           /* espace entre chaque li */
    flex-wrap: wrap;     /* si ça déborde, passe à la ligne suivante */
    padding: 0;          /* supprime le padding par défaut de ul */
    margin: 0;           /* supprime le margin par défaut de ul */
    list-style: none;    /* supprime les puces */
}

.tag-list {
    display: flex;
    border-radius: 10px 100px / 120px;
    background-color: #fcdbdb;
    padding: 0.3rem 0.8rem;
    font-size: 1.2rem;
}

ul.projects-list li {
    color: #e05b5b;
}

/* Offres section */
.section.intro {
    margin-bottom:2rem;
    padding-bottom:0;
}

.section.global {
    display:flex;
    flex-direction: column;
    align-items: center;
}

.section-content.offer {
    align-items: stretch;
    width: 100%;
}

.section-content.service {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;   /* 🔑 toutes les cartes auront la même hauteur */
    gap: 2rem;
    width: 100%;

}

.btn-offer {
    font-size: 1.5rem;
    padding: 0.8rem 1.6rem;
}

.section-content.contact-cards {
    justify-content:space-around;
}

/* Contact section */
.intro-title {
    font-size: 3.0rem;
    margin-bottom: 2rem;
    text-align: center;
}

.intro-text {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 2rem;
}

.section-content.contact-end {
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center ;
}

.container.contact-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



/* =========================
CARD PERSONNALISEES
========================== */

.card-head.seed {
    border: 3px solid var(--color-secondary);
}

.card-head.snow {
    border: 3px solid #84B6D0;
}

.card-head.leaf {
    border: 3px solid #E8A87D;
}

.card-head-icon.seed {
    color: var(--color-primary);
}

.card-head-icon.snow {
    color: #84B6D0;
}

.card-head-icon.leaf {
    color: #E8A87D;
}

.card-head-icon.contact {
    font-size: 3.5rem;
}

.card.offer {
    flex: 1;               /* prend tout l’espace dispo */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card.service {
    flex: 1 1 370px;
    max-width: 370px; /* largeur fixe pour harmoniser */
    min-height: 320px; /* même hauteur pour toutes */
    background-color: var(--color-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
    border-radius: 150px 150px 20px 20px; /* arc de cercle en haut */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.contact-card {
    max-width: 400px;          /* largeur fixe */
    min-height: 200px;     /* hauteur minimum commune */
    padding: 2rem 1rem;
    text-align: center;
    background-color: var(--color-secondary);
    color: var(--color-tertiary);
    border-radius: 50px;
    }


/* =======================
TYPOGRAPHIE PERSONNALISEE
========================= */
.offer p {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.offer .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-tertiary);
    margin-top: 2rem;
    margin-bottom: 0;
}

.offer .description {
    font-weight: 400;
    font-size: 1.4rem;
}

.service p {
    font-size: 1.4rem;
}

.service .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

/*========================
LISTES PERSONNALISEES
========================= */
.offer ul {
    padding: 0;
    list-style: inside;
    font-size: 1.4rem;
}

.offer li {
    padding: 0.5rem 2rem;

}

/* =========================
BUTTONS PERSONNALISÉS
========================= */
.btn-contact-home {
    background-color: var(--color-accent);
    color: var(--color-bg);
    text-decoration: none;
    font-weight: 600;
    font-size : 1.3rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    margin-left: 2rem;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn-contact-home:hover {
    background-color: var(--color-bg);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    transform: translateY(-2px);
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 1024px) {

    /*Container global */
    .container .section.global {
        margin: 0;
    }

    .section.global {
        padding: 2rem 0.5rem;
        margin: 3rem 0.8rem;
    }

    .section-content {
        gap: 1.7rem;
        margin: 0.1rem;
    }


    .card-content {
        max-width: 300px;          /* largeur fixe */
        min-height: 500px;     /* hauteur minimum commune */
    }

}
@media (max-width: 768px) {
    /* Header - menu vertical pour mobile */
    .container {
        display:flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .burger {
        display: flex;
    }
    .logo {
        font-size: 1.8rem; /* logo plus visible */
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav-links {
    display: flex;
    flex-direction: column  ;
    align-items: center;
    gap: 2rem;
    margin-right: 0rem;
    }

    /* Footer */
    .footer-nav {
        flex-direction: column ;
        gap: 1rem;
        align-items: center;
        margin-bottom: 2rem;;
    }

    .footer-contact a {
    display : flex;
    flex-direction: column ;
    align-items: center;
}

    /* Bouton contact : masquer le texte et montrer icône sur mobile */
    .btn-contact-home {
        margin-left: 0;
        font-size: 1rem;
    }

    .btn-contact-home .contact-icon {
        display: inline;
        font-size: 1.5rem;
    }

    /* Effet "croix" quand le menu est ouvert */
    .burger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .burger.open span:nth-child(2) {
        opacity: 0;
    }
    .burger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Bouton Me contacter reste visible */
    .btn-contact-home {
        align-self: center;
        margin-top: 0.5rem;
    }


    /* Sections et cartes */
    .section {
        padding: 2rem 0.5rem;
        margin: 2rem 0.5rem;
    }

    .card {
        padding: 0.5rem;
    }

    .card.projects-card {
    display: flex ;
    flex-direction: column;
    align-items: center;

}

    .section-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-img {
        justify-content: center;
        width: 100%;
        height: auto;
        display: block;
    }
    /*Section spécifique*/
    /* Projects section */
    .section-img .projects-img img {
        max-width: 100%;
        height: auto;
    }
    /* About section */
    .section-img .about-img img {
        max-width: 200px;
        height: auto;
    }

    .section-title.about-title {
        font-size: 1.7rem;
        text-align: center;
    }

    .about-text {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }


    /* Hero section */
    .section-img .hero-img  img {
        max-width: 300px;
        height: auto;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero-text {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .intro-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .intro-text {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    /* card personnalisée */
    .card-head-title {
        font-size: 1.3rem;
        margin: 0.5rem 0.5rem;

    }

    .card-head-subtitle {
        font-size: 1rem;
        margin: 0.2rem 0.8rem 0;
    }

    .card-head-icon {
        font-size: 1.5rem;
    }

    .card-content {
        max-width: 500px;          /* largeur fixe */
        min-height: 500px;  /* hauteur minimum commune */
    }

    .card.offer {
        padding: 1rem;
    }

}

/* Petit ajout pour les très petits écrans */
@media (max-width: 480px) {

    .section-title.about-title {
        text-align : center;
    }

    .wrapper {
        width: 90%;
        padding: 0;
        margin: 32px;
    }

    .container {
        display:flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn, .btn-contact {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .card-content {
        max-width: 400px;          /* largeur fixe */
        min-height: 500px;     /* hauteur minimum commune */
    }

    /* card personnalisée */
    .card-head-title {
        font-size: 1.1rem;
        margin: 0.5rem 0.5rem;

    }

    .card p {
        font-size: 1rem;
    }

    .card ul {
        font-size: 1rem;
        list-style: inside;

    }


    .card-head-subtitle {
        font-size: 1rem;
        margin: 0.2rem 0.8rem 0;
    }

    .card-head-icon {
        font-size: 1.5rem;
    }

    .card.service {
        min-height: 50px;
        padding : 5rem;
    }

    /* Liste personnalisée */
    .offer ul {
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.5rem;
    }

    .offer li {
        padding: 0.1rem 1.5rem;
        font-weight: 300;

    }

    /* Typographie personnalisée */
        .offer p {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .offer .price {
        font-size: 1.1rem;
        margin-top: 1.5rem;
        margin-bottom: 0;
    }

    .offer .description {
    font-size: 1rem;
    }

    .tag-list {
        font-size: 1rem;
    }

    /* Formulaire
    /* Conteneur global */
    .form.custom-form {
        padding: 2rem;
        border-radius: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        max-width: 600px;
        margin: 0 auto;
    }

    /* Groupes de champs */
    .form-group {
        margin-bottom: 1.5rem;
    }

    /* Labels */
    .form-label {
        display: block;
        font-weight: 600;
        color: var(--color-tertiary);
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

    /* Inputs + selects + textarea */
    .form-control {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 2px solid var(--color-secondary);
        border-radius: 0.75rem;
        background-color: #fff;
        color: var(--color-text);
        font-size: 1rem;
        transition: border-color 0.3s, box-shadow 0.3s;
    }

    .form-control:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 3px rgba(104, 161, 120, 0.25); /* halo vert */
        outline: none;
    }

    /* Textarea spécifique */
        textarea.form-control {
        min-height: 120px;
        resize: vertical;
    }


    /* Messages d'erreur ou succès */
    .form-error {
        color: var(--color-accent);
        font-size: 0.875rem;
        margin-top: 0.5rem;
    }

    .form-success {
        color: var(--color-primary);
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

}

