/* -------------------------------------------------
   Reset de base + variables
--------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* -------------------------------------------------
   Couleurs & typographies
--------------------------------------------------- */
:root {
    --primary: #386580;          /* Bleu professionnel */
    --primary-dark: #386580;
    --accent: #386580;           /* Orange pour les CTA */
    --bg-light: #f5f5f5;
    --text-dark: #222;
}

/* -------------------------------------------------
   Layout général
--------------------------------------------------- */
.container {
    width: min(90%, 1200px);
    margin: 0 auto;
    padding: 1rem 0;
}

/* -------------------------------------------------
   Navbar
--------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}
.navbar nav {
    display: inline-block;
}
.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.navbar .nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}
.navbar .nav-links a:hover {
    color: var(--primary);
}
.navbar .container {
    display: flex;               /* crée un flex‑container */
    align-items: center;         /* centre verticalement les éléments */
    justify-content: space-between; /* espace maximal entre logo et menu */
}
/* -------------------------------------------------
   MENU HAMBURGER – caché sur grand écran
--------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }
.navbar { background:#fff; border-bottom:1px solid #e0e0e0; position:sticky; top:0; z-index:1000; }
.logo { font-weight:bold; font-size:1.5rem; color:var(--primary); text-decoration:none; }

/* -------------------------------------------------
   CACHER LE CHECKBOX
--------------------------------------------------- */
.nav-toggle {
    position: absolute;          /* le sort du flux */
    opacity: 0;                  /* invisible */
    pointer-events: none;        /* on ne le voit pas, mais le label le déclenche */
}

/* -------------------------------------------------
   STYLE DU LABEL (icône hamburger)
--------------------------------------------------- */
.nav-toggle-label {
    display: none;               /* affiché seulement sur mobile */
    cursor: pointer;
    width: 2rem;
    height: 1.5rem;
    flex-direction: column;
    justify-content: space-between;
}

/* Les trois barres */
.nav-toggle-label span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 2px;
}

/* -------------------------------------------------
   MENU – version desktop (défaut)
--------------------------------------------------- */
.nav-menu {
    /* rien de spécial : on garde le menu en ligne */
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style:none;
}
.nav-links a {
    text-decoration:none;
    color:var(--text-dark);
    font-weight:500;
}

/* -------------------------------------------------
   RESPONSIVE – ≤ 768 px (mobile)
--------------------------------------------------- */
@media (max-width: 768px) {

    /* 1️⃣ Afficher le label (hamburger) */
    .nav-toggle-label {
        display: flex;               /* devient visible */
    }

    /* 2️⃣ Masquer le menu horizontal par défaut */
    .nav-menu {
        position: absolute;
        top: 100%;                   /* juste sous la navbar */
        left: 0;
        right: 0;
        background: #fff;
        max-height: 0;               /* fermé */
        overflow: hidden;
        transition: max-height .35s ease-out;
        box-shadow: 0 4px 6px rgba(0,0,0,.1);
    }

    /* 3️⃣ Quand le checkbox est coché → ouvrir le menu */
    .nav-toggle:checked + .nav-toggle-label + .nav-menu {
        max-height: 400px;          /* assez haut pour contenir les liens */
        transition: max-height .4s ease-in;
    }

    /* 4️⃣ Empiler les liens verticalement */
    .nav-links {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.4rem 0;
    }

    /* 5️⃣ Réduire le logo pour laisser de la place */
    .logo-img { height: 30px; }
}

/* -------------------------------------------------
   Version mobile (≤ 768 px)
--------------------------------------------------- */
@media (max-width: 768px) {
    /* Afficher le bouton hamburger */
    .nav-toggle {
        display: block;
        color: var(--text-dark);
    }

    /* Masquer le menu horizontal par défaut */
    .nav-menu {
        position: absolute;
        top: 100%;                     /* juste sous la navbar */
        left: 0;
        right: 0;
        background: white;
        max-height: 0;                  /* fermé */
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 4px 6px rgba(0,0,0,.1);
    }

    /* Quand le menu est ouvert (classe .open ajoutée via JS) */
    .nav-menu.open {
        max-height: 300px;             /* assez haut pour contenir les liens */
        transition: max-height 0.4s ease-in;
    }

    .nav-links {
        flex-direction: column;        /* empile les liens verticalement */
        gap: 0.5rem;
        padding: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    /* Réduire le logo pour laisser plus de place */
    .navbar .logo-img { height: 30px; }
}
/* -------------------------------------------------
   Hero
--------------------------------------------------- */
.hero {
    background: url('hero-bg.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 0;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: .5rem;
    color: #93CDDD; 
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.cta-btn {
    display: block;
	width: fit-content;
	margin: 2rem auto; 
	text-align: center; 
    background: var(--accent);
    color: white;
    padding: .75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background .3s;
}
.cta-btn:hover {
    background: #e68900;
}

/* -------------------------------------------------
   Sections génériques
--------------------------------------------------- */
.section {
    padding: 4rem 0;
}
.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-dark);
}
.bg-light {
    background-color: var(--bg-light);
}

/* -------------------------------------------------
   Grille de cartes (services, projets)
--------------------------------------------------- */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card,
.project-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    transition: transform .2s, box-shadow .2s;
}
.project-card img {
    display: block;          /* enlève le comportement inline */
    margin: 0 auto;          /* centre horizontalement */
    max-width: 100%;         /* ne dépasse jamais la largeur de la carte */
    height: auto;            /* conserve les proportions */
    border-radius: 4px;      /* (optionnel) arrondit légèrement les coins */
}
.card:hover,
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,.1);
}
.card h3,
.project-card h3 {
    margin-top: .1rem;
	margin-bottom: 0.8rem;
    color: var(--primary);
}

/* -------------------------------------------------
   Section À propos
--------------------------------------------------- */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}
.about-img {
    max-width: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary);
}

/* -------------------------------------------------
   Formulaire de contact
---------------------------------------------------*/
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
	resize: vertical;
}
.contact-form button {
    justify-self: start;
}
/* -------------------------------------------------
   FOOTER GLOBAL
--------------------------------------------------- */
.site-footer {
    background: #999999;               /* couleur de fond claire */
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #333;
}

/* Flex container qui aligne les deux colonnes */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;    /* pousse le .footer-right à droite */
    padding: 0 1rem;
}

/* -------------------------------------------------
   SOCIAL LINK – STYLE COMMUN
--------------------------------------------------- */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0e0e0;               /* gris neutre en arrière‑plan */
    transition: background .25s, transform .2s;
    text-decoration: none;
}

/* Icône SVG */
.social-link .icon {
    width: 24px;
    height: 24px;
    fill: #0a66c2;                     /* bleu officiel LinkedIn */
}

/* Hover / focus – même effet que dans le header */
.social-link:hover,
.social-link:focus-visible {
    background: #0a66c2;
    transform: scale(1.08);
}
.social-link:hover .icon,
.social-link:focus-visible .icon {
    fill: #fff;
}

/* -------------------------------------------------
   RESPONSIVE – adaptation mobile
--------------------------------------------------- */
@media (max-width: 480px) {
    .footer-inner {
        flex-direction: column;        /* empile le texte et le logo */
        text-align: center;
    }
    .footer-right {
        margin-top: 0.8rem;            /* espace entre le texte et le logo */
    }
}
/* -------------------------------------------------
   Page « Merci » – centrage du texte
--------------------------------------------------- */
.thank-you .container {
    text-align: center;          /* centre le titre, le paragraphe et le bouton */
}

/* Si vous voulez ajouter un peu d’espace vertical autour du bloc */
.thank-you .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
