@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
:root {
  font-size: 1em;
  --header-gb: #0000ff;
  --blue-base: #001980;
}

@font-face {
  font-family: 'roboto';
  src: url("../roboto/roboto-Regular.ttf");
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("/static/Resources/fonts/sourcesanspro-regular.otf") format("otf"), url("/static/Resources/fonts/sourcesanspro-regular.woff") format("woff");
  font-weight: 400;
  font-display: fallback;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("/static/Resources/fonts/sourcesanspro-semibold.otf") format("otf"), url("/static/Resources/fonts/sourcesanspro-semibold.woff") format("woff");
  font-weight: 600;
  font-display: fallback;
}


@font-face {
  font-family: 'roboto';
  src: url("../roboto/roboto-Regular.ttf");
}
@font-face {
  font-family: 'robotoM';
  src: url("../roboto/Roboto-Medium.ttf");
}
@font-face {
  font-family: 'robotoI';
  src: url("../roboto/Roboto-Italic.ttf");
}
@font-face {
  font-family: 'robotoB';
  src: url("../roboto/Roboto-Black.ttf");
}
@font-face {
  font-family: 'robotoL';
  src: url("../roboto/RobotoCondensed-Light.ttf");
}

 /* Styles généraux */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'roboto', sans-serif;
        }
        
        body {
            background-color: #162d50;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        header {
            color: #2c3e50;
            text-align: center;
            padding-top:0.5rem;
            background: #d35400;
            position: relative;

        }
       header .adresse{
        position: absolute;
        color: #fff;
        max-width: 200px;
        left: 5%;
        top:50%;
        transform: translateY(-50%);
        font-size: 0.7rem;
        background:#ffffff3d !important ;
        padding: 10px 7px;
        border-radius: 8px;
       }
         header .facebook{
        position: absolute;
        color: #fff;
        max-width: 200px;
        right: 5%;
        top:50%;
        transform: translateY(-50%);
        font-size: 1.7rem;
        padding: 10px 7px;
        border-radius: 8px;
       }
        h1 {
            font-size: 2.5rem;
        }
        
        .container {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 0.5rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        .container p{
            color: #fff;
            text-align: center;
            margin-bottom: 1.4rem;
            position: relative;
            
        }
        .container p span{
            color: #d35400;
            text-align: center;
            font-size: 1.9rem;
            position: absolute;
           
          &:first-child{
            left: -17px;
            top: -5px;
          }
           &:last-child{
            right: -17px;
            top: -5px;
          }
        }
        
        
        .blocks-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
            width: 100%;
            margin-top: 0.5rem;
        }
        
        .block {
            flex: 1;
            min-width: 300px;
            max-width: 600px;
            height: 400px;
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: transform 0.3s, box-shadow 0.3s;
            position: relative;
            cursor: pointer;
        }
        
        .block:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }
        
        .block-content {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            height: 100%;
            padding: 2rem;
            text-align: center;
            position: relative;
            z-index: 4;
            
            p{color: #ffffff !important};
        }
        
        
        .block-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0.9;
            z-index: 1;
        }
         .block-bg-agro {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0.9;
            z-index: 3;
        }

         .block-bg-pre {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0.9;
            z-index: 3;
        }
        
        
        .block h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            /* color: #2c3e50 !important; */
            position: relative;
        }
        
        .block p {
            color: #555;
            margin-bottom: 1.5rem;
        }
        
        .block .btn {
            background-color: #3498db;
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: 30px;
            text-decoration: none;
            font-weight: bold;
            transition: background-color 0.3s;
        }
        
        .block .btn:hover {
            background-color: #2980b9;
        }
        
        #agropastoral .block-bg {
            background-size: cover;
            background-position: center;
            transition: background-image 1.5s ease-in-out;
        }
        
        #agropastoral h2 {
            color: #ffffff;
            text-shadow: 0 1px 9px rgba(0, 0, 0, 0.5);
            font: 1.7em !important;
             font-family: 'robotoM';
        }
        
        #agropastoral .btn {
            background-color: #ffffff;
            color: #162d50;
            transition: all 0.3s ease-in-out;

        }
        
        #agropastoral .btn:hover {
            background-color: #219653;
            color: #ffffff;
        }
        
        #beton h2{
            color: #ffffff;
            text-shadow: 0 1px 9px rgba(0, 0, 0, 0.5);
            font: 1.4em;
             font: 1.7em !important;
             font-family: 'robotoM';

        }
        #beton .btn {
            color: #162d50;
        }
        #beton .block-bg {
            background-size: cover;
            background-position: center;
            transition: background-image 1.5s ease-in-out;
        }
        
        #beton .btn {
            background-color: #ffffff;
            transition: all 0.3s ease-in-out;
        }
        
        #beton .btn:hover {
            background-color: #d35400;
            color: #ffffff;
        }
        
        footer {
          
            color: white;
            text-align: center;
            padding: 1rem 0;
            margin-top: auto;
        }
        
        
        #logo{
            width:min(20%,35%);
           
            margin-bottom: 10px;
        }

        /* Media queries pour responsive */
        @media (max-width: 768px) {
            .blocks-container {
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 1rem;
                width: 100%;
                margin-top: 0;
            }
        
            .block {
                width: 100%;
            }
             #logo{
            width:min(60%,70%);
           
            }
            header .adresse{
                max-width: 160px;
                left: 2%;
                top:25%;
                font-size: 0.6rem;
                padding: 5px 7px;
            }
            header .facebook{
                max-width: 160px;
                right: 2%;
                top:25%;
                padding: 5px 7px;
            }
        #agropastoral{
           margin-bottom: 0.8rem;
        }
       #agropastoral .block-bg {
       }
        
        #agropastoral h2 {
           
            font-size: 1.6em !important;
            
        }
        #beton h2{
            font-size: 1.6em;
            
      

        }
      
        #beton .block-bg {
            background-size: cover;
            background-position: center;
            transition: background-image 1.5s ease-in-out;
        }
        }


