/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}


html {
    scroll-behavior: smooth;
}


body {
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER */
header {
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    color: #4a4a4a;
    font-weight: bold;
    font-size: 1.8rem;
}

/* NAVIGATION */
nav {
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: #4a4a4a;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #6a11cb;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #6a11cb;
    border-radius: 2px;
}

/* HERO */
.hero {
    position: relative;
    background: url('../images/redac1.jpg') center/cover no-repeat; /* ton image */
	min-height: clamp(250px, 45vh, 500px);

    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* noir semi-transparent à 50% */
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .btn {
    background: #ffcc00;
    color: #4a4a4a;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s, background 0.3s;
}

.hero .btn:hover {
    background: #ffd633;
    transform: scale(1.05);
}









/* HERO */
.min-hero {
    position: relative;
    background: url('../images/redac1.jpg') center/cover no-repeat; /* ton image */
	min-height: clamp(120px, 45vh, 200px);

    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}














/* info */
.services-intro-section {
    padding: 2rem 1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto; /* centre horizontalement */
}

.services-intro-section h3 {
    font-size: 1.8rem;
    color: #4a4a4a;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 500;
	margin-top:100px;
}












/* service card */

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* réduit un peu pour mobile */
    margin-top: 8rem;
    margin-bottom: 10rem;
}

.card {
    background: #fff;
    width: 100%;        /* largeur 100% du parent */
    max-width: 620px;   /* largeur max sur grand écran */
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.25);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #4a4a4a;
}

.card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.card-header h3 {
    margin-top: 0;  /* supprime marge inutile */
    font-size: 1.4rem;
}

.icon {
    font-size: 2.5rem;
}

/* MEDIA QUERIES POUR RESPONSIVE */
@media (max-width: 768px) {
    .service-cards {
        flex-direction: column;
        gap: 2rem;
        margin-top: 4rem;
        margin-bottom: 6rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .icon {
        font-size: 2rem;
    }

    .card p {
        font-size: 0.95rem;
    }
}














/* FOOTER */
footer {
    background: #4a4a4a;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #ffffff;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 1rem;
        text-align: right;
        border-radius: 0 0 0 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .hero h2 {
        font-size: 2rem;
    }
}











/* SINGLE BLOCK SECTION */

.single-block-section {
    padding: 6rem 1rem;
    min-height: 60vh;        
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-block-section .container {
    display: flex;           /* nouveau */
    justify-content: center; /* centre le single-block */
    width: 100%;             /* s'assure qu'il prend toute la section */
}





.single-block {
    width:600px;

}




.single-block h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.single-block p {
    text-align: center;
    margin-bottom: 2rem;
}













/* Form */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a4a4a;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border-radius: 15px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}



.input-error,
.input-error:focus {
    border-color: red !important;
    background-color: #ffe6e6;
    box-shadow: none; /* si tu veux supprimer le glow du focus */
}




.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    display: none;
    margin-top: 0.3rem;
}

.btn-submit {
    background: #ffcc00;
    color: #4a4a4a;
    border: none;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.btn-submit:hover {
    background: #ffd633;
    transform: scale(1.05);
}



/* Responsive */
@media (max-width: 768px) {
    .single-block {
        width: 100%;
		max-width:600px;
    }
	
	
	
	.single-block-section {
    padding: 0rem 0.5rem;
	}
}











/* Classe générique pour toutes les images responsives */
.responsive-img {
    width: 100%;       /* toujours responsive */
    max-width: 800px;  /* limite la taille sur grands écrans */
    height: auto;      /* conserve le ratio */
    display: block;    /* permet de centrer */
    margin: 60px auto 0 auto; /* marge top + centré */
}



















