
/*  Importations extérieur  */

@font-face {
    font-family: "nunito";
    src: url(NunitoSans-VariableFont_YTLC\,opsz\,wdth\,wght.ttf);
}
@font-face {
    font-family: "playfair";
    src: url(PlayfairDisplay-VariableFont_wght.ttf);
}



/*  Modifications générales  */

body{
    background-color: #212842;
    overflow-x: hidden;
}
nav {
    background-color: #212842;
    display: flex;              
    justify-content: space-between; 
    align-items: center;   
    padding: 10px 20px;
    font-family: playfair;
}

h2{
    color: #f0ead6;
    font-family: nunito;
    font-size:150%
}
p{
    color: #f0ead6;
    font-family: playfair;
    font-size: 92%;
}

a{
    text-decoration: none;
}

h1{
    font-family: nunito;
    color: #f0ead6;
    text-align: center;
}

hr{
    margin-top: 40px;
    margin-bottom: 0%;
}

h3{
    font-family: nunito;
    color: #f0ead6;
}


/*  Bandeau suppérieur  */

.logo {
    width: 75px;
    padding: 10px;
}

.boutontop{
    display: flex;
    gap: 10px;
}

.btn1{
    padding: 4px 8px;
    background-color: #315e8e;
    color: white;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
}
 
.btn2{
    padding: 4px 8px;
    background-color: #315e8e;
    color: white;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
}

.btn3{
    padding: 4px 8px;
    background-color: #315e8e;
    color: white;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
}

.btn4{
    padding: 4px 8px;
    background-color: #315e8e;
    color: white;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
}

.btn1:hover{
    background-color: aliceblue;
    color: #212842;
}
.btn2:hover{
    background-color: aliceblue;
    color: #212842;
}
.btn3:hover{
    background-color: aliceblue;
    color: #212842;
}
.btn4:hover{
    background-color: aliceblue;
    color: #212842;
}



/*  Modifications bandeau principal */

/* Bandeau principal */
header {
    position: relative;
    width: 100%;      /* largeur totale de la fenêtre */
    height: 70vh;      /* hauteur responsive */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0;         /* supprime tout margin implicite */
    padding: 0;        /* supprime padding */
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;      /* couvre toute la largeur */
    height: 100%;      /* couvre toute la hauteur du conteneur */
    object-fit: cover;
    z-index: -1;
    animation: zoomVideo 20s ease-in-out infinite alternate;
    transform: scale(1.1); /* zoom permanent */
}

header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 40, 66, 0.4); /* overlay sombre pour faire ressortir le texte */
    z-index: 0;
}

.headprinc {
    position: relative;
    z-index: 1;
    color: #f0ead6;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hprinc {
    font-family: nunito;
    font-size: clamp(2rem, 5vw, 75px);
}

.slogan {
    font-family: playfair;
    font-size: clamp(1rem, 2vw, 20px);
    color: #f0ead6;
}

.btnprinc {
    display: inline-block;
    padding: 12px 30px;
    background-color: #212842;
    color: #f0ead6;
    border-radius: 30px;
    text-decoration: none;
    font-family: nunito;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    transition: all 0.3s ease;
}

.btnprinc:hover {
    background-color: #f0ead6;
    color: #212842;
}

/* Animation zoom */
@keyframes zoomVideo {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.3); }
}



/* Modifications section argumentation */

.argprinc {
    width: 90%;            /* largeur relative au conteneur parent */
    max-width: 1200px;     /* limite la largeur pour les écrans larges */
    margin: 50px auto;     /* centrer horizontalement avec un peu de marge verticale */
    text-align: left;
    padding: 0 20px;       /* petit padding responsive */
    margin-top: 70px;
}

.argprinc h2 {
    font-family: nunito;
    font-size: clamp(1.5rem, 4vw, 3rem); /* min 24px, max 48px selon écran */
    line-height: 1.2;
    margin-bottom: 20px;
}

.argprinc p {
    font-family: playfair;
    font-size: clamp(1rem, 2vw, 1.5rem); /* min 16px, max 24px selon écran */
    line-height: 1.6;
    color: #f0ead6;
}




/*  Modifications formulaire contact  */

/* Section Contact */
.contact-section {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.contact-title {
    font-family: nunito;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #f0ead6;
    margin-bottom: 30px;
    text-align: left; /* alignement à gauche */
}

/* Formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px; /* espace vertical entre les groupes de champs */
}

/* Grille des champs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px; /* espace vertical et horizontal entre cellules */
}

.form-grid label {
    display: block;
    margin-bottom: 5px;
    font-family: playfair;      /* Typo uniforme avec les paragraphes */
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #f0ead6;             /* couleur crème du texte principal */
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px; /* espace entre label et input/textarea */
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    background-color: #f0ead6; /* couleur crème */
    color: #212842;             /* texte sombre */
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-family: playfair;      /* <-- ici on applique la typo correcte */
}


