/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global */
body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    font-size: 16px;
}

h1 { font-size: 2em; }   /* ~32px */
h2 { font-size: 1.5em; } /* ~24px */
h3 { font-size: 1.2em; }
p, li {
    font-size: 1em;      /* 16px */
}

ul {
    list-style-type: none;
}
/* Header */
header {
    background-color: #4CAF50;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header img {
    height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    
}

nav ul li a.active,
nav ul li a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

/* Accueil */

.hero header {
    background-color: unset;
}

.hero footer {    
    background-color: unset;
}


.hero h2 {
    color: #fff;
}

.hero {
    background: url('logo.jpg') center/cover no-repeat;
    background-color: #4CAF50;
    color: #fff;
    text-align: center ;
}


.hero a {
    color: #fff;
    text-decoration: none;
}

.hero a:visited {
    color: #fff;
}

.hero h1 a {
    font-size: 5em;
}

/* Main */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

main h2 {
    color: #4CAF50;
    margin-bottom: 10px;
}

main p, main li {
    margin-bottom: 10px;
}

/* Section fade-in */
main section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page À propos */
.about {
    margin-top: 40px;
}

.about h1 {
    margin-bottom: 20px;
}

/* Page Services */

.services ul li {
    font-size: 1em;
}

.services article {
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services article:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.services h2 {
    color: #4CAF50;
}

.services ul {
    list-style: none;
    padding-left: 0;
}

.services ul li {
    margin-bottom: 8px;
    font-size: 1.1em;
}

/* Page Galerie */
.gallery .photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.gallery .photos img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery .photos img:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.gallery blockquote {
    font-style: italic;
    color: #555;
    margin: 10px 0;
    padding-left: 10px;
    border-left: 3px solid #4CAF50;
}

/* Page Contact */
.contact h1 {
    color: #4CAF50;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

form label {
    font-weight: bold;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background: #4CAF50;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.contact .infos {
    margin-top: 20px;
}

.contact .infos p {
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: #4CAF50;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    position: relative;
    bottom: 0;
    width: 100%;
}

