/* Reset simple */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    color: #222;
    background-color: #fff;
    line-height: 1.6;
    padding-top: 70px; /* espace pour le menu sticky */
}

main {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.content-visible main {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation sticky top */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;

    display: flex;
    justify-content: center;
    padding: 0 20px; /* identique aux sections */
    height: 70px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #00aaff; /* bleu ciel */
    text-decoration: none;
}

nav a {
    margin-left: 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}
nav a:hover {
    color: #00aaff;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border: 4px solid #00aaff;
    color: #00aaff;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.3em;
    font-weight: bold;
    color: #00aaff;
}

/* Footer */
footer {
    background: #f9f9f9;
    padding: 30px 20px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}
footer a {
    color: #00aaff;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

h1,
h2 {
    margin-bottom: 20px;
    color: #111;
}
p,
li {
    margin-bottom: 16px;
}
ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
}

form label {
    margin-top: 15px;
    font-weight: 500;
}
form input,
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 5px;
}
form button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #00aaff;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
form button:hover {
    background: #008ecc;
}

form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.button-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.5em;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

button:disabled .button-label {
    opacity: 0.5;
}

#form-feedback {
    margin-top: 1em;
    padding: 1em;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    max-width: 600px;
}

#form-feedback.success {
    background-color: #e6f4ea;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

#form-feedback.error {
    background-color: #fbe9e7;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Sections générales */
section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Hero plein écran */
.hero {
    position: relative;
    width: 100vw;
    height: 600px;
    margin-top: -70px;
    padding-top: 140px;
    max-width: 100%;
    background: url("/img/hero.png") no-repeat center center;
    background-size: cover;
    z-index: 0;
    padding-left: 5%;
    padding-right: 5%;
}

/* Voile de lisibilité avec dégradé */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.6) 30%,
        rgba(255, 255, 255, 0.3) 80%
    );
    z-index: 1;
}

/* Contenu texte du hero */
.hero-content {
    position: relative;
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    line-height: 1.8;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 10px;
}

section.intro {
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00aaff;
}

.product {
    position: relative;
    padding-left: 20px;
    margin-top: 40px;
    border-left: 4px solid #cceeff;
}

.product > h3 {
    font-size: 1.3rem;
    color: #0077aa;
    margin-bottom: 10px;
}

.product-description {
    font-style: italic;
    margin-bottom: 12px;
    color: #444;
}

.product ul {
    padding-left: 20px;
    list-style-type: disc;
    margin-bottom: 15px;
}

.product li {
    margin-bottom: 8px;
}

.product a {
    color: #00aaff;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.product a:hover {
    border-color: #00aaff;
}

.product-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.product-text {
    flex: 1 1 40%;
    min-width: 250px;
}

.product-list {
    flex: 1 1 50%;
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.why-trust-us-background {
    background: #dcf3ff;
    margin-top: 20px;
    margin-bottom: 80px;
}

section.why-trust-us {
    padding: 60px 30px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.trust-list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.trust-list li {
    background: #fff;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.trust-list li:hover {
    transform: translateY(-2px);
}

.trust-list h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #00aaff;
}

section.call-to-action {
    text-align: center;
    background: #dcf3ff;
    padding: 60px 30px;
    margin-bottom: 80px;
    border-radius: 12px;
}

section.call-to-action a {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 30px;
    background: #00aaff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}
section.call-to-action a:hover {
    background: #008ecc;
}