.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Boutons */
.form-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-buttons input[type="submit"],
.form-buttons input[type="reset"] {
    padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 30px);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background-color: #315e8e;
    color: white;
    transition: all 0.3s ease;
}

.form-buttons input[type="submit"]:hover,
.form-buttons input[type="reset"]:hover {
    background-color: #f0ead6;
    color: #212842;
}



/* Responsive */
@media (max-width: 900px) {
    .contact-section {
        width: 95%;
        padding: 0 10px;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr; /* une seule colonne sur mobile */
    }
    .contact-title {
        text-align: left;
        margin-left: 10px; /* ajustement mobile */
    }
    .form-buttons {
        justify-content: center;
    }
}





/*  Modification footer  */

footer {
    width: 90%;               /* même largeur que .argprinc et .formulaire */
    max-width: 1200px;        /* limite sur grands écrans */
    margin: 50px auto;        /* centre horizontalement avec un peu de marge verticale */
    padding: 0 20px;          /* padding interne identique aux autres sections */
    font-size: small;
    font-family: playfair;
    text-align: left;         /* aligné à gauche */
    color: #f0ead6;
}

footer a.mentionsleg {
    color: #f0ead6;
    font-family: playfair;
    text-decoration: none;
}

footer a.mentionsleg:hover {
    color: #315e8e;
}


.mentionsleg{
    color: #f0ead6;
    font-family: playfair;
}
.mentionsleg:hover{
    color: #315e8e;
    font-family: playfair;
}



/*  Modification page A propos  */

.imgabout{
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-top: 20px;
} 

.txtabout{
    font-family: playfair;
    text-align: center;
    font-size: clamp(14px, 2vw, 20px);
}

@media (max-width: 600px) {
    .txtabout h2 {
        font-size: 20px;
    }

    .txtabout p {
        font-size: 14px;  
    }
}

/*  Modification page Nos services  */

.hservices{
    font-size: 3.5vw;
}

@media (max-width: 600px) {
    .hservices h2 {
        font-size: 20px;
    }
}

.blocorganique {
    display: flex;
    align-items: flex-start; 
    justify-content: space-between;
}

.txtorganique:hover{
    transform: scale(1.01);
    background-color: #1d233a;
    border-radius: 20px;
}

.txtorganique {
    width: 50%;  
    margin-left: auto; 
    margin-right: 20px;
    font-size: 2vw; 
    transition: transform 0.2s
}


.imgressoc {
    width: 30%;              
    aspect-ratio: 1 / 1;     
    object-fit: cover;       
    border-radius: 10px;
    margin: auto
}

.blocads {
    display: flex;
    align-items: flex-start; 
    justify-content: space-between;
}
.txtads:hover{
    transform: scale(1.01);
    background-color: #1d233a;
    border-radius: 20px;
}

.txtads {
    width: 50%;   
    margin-right: auto;
    font-size: 2vw;
    transition: transform 0.2s 
}

.imgads {
    width: 30%;              
    aspect-ratio: 1 / 1;     
    object-fit: cover;       
    border-radius: 10px;
    margin: auto
}

@media (max-width: 600px) {
    .txtads h2,
    .txtressoc h2 {
        font-size: 20px;
    }

    .txtads p,
    .txtressoc p {
        font-size: 14px;  
    }
}

.blocbudg{
    width: 90%;
    text-align: center;
    margin: 0 auto;
    margin-top: 30px;
    font-size: 2vw; 
}

.txtbudg{
    font-family: playfair;
    transition: transform 0.2s
}

.txtbudg:hover{
    transform: scale(1.01);
    background-color: #1d233a;
    border-radius: 20px;
}

@media (max-width: 600px) {
    .txtbudg h2 {
        font-size: 20px;
    }

    .txtbudg p {
        font-size: 14px;  
    }
}

.btndevis {
    display: inline-block;      
    margin: 20px auto;          
    padding: clamp(10px, 2vw, 20px) clamp(20px, 5vw, 40px); 
    color: #212842;
    background-color: #f0ead6;
    border-radius: 30px;        
    font-size: clamp(12px, 1.4vw, 18px);            
    text-align: center;         
    font-family: nunito;
    transition: transform 0.2s, box-shadow 0.2s; 
}


.btndevis:hover{
    transform: scale(1.03);
    box-shadow: 0 0px 30px #f0ead6;
}

/* Modification page Contact */



/* Modification mentions légal */

.mleg{
    font-size: 1.4vw;
}

@media (max-width: 600px) {
    .mleg p {
        font-size: 14px;  
    }
}

/* Modification page Devis */

.devis-section {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.devis-title {
    font-family: nunito;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #f0ead6;
    margin-bottom: 30px;
    text-align: left;
}

/* Grille */
.form-grid-devis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 40px;
}

/* Convertit une ligne en 100% width */
.full-row {
    grid-column: span 2;
}

/* Label */
.form-grid-devis label {
    margin-bottom: 5px;
    font-family: playfair;
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #f0ead6;
}

