/* ------------------------------
   DESIGN SYSTEM SADSO31
   Version : DS-1.0
------------------------------ */

/* Variables globales */
:root {
    /* Couleurs */
    --bleu: #003366;
    --violet: #700140;
    --rose: #bd026c;
    --gris-clair: #e6e6e6;
    --gris-texte: #444;

    /* Typographies */
    --font-titre: "Poppins", sans-serif;
    --font-texte: "Roboto", sans-serif;

    /* Rayons */
    --radius-sm: 6px;
    --radius-md: 10px;

    /* Ombres */
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 20px rgba(0,0,0,0.12);

    /* Espacements */
    --space-xs: 8px;
    --space-sm: 15px;
    --space-md: 30px;
    --space-lg: 60px;
    --space-xl: 100px;

    /* Breakpoints */
    --bp-mobile: 600px;
    --bp-tablette: 900px;
}

/* ------------------------------
   RESET & BASE
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-texte);
    color: var(--gris-texte);
    line-height: 1.6;
    background: #f7f7f7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

/* Titres génériques (optionnel) */
h1, {
    font-family: var(--font-titre);
    color: var(--blanc);
}

h2, h3, h4 {
    font-family: var(--font-titre);
    color: var(--bleu);
}

/* ------------------------------
   LAYOUT UTILITAIRES
------------------------------ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------
   COMPOSANTS GÉNÉRIQUES
------------------------------ */

/* Bouton principal */
.btn-primary,
.s31-btn,
.s31-btn-contact,
.s31-btn-retour {
    display: inline-block;
    background: var(--violet);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-titre);
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover,
.s31-btn:hover,
.s31-btn-contact:hover,
.s31-btn-retour:hover {
    background: #fff;
    color: var(--bleu);
}

/* Carte standard */
.card,
.s31-service-card,
.s31-actu-card,
.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid #eee;
    text-align: left;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.card:hover,
.s31-service-card:hover,
.s31-actu-card:hover,
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--rose);
    box-shadow: var(--shadow-hover);
}

/* Carte horizontale */
.card-horizontal,
.s31-actu-card {
    display: flex;
    gap: var(--space-md);
}

/* Image premium */
.img-rounded,
.s31-actu-img,
.s31-actu-detail-img {
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* ------------------------------
   HEADER SADSO31
------------------------------ */
.s31-header {
    background: #fff;
    border-bottom: 5px solid #ddd;
    position: relative;
    z-index: 10;
}

.s31-header-inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s31-logo {
    height: 100px;
}

.s31-nav a {
    margin-left: 40px;
    text-decoration: none;
    font-family: var(--font-titre);
    font-weight: 900;
    color: var(--bleu);
    transition: 0.2s;
}

.s31-nav a:hover {
    color: var(--rose);
}

.s31-header-mascotte img {
    height: 120px;
    position: absolute;
    bottom: -18px;
    right: 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

/* ------------------------------
   HERO SADSO31
------------------------------ */
.s31-hero,
.s31-hero-short {
    background: var(--bleu);
    color: #fff;
    text-align: center;
    border-bottom: 5px solid #ddd;
}

.s31-hero {
    padding: 60px 20px 40px;
}

.s31-hero-short {
    padding: 20px 20px 40px;
}

.s31-hero h1,
.s31-hero-short h1 {
    font-family: var(--font-titre);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.s31-hero p,
.s31-hero-short p {
    font-size: 18px;
    margin-bottom: 35px;
}

/* ------------------------------
   SERVICES SADSO31
------------------------------ */
.s31-services {
    max-width: 1200px;
    margin: var(--space-lg) auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
}

.s31-service-card {
    text-align: center;
}

.s31-service-illu {
    height: 150px;
    margin-bottom: 15px;
}

.s31-service-card h3 {
    font-family: var(--font-titre);
    font-size: 22px;
    font-weight: 700;
    color: var(--bleu);
    margin-bottom: 12px;
}

/* Desktop : blocs larges (780px mini) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(780px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Mobile & tablette : blocs plus petits (260px mini) */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 28px;
    }
}

/* ------------------------------
   ACTUALITÉS SADSO31
------------------------------ */
.s31-actus-hero {
    background: var(--bleu);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.s31-actus-hero h1 {
    font-family: var(--font-titre);
    font-size: 42px;
    margin-bottom: 10px;
}

.s31-actus-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.s31-actus-list {
    max-width: 1100px;
    margin: var(--space-lg) auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.s31-actu-card {
    border-radius: var(--radius-md);
}

.s31-actu-img {
    width: 180px;
    height: 140px;
    flex-shrink: 0;
}

.s31-actu-content h3 {
    font-family: var(--font-titre);
    font-size: 24px;
    color: var(--bleu);
    margin-bottom: 8px;
}

.s31-actu-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
}

.s31-actu-text {
    font-size: 16px;
    color: var(--gris-texte);
    line-height: 1.6;
}

.no-actu {
    text-align: center;
    font-size: 18px;
    color: #666;
}

/* Détail actualité */
.s31-actu-detail {
    max-width: 900px;
    margin: var(--space-lg) auto;
    padding: 0 20px;
    text-align: left;
}

.s31-actu-detail-img {
    width: 100%;
    max-height: 350px;
    margin-bottom: 25px;
}

.s31-actu-detail-content {
    font-size: 18px;
    color: var(--gris-texte);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* ------------------------------
   FORMULAIRE DE CONTACT
------------------------------ */
.s31-contact {
    max-width: 800px;
    margin: var(--space-xl) auto;
    padding: 0 20px;
    text-align: center;
}

.s31-contact h2 {
    font-family: var(--font-titre);
    font-size: 32px;
    color: var(--bleu);
    margin-bottom: 10px;
}

.s31-contact-intro {
    color: var(--gris-texte);
    margin-bottom: 40px;
}

.s31-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.s31-form-group {
    text-align: left;
}

.s31-form-group label {
    display: block;
    font-family: var(--font-titre);
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--bleu);
}

.s31-form-group input,
.s31-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-family: var(--font-texte);
    font-size: 16px;
    transition: 0.2s;
}

.s31-form-group input:focus,
.s31-form-group textarea:focus {
    border-color: var(--violet);
    outline: none;
    box-shadow: 0 0 4px rgba(112, 1, 64, 0.3);
}

.s31-contact-result {
    margin-top: 20px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-titre);
    font-size: 16px;
    display: inline-block;
}

