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

:root {
    --font-family: Verdana, Geneva, Tahoma, sans-serif;
    --heightlogo: 72px;

    --clr-white: hsl(0, 0%, 100%);
    --clr-whitehr: hsl(0, 0%, 90%);
    --clr-yellowgreen: hsl(70, 70%, 54%);
    --clr-orange: hsl(14, 84%, 54%);
    --clr-green: hsl(158, 39%, 22%);
    --clr-txt: hsl(0, 0%, 20%);
    --clr-txtlight: hsl(0, 0%, 40%);

}

body {
    line-height: 1.6;
    color: var(--clr-txt);
    background-color: var(--white);
    font-family: var(--font-family);
}

h1 { font-size: clamp(1.5rem, 1.333rem + 0.741vw, 2rem);}
h2 { font-size: clamp(1.25rem, 1.083rem + 0.741vw, 1.75rem);}
h3 { font-size: clamp(1rem, 0.833rem + 0.741vw, 1.5rem);}

a {
    color: inherit;
}

a:hover, a:focus {
    text-decoration: none;
}

img {
    max-width: 100%;
}

body:nth-child(2){
    margin-top: calc(var(--heightlogo) + 2rem + 4px);
  }

/* -------------------------------------------------- STYLE POUR MES BOUTONS */

.button {
    background-color: var(--clr-yellowgreen);
    border: 1px solid var(--clr-yellowgreen);
    color: #000;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    display: inline-block;
    margin-top: auto;
}


.button:hover {
    background-color: var(--clr-green);
    color: #fff;
}

/* -------------------------------------------------- MA GRILLE PRINCIPAL */

.content-grid {

    --padding-inline: 1rem;
    --max-width-content: 1200px;


    display: grid;
    grid-template-columns: [full-width-start] minmax(var(--padding-inline), 1fr) [content-start] min(100% - ( var(--padding-inline) * 2), var(--max-width-content)) [content-end] minmax(var(--padding-inline), 1fr) [full-width-end];
}


.content-grid > * {
    grid-column: content;
}

.full-width > * {
    grid-column: full-width;
}


/* -------------------------------------------------- MON HEADER*/

.primary-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--clr-white);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-block: 1rem;
}

.primary-header__layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

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

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: max(4vw, 1rem);
}

nav a {
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        gap: 1.5rem;
        position: absolute;
        top: 0;
        right: 0;
        background-color: rgba(51, 51, 51, 0.6);
        width: 80%;
        height: 100vh;
        padding: 2rem 1rem;
        justify-content: center;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 10px 0 0 10px;
    }

    nav ul li {
        flex: 0;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    nav a {
        color: var(--clr-yellowgreen);
        text-decoration: none;
        font-size: 1.4rem;
        padding: 1rem 2rem; 
        border-radius: 5px;
        transition: all 0.3s ease;
        background-color: rgba(51, 51, 51, 0.5);
        width: 70%;
        max-width: 300px;
    }

    nav a:hover,
    nav a:focus {
        background-color: rgba(255, 255, 255, 0.3); 
        color: var(--clr-green);
        text-decoration: underline;
        transform: scale(1.05);
    }

    nav a.active {
        background-color: var(--red);
        color: white;
    }

    nav ul.active {
        display: flex;
    }
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;

    @media (width < 768px) {
        display: flex;
    }
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: black;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 8px;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -8px;
}

/* -------------------------------------------------- SECTION HERO */

.section-hero__layout {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

.section-hero__content, .section-hero__image {
    flex: 1;
    padding: 1.25rem;
    text-align: center;
}

.section-hero__txt-title, .section-hero__partners-title {
    margin-bottom: 20px;
}

.section-hero__txt-title {
    font-size: var(--fs-heading1);
}

.section-hero__txt-description {
    margin-bottom: 30px;
    font-size: var(--fs-paragraphestrong);
    color: var(--clr-txtlight);
}

.section-hero__partners {
    margin-top: 40px;
}

.section-hero__partner {
    display: inline-block;
    margin: 0 20px;
}

.section-hero__partner-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.section-hero__image {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;

    @media (width < 1024px) {
        display: none;
    }

}

.section-hero__image-item--1:nth-child(1){
    align-self: end;
}

.section-hero__image-img--2 {
    border-top: 3px outset var(--clr-yellowgreen);
    border-right: 3px outset var(--clr-yellowgreen);
    padding-top: 3px;
    padding-right: 3px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

.section-hero__image-img--3 {
    border-bottom: 3px outset var(--clr-yellowgreen);
    border-left: 3px outset var(--clr-yellowgreen);
    padding-bottom: 3px;
    padding-left: 3px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}


/* -------------------------------------------------- SECTION SERVICES */

.section-services--bg {
    background-color: whitesmoke;
}

.section-services {
    text-align: center;
    padding: 60px 20px;
}

.section-services h2 {
    margin-bottom: 10px;
    font-size: 1.75rem;
    color: var(--clr-green)
}

.section-services p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.section-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    @media (width <  1024px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (width < 768px) {
        grid-template-columns: 1fr;
    }
}

.section-services__grid-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-services__grid-card--icon {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.section-services__grid-card h3 {
    margin-bottom: 10px;
}

.section-services__grid-card p {
    margin-bottom: 20px;
    color: hsl(0, 0%, 40%);
}

.section-services_grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------- SECTION CONTACT */

.section-contact {
    background-color: var(--clr-white);
    text-align: center;
    padding: 60px 20px;
}

.section-contact h2 {
    margin-bottom: 10px;
    color: var(--clr-green);
}

.section-contact p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.section-contact__layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;

    @media (width < 768px) {
        flex-direction: column;
    }
}

.section-contact__info {
    width: calc(30% - 10px);
}

.section-contact__form {
    width: calc(70% - 10px);
}

.section-soumission__form {
    margin: 0 auto;
    width: 70%;

    @media (width < 768px) {
        width: 100%;
    }
}

.section-contact__info, .section-contact__form {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);

    @media (width < 768px) {
        width: 100%;
    }
}

.section-contact__info h3 {
    color: var(--clr-green);
    margin-bottom: 30px;
}

.section-contact__info p {
    margin: 0;
}

.section-contact__info b {
    color: var(--clr-yellowgreen);
}

.section-contact__form-group, .section-soumission__form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-contact__form-group label, .section-soumission__form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--clr-txt);
}