/* Input */
.form-grid-devis input,
.form-grid-devis select {
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    background-color: #f0ead6;
    color: #212842;
    font-family: playfair;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

/* Boutons */
.devis-form .form-buttons {
    margin-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.devis-form .form-buttons input[type="submit"],
.devis-form .form-buttons input[type="reset"] {
    padding: clamp(10px, 2vw, 14px) clamp(20px, 4vw, 30px);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background-color: #315e8e;
    color: white;
    transition: 0.3s;
}

.devis-form .form-buttons input[type="submit"]:hover,
.devis-form .form-buttons input[type="reset"]:hover {
    background-color: #f0ead6;
    color: #212842;
}

.form-group select {
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    background-color: #f0ead6;
    color: #212842;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-family: playfair;
    height: 48px;          /* même hauteur que les inputs */
    width: 100%;
    box-sizing: border-box;
}




/* Responsive */
@media (max-width: 700px) {
    .form-grid-devis {
        grid-template-columns: 1fr;
    }
    .full-row {
        grid-column: span 1;
    }
}

/* Texte responsive sécurisé */
.txtorganique,
.txtads,
.blocbudg,
.mleg {
    font-size: clamp(14px, 1.6vw, 20px);
}

.hservices {
    font-size: clamp(22px, 3.5vw, 40px);
}

/*  Hover uniquement sur desktop  */
@media (hover: hover) {
    .txtorganique:hover,
    .txtads:hover,
    .txtbudg:hover {
        transform: scale(1.01);
        background-color: #1d233a;
    }
}

/* Services : responsive mobile */
@media (max-width: 900px) {

    .blocorganique,
    .blocads {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        text-align: center;
    }

    .txtorganique,
    .txtads {
        width: 100%;
        margin: 0;
        font-size: clamp(14px, 2vw, 18px);
    }

    .imgressoc,
    .imgads {
        width: 70%;
    }
}

/* Header vidéo mobile */
@media (max-width: 700px) {
    .video-bg {
        display: none;
    }

    header {
        background-color: #212842;
    }

    .hprinc {
        font-size: clamp(28px, 8vw, 40px);
    }

    .slogan {
        font-size: clamp(14px, 4vw, 18px);
    }
}

/* Navigation mobile safe  */
@media (max-width: 800px) {
    nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .boutontop {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn1,
    .btn2,
    .btn3,
    .btn4 {
        margin-right: 0;
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Images globales */
img {
    max-width: 100%;
    height: auto;
}

/* Desktop */
.txtorganique,
.txtads,
.txtbudg {
    font-size: clamp(17px, 2.4vw, 26px);
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 900px) {
    .txtorganique,
    .txtads,
    .txtbudg {
        font-size: 17px;
        line-height: 1.5;
    }
}

/* Responsive global */

* {
    box-sizing: border-box;
}

img,
video {
    max-width: 100%;
    height: auto;
}


/* Responsive nav */

@media (max-width: 900px) {
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }

    .boutontop {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}


/*Header vidéo*/

@media (max-width: 900px) {
    header {
        height: 60vh;
        padding: 20px;
    }

    .hprinc {
        font-size: 2.2rem;
    }

    .slogan {
        font-size: 1rem;
        max-width: 90%;
    }
}

/**argumentation a propos, contact, etc...*/
@media (max-width: 900px) {
    .argprinc,
    .contact-section,
    .devis-section,
    footer {
        width: 95%;
        padding: 0 10px;
    }

    h2 {
        text-align: center;
    }

    p {
        text-align: center;
    }
}

/*Structure mobile - services*/
@media (max-width: 900px) {

    .blocorganique,
    .blocads {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        margin-top: 40px;
    }

    .txtorganique,
    .txtads {
        width: 100%;
        margin: 0;
        text-align: center;
        padding: 20px;
    }

    .imgressoc,
    .imgads {
        width: 70%;
    }
}


/*Bloc CTA services*/

@media (max-width: 900px) {
    .blocbudg {
        width: 100%;
        padding: 0 10px;
    }

    .btndevis {
        display: block;
        margin: 30px auto;
    }
}


/*Formulaire mobile*/

@media (max-width: 700px) {
    .form-grid,
    .form-grid-devis {
        grid-template-columns: 1fr;
    }

    .form-buttons {
        justify-content: center;
    }
}


@media (max-width: 900px) {

    /* Structure générale */
    .blocorganique,
    .blocads {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 40px;
    }

    /* Texte en premier */
    .txtorganique,
    .txtads {
        order: 1;
        width: 100%;
        margin: 0;
        padding: 20px;
        text-align: center;
    }

    /* Images après le texte */
    .imgressoc,
    .imgads {
        order: 2;
        width: 55%;              /* image plus fine */
        max-width: 260px;        /* évite images trop grandes */
        aspect-ratio: 1 / 1;
        margin: 0 auto 30px;
    }

    /* Bloc budget / conclusion */
    .blocbudg {
        margin-top: 40px;
        text-align: center;
    }

    /* Bouton final */
    .btndevis {
        display: block;
        margin: 30px auto 0;
    }
}