.s31-contact-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #b7dfb9;
}

.s31-contact-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ------------------------------
   FOOTER SADSO31
------------------------------ */
.s31-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
	background: var(--bleu);
    color: #fff;
    font-size: 1.3rem;
}

.s31-footer-left a {
    color: #fff;
    margin-right: 18px;
    font-size: 1.3rem;
    transition: opacity 0.3s ease;
}

.s31-footer-left a:last-child {
    margin-right: 0;
}

.s31-footer-left a:hover {
    opacity: 0.6;
}

.s31-footer-right {
    opacity: 0.8;
}

.s31-footer p {
	color: #fff;
    font-size: 0.9rem;
}	
	
/* ------------------------------
   RESPONSIVE GLOBAL
------------------------------ */

/* Header & nav */
@media (max-width: 900px) {
    .s31-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .s31-nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-left: 0;
    }

    .s31-header-mascotte img {
        height: 90px;
        right: 10px;
    }
}

/* Hero */
@media (max-width: 900px) {
    .s31-hero h1,
    .s31-hero-short h1 {
        font-size: 1.8rem;
    }

    .s31-hero p,
    .s31-hero-short p {
        font-size: 1rem;
    }
}

/* Services */
@media (max-width: 600px) {
    .s31-service-illu {
        height: 110px;
    }

    .s31-service-card {
        padding: 15px;
    }
}

/* Actualités */
@media (max-width: 768px) {
    .s31-actu-card {
        flex-direction: column;
        text-align: center;
    }

    .s31-actu-img {
        width: 100%;
        height: 200px;
    }
}

/* Footer */
@media (max-width: 900px) {
    .s31-footer-inner {
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation message de confirmation */
.s31-contact-result {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.s31-contact-result.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animation check */
.s31-check-anim {
    font-size: 40px;
    color: var(--violet);
    animation: pop 0.5s ease forwards;
    margin-bottom: 10px;
}

@keyframes pop {
    0% { transform: scale(0.2); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}
.service-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Effet hover premium */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    border-color: var(--rose);
}
.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform .35s ease;
}

.service-card:hover .service-img {
    transform: scale(1.03);
}

.service-card h2 {
    font-family: var(--font-titre);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--bleu);
    margin-bottom: 6px;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.service-card ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.service-card ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--violet);
    font-weight: 700;
}

.service-price {
    display: inline-block;
    background: linear-gradient(135deg, var(--violet), var(--rose));
    color: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