.section-contact__form-group input, .section-soumission__form-group input, .section-soumission__form-group select,
.section-contact__form-group textarea, .section-soumission__form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
}

.section-contact__form-group input:focus, .section-soumission__form-group input:focus,
.section-contact__form-group textarea:focus, .section-soumission__form-group textarea:focus {
    border-color: var(--clr-yellowgreen);
    outline: none;
}

.section-contact__form textarea .section-soumission__form textarea {
    resize: vertical;
}

.message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-align: center;
}

.message.success {
    background-color: #d4edda; /* Vert clair */
    color: #155724; /* Vert foncé */
    border: 1px solid #c3e6cb;
}

/* Style pour les messages d'erreur */
.message.error {
    background-color: #f8d7da; /* Rouge clair */
    color: #721c24; /* Rouge foncé */
    border: 1px solid #f5c6cb;
}

/* -------------------------------------------------- MON FOOTER */

footer {
    background-color: var(--clr-txtlight);
    color: #fff;
    padding: 20px;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
}

.footer__social {
    margin-top: 10px;
}

.footer__social a {
    display: inline-block;
    margin: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer__social a:hover {
    opacity: 1;
}

/* -------------------------------------------------- MON FIL D'ARIANE */

/* Breadcrumb styling */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.875rem; /* Ajustez la taille selon vos besoins */
    color: #333; /* Couleur de texte principale */
    padding: 1rem 0;
}

.breadcrumb__list {
    display: flex;
    gap: 0.5rem; /* Espacement entre les éléments */
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb__item a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb__item a:hover {
    color: var(--clr-yellowgreen);
}

.breadcrumb__item:not(:last-child)::after {
    content: ">";
    margin: 0 0.5rem;
    color: #999; /* Couleur plus douce pour les séparateurs */
}

.breadcrumb__item:last-child {
    color: #666; /* Couleur du texte de l'élément actif */
    font-weight: bold;
}

/* -------------------------------------------------- ARTICLE SERVICES */

.bg-services-pages {
    background-color: #f4f4f4;
}

.article-services__layout {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid hsl(0%, 0%, 87%);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--clr-white);
}
.article-services__layout h1, .article-services__layout h2, .article-services__layout h3 {
    color: var(--clr-green);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--clr-whitehr);
    padding-bottom: 5px;
}

.article-services__layout p:not(.cta-helpbar p) {
    margin-bottom: 20px;
}

.article-services__layout img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.article-services__layout-p--introduction {
    padding: 20px 0;
    margin-bottom: 20px;
    color: var(--clr-txtlight);
}

.article-services__layout ul {
    list-style-type: none;
    padding-left: 0;
}

.article-services__layout ul li, .article-services__layout ol {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.article-services__layout ol li {
    margin-bottom: 10px;
}

.article-services__layout ul li::before {
    content: "•";
    position: absolute;
    left: 0;
}
/* -------------------------------------------------- STYLE POUR HELPBAR CALL-TO-ACTION */

.cta-helpbar {
    display: flex;
    border: 1px solid var(--clr-whitehr);
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cta-helpbar__message {
    font-size: 14px;
    flex: 1;
    margin-right: 10px;

    @media (width < 768px){
       text-align: center;
       font-size: 13px;
    }
}

.cta-helpbar__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;

    @media (width < 768px){
        justify-content: center; 
        width: 100%; 
     }
}

.cta-helpbar__actions-btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* -------------------------------------------------- STYLE POUR DESIGN IMAGES */

.design-image {
    margin: 0 auto 20px auto;
    max-width: 100%;
    text-align: center;
}
      
.design-image img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}
      
.design-image figcaption {
    margin-top: 10px;
    font-style: italic;
    color: #555;
    font-size: 0.9em;
}
      
.design-text {
    margin-top: 20px;
    line-height: 1.6;
    color: #333;
}