/* ============================================================
   ASEDG – Custom theme
   ============================================================ */

/* ----------------------------------------------------------
   1. VARIABLES & BASE
   ---------------------------------------------------------- */
:root {
  --red:        #ff1100;
  --navy:       #002383;
  --gray-bg:    #f0f0f0;
  --gray-card:  #e8e8e8;
  --gray-border:#c4c4c3;
  --white:      #ffffff;
  --text:       #002383;

  --btn-hover: #b8200f;
  --radius-btn:  22px;
  --radius-card: 35px;
  --radius-blob: 150px;

  --focus-outline: 3px solid #ffbf47;
}

@font-face {
  font-family: 'Circular Air Pro';
  src: url('../assets/fonts/Circular Air Pro-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Air Pro';
  src: url('../assets/fonts/Circular Air Pro-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Air Pro';
  src: url('../assets/fonts/Circular Air Pro-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Circular Air Pro';
  src: url('../assets/fonts/Circular Air Pro-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Circular Air Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
}

body,p{
  font-size:16px;
  font-weight: 300;
  font-family: 'Circular Air Pro';
}

h2{
  font-size:41px;
  line-height:53px;
  font-weight:700;
  font-family: 'Circular Air Pro';
}
h3{
  font-size:29px;
  line-height:38px;
  font-weight:400;
  font-family: 'Circular Air Pro';
}
h4{
  font-size:25px;
  line-height:33px;
  font-weight:900;
  font-family: 'Circular Air Pro';
}
h5{
  font-size:18px;
  line-height:24px;
  font-weight:700;
  font-family: 'Circular Air Pro';
}


h2.bubble {
  color: var(--navy);
  font-weight: 700;
  display: inline-block;
  position: relative;
  margin-top: 0;
  margin-left: -20pt;
  border: 6pt solid;
  padding: 6pt 0;
  
  &::before{
    content:"";
    position:absolute;
    height:100%;
    width:10%;
    top:-6pt;
    left:-6pt;
    border-width: 40pt 0 40pt 40pt;
    border-style:solid;
    border-color:transparent transparent transparent var(--navy);
  }
  
  &::after{
    content:"";
    position:absolute;
    height:100%;
    width:10%;
    top: 5pt;
    left:0pt;
    border-width: 28pt 0 28pt 28pt;
    border-style:solid;
    border-color:transparent transparent transparent var(--gray-card);
  }
  span{
    position:relative;
    padding: 6pt 12pt;
    background:var(--gray-card);
    z-index:1;
  }
}


a.bubble {
  display: block !important;
  font-weight: 700;
  font-size:20px;
  position: relative !important;
  padding: 12pt;
  text-decoration: none !important;
  background:var(--red);
  text-align: center;
  color: #fff !important;
  transition:0.3s;
  
  
  
  
  &:hover{
    /* text-decoration:none; */
    transform:translateY(-4px);
    background:var(--btn-hover);
    
    
    &::before{
      border-right-color: var(--btn-hover);
    }
    
  }
  
  &::before{
    content:"";
    position:absolute;
    height:100%;
    width:10%;
    top: 0;
    right: 0;
    border-width: 35pt 35pt 30pt 0;
    border-style:solid;
    border-color:transparent;
    border-right-color: var(--red);
    transition:0.3s;
  }

  span{
    position:relative;
    padding: 6pt 12pt;
    z-index:1;
    color: #fff !important;
  }
}

header{
  a.bubble {
    text-transform: unset !important;
    font-size: 14px;
    position: relative;
    
    
    
    &::before{
      border-width: 15pt 15pt 15pt 0;
      right: 0;
      top: 6pt;
      z-index: -1;
    }
    span{
      font-size: 14px;
    }
  }
}


.modular-text{
  padding: 3rem 1rem !important;
}



/* ----------------------------------------------------------
   2. FOCUS
   ---------------------------------------------------------- */
*:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Supprimer l'outline par défaut uniquement quand :focus-visible est supporté */
*:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* ----------------------------------------------------------
   3. HEADER / NAV
   ---------------------------------------------------------- */
#header {
  border-bottom: 3px solid var(--red);
}

#header li a:hover{
  color:var(--red);
}
.dropmenu ul li a.active,
.dropmenu ul li a:focus-visible {
  &::after{
    content:"";
    position:absolute;
    bottom:0px;
    height:4px;
    background:var(--red);
    left: 15px;
    right: 15px;
  }
}

#header{
  
  .langswitcher {
      font-weight: 400;
      margin-left: 0 !important;
      margin-right: 10px;
  
  }
  
  .langswitcher li {
    
    
    a{
      padding: 4px;
      position: relative;

      &:hover{
        background:var(--gray-bg);
      }
      
      &.active,&:focus-visible {
        &::after{
          content:"";
          position:absolute;
          bottom:2px;
          height:4px;
          background:var(--red);
          left: 4px;
          right: 4px;
        }
      }
    }
    
  }
  
  .langswitcher .active {
      font-weight: 400;
      text-decoration: none;
  }

}



.overlay {
  background:var(--navy) !important;
  *{
    color: #fff !important;
  }
  .toggler{
    display: none;
  }
  .treemenu li a{
    
  padding: 8px 0;
  }
  .treemenu li a.active,
  .treemenu li a:focus,
  .treemenu li a:hover {
    text-decoration:none;
    color:var(--red)!important
  }
  .bubble{
    
  margin: 0;
  margin-top: 20px;
  }
}


/* ----------------------------------------------------------
   4. BOUTONS
   ---------------------------------------------------------- */
.button,
a.button {
  display: inline-block;
  padding: 0.2rem 1.6rem 1.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
  border-bottom: 2px solid transparent !important;
  background: var(--red);
  color: var(--white) !important;
  line-height: 1.4;
  
  
  &.btntab {
    border-bottom-left-radius: var(--radius-btn);
    border-bottom-right-radius: var(--radius-btn);
  }
}

.button:hover,
a.button:hover {
  background: var(--btn-hover);
  color: var(--white) !important;
  /* transform: translateY(-2px); */
  outline:none;
  border-color:transparent;
  margin-bottom:0.2rem;
  padding-top:0rem;
  /* box-shadow: 0 4px 12px rgba(218, 41, 28, 0.35); */
  /* border-bottom: 2px solid transparent !important; */
}

.button:active,
a.button:active {
  transform: translateY(0);
}

.buttons{

  &.centered{
    justify-content: center;
  }
}

/* Groupe de boutons */
[role="group"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

/* ----------------------------------------------------------
   5. SECTION HERO (modular-text avec image)
   ---------------------------------------------------------- */


.modular-hero{
  margin-top: 4rem;
  padding: 0 !important;
  border: 6pt solid var(--red);
  position: relative;

  &::before{
    content:"";
    position:absolute;
    right:0;
    top:0;
    bottom:0;
    width:300px;
    background:var(--red);
    z-index:-1;
  }
  
  .container{
    padding: 3rem;
    max-width: none !important;
    

    p{
      color: var(--text);
    }

    .column:first-of-type{
      padding-right: 4rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    
  }
  
  h2{
    color:var(--red);
    font-size:41px;
    margin-top: 0;
  }
}

.modular-hero.hero-section {
  background: var(--white) !important;
  border-left: 6px solid var(--red);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.modular-hero.hero-section h2 {
  color: var(--red);
  font-weight: 900;
  margin-top: 0;
}

/* Image hero */
.modular-hero figure {
  margin: 0;
  /* padding: 2rem 0 2rem 2rem; */
}

.modular-hero figure img {
  /* border: 1px solid var(--gray-card); */
  width: 100%;
  object-fit: cover;
  display: block;
}

/* ----------------------------------------------------------
   6. SECTION "NOTRE MISSION" (carte grise arrondie)
   ---------------------------------------------------------- */
.modular-text.carte {
  background: var(--white) !important;
}

/* La carte elle-même */
.modular-text.carte .columns {
  background: var(--gray-card);
  border-radius: var(--radius-card);
  padding: 2.5rem 5rem;
  max-width: 720px;
  margin: 0 auto;
}

p {
  color: var(--navy);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ----------------------------------------------------------
   7. FEATURES – cards bleu marine
   ---------------------------------------------------------- */
.modular-features .frame-box {
  background: transparent;
  box-shadow: none;
  padding: 1rem 0;
}

.modular-features.small .columns {
  gap: 1rem;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.modular-features.small{
  
    .column {
      background: var(--navy);
      padding: 1.5rem 1rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      flex: 1;
      display: flex;
      flex-direction: column;
      
      &:nth-child(1){
        border-bottom-left-radius: var(--radius-card);
      }
      &:nth-child(2){
        border-top-left-radius: var(--radius-card);
      }
      &:nth-child(3){
        border-top-right-radius: var(--radius-card);
      }
      &:nth-child(4){
        border-bottom-right-radius: var(--radius-card);
      }
      
      
      .feature-icon{
        margin: 0;
        flex: 1;
        
        
        icon{
          font-size: 100px;
          height: 80px;
        }
        
      }
  }
}

.modular-features.small .column:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 20, 137, 0.3);
}

/* Icône rouge */
.modular-features.small .feature-icon i {
  color: var(--red) !important;
  font-size: 40px !important;
  margin-bottom: 0.75rem;
}

/* Titre de la feature – blanc sur marine : ratio > 7:1 ✓ */
.modular-features.small .feature-icon span {
  color: var(--white) !important;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  /* text-transform: none; */
  line-height: 1.3;
  margin-bottom: 10px;
}

/* Texte description – blanc à 85% : ratio ~5.5:1 ✓ */
.modular-features.small .feature-content,
.modular-features.small .feature-content p {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.875rem;
  margin: 0;
}

/* Annuler les overrides hover du thème Quark */
.modular-features.small .column:hover .feature-icon,
.modular-features.small .column:hover .feature-icon span,
.modular-features.small .column:hover .feature-content {
  color: var(--white) !important;
}
.modular-features.small .column:hover .feature-icon i {
  color: var(--red) !important;
}

/* ----------------------------------------------------------
   8. SECTION HUB DIGITAL
   ---------------------------------------------------------- */

.modular-text.hub-section {
  background: var(--white) !important;
  border: 2px solid var(--red);
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 0 !important;
}

.modular-text.hub-section .container {
  padding: 0;
}

.modular-text.hub-section .columns {
  align-items: stretch;
  margin: 0;
  min-height: 220px;
}

/* Colonne gauche : bloc rouge organique */
.modular-text.hub-section .col-hub-label {
  background: var(--red);
  border-radius: var(--radius-blob) 0 0 var(--radius-blob);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  min-height: 200px;
}

.modular-text.hub-section .col-hub-label h2 {
  color: var(--white);    /* Blanc sur rouge : ratio 4.8:1 ✓ */
  font-weight: 900;
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
}

/* Colonne droite : contenu */
.modular-text.hub-section .col-hub-content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modular-text.hub-section .col-hub-content p {
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.banner{

  .container{
    border: 6pt solid var(--red);
    overflow:hidden;
    border-top-left-radius:100px;
    
    .column{

      &:nth-child(1){
        flex:0;
        white-space:nowrap;
        padding:2rem 4rem;
        display: flex;
        align-items: center;
        background: var(--red);
        color: #fff;
        border-bottom-right-radius:100px;
        
        h2{
          margin:0;
          color: #fff;
        }
      }
      &:nth-child(2){
        flex:1;
        padding:1rem 3rem;
        text-align: center;
        color: var(--navy);
        p{
          font-size: 18px;
        }
      }
      
    }

    
  }
  
}

/* ----------------------------------------------------------
   9. SECTION ARTICLES DU BLOG
   ---------------------------------------------------------- */
.modular-blog {

  .columns{
    
    .card {
      border: 6pt solid var(--gray-border);
      flex: 1;
      transition:0.4s;
      max-width: 40%;
      
      &:hover{
        border-color:var(--navy);
      }
    
    a{
            font-size:22px !important;
    color:var(--text);
        }

      .card-footer{
        display:none;
      }
    }
    gap: 1rem;
    justify-content:space-between;
    
  }
  

}

/* ----------------------------------------------------------
   10. SECTION BOUTONS FINAUX
   ---------------------------------------------------------- */
.modular-buttons{padding: 3rem 1rem;margin-bottom: 2rem;
  
    [role="group"] {
      justify-content: center;
      padding:0 4rem;

      a{
        flex:1;
      }
      
    }
  
}

/* ----------------------------------------------------------
   11. COULEUR DE FOND bg-gray
   ---------------------------------------------------------- */
.bg-gray {
  background-color: var(--gray-bg) !important;
}

/* ----------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------- */
#footer {
  background: var(--gray-border) !important;
  *{
  color: var(--text) !important;
  }
}

#footer a {
  color: var(--navy);
}

/* ----------------------------------------------------------
   13. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 840px) {
  .modular-text.carte .columns {
    padding: 1.5rem 1.25rem;
  }

  /* Blob HUB : passe en haut sur mobile */
  .modular-text.hub-section .col-hub-label {
    border-radius: var(--radius-blob) var(--radius-blob) 0 0;
    min-height: auto;
    padding: 1.5rem;
  }

  .modular-text.hub-section .col-hub-content {
    padding: 1.5rem;
  }

  [role="group"] {
    flex-direction: column;
    align-items: stretch;
  }

  .modular-features.cta-section [role="group"] .button,
  .modular-features.cta-section [role="group"] a.button {
    max-width: 100%;
  }
}




/* ============================================================
   ASEDG – Responsive styles
   Breakpoints: 840px (tablet), 600px (mobile), 400px (small)
   ============================================================ */

/* ----------------------------------------------------------
   HEADER & NAV
   ---------------------------------------------------------- */
@media (max-width: 840px) {

  #header {
    padding: 0 1rem;
  }

  /* Logo slightly smaller */
  #header .logo img,
  #header .logo svg {
    height: 34px;
  }

  /* Mobile overlay menu: larger lang switcher links */
  .langswitcher {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
  }

  .langswitcher li a {
    font-size: 1rem;
    padding: 6px 10px;
  }
}


/* ----------------------------------------------------------
   HERO SECTION (.modular-hero)
   ---------------------------------------------------------- */
@media (max-width: 840px) {

  .modular-hero {
    margin-top: 4rem;
    border-width: 4pt;
  }

  /* Stack columns vertically */
  .modular-hero .container {
    padding: 2rem 1.25rem;
  }

  .modular-hero .columns {
    flex-direction: column;
  }

  .modular-hero .column:first-of-type {
    padding-right: 0 !important;
    padding-bottom: 1.5rem;
  }

  .modular-hero h2 {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 1rem;
  }

  /* Red side stripe becomes top stripe */
  .modular-hero::before {
    width: 100%;
    height: 160px;
    right: auto;
    bottom: 0;
    top: auto;
  }

  /* Full-width image */
  .modular-hero figure img {
    max-height: 260px;
    object-fit: cover;
  }

  /* Bubble CTA buttons stack */
  a.bubble {
    width: 100%;
    box-sizing: border-box;
    padding: 12pt !important;
  }
}

@media (max-width: 600px) {

  .modular-hero h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .modular-hero .container {
    padding: 1.5rem 1rem;
  }
}


/* ----------------------------------------------------------
   BUBBLE HEADING (h2.bubble)
   ---------------------------------------------------------- */
@media (max-width: 600px) {

  h2.bubble {
    margin-left: 0;
    font-size: 22px;
    line-height: 28px;
    margin-bottom: 30px;
  }

  h2.bubble::before {
    border-width: 32pt 0 32pt 32pt;
  }

  h2.bubble::after {
    border-width: 26pt 0 18pt 18pt;
    top: 0;
  }
}


/* ----------------------------------------------------------
   NOTRE MISSION – carte grise
   ---------------------------------------------------------- */
@media (max-width: 840px) {

  .modular-text.carte .columns {
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
  }
}

@media (max-width: 600px) {

  .modular-text.carte .columns {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }
}


/* ----------------------------------------------------------
   FEATURES CARDS (.modular-features.small)
   ---------------------------------------------------------- */
@media (max-width: 840px) {

  .modular-features.small .columns {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  /* 2 columns on tablet */
  .modular-features.small .column {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: calc(50% - 0.75rem);
  }

  /* Reset individual corner radii, apply uniform ones per card */
  .modular-features.small .column:nth-child(1),
  .modular-features.small .column:nth-child(2),
  .modular-features.small .column:nth-child(3),
  .modular-features.small .column:nth-child(4) {
    border-radius: 0;
  }

  .modular-features.small .column:nth-child(1) { border-bottom-left-radius:  var(--radius-card); }
  .modular-features.small .column:nth-child(2) { border-top-right-radius:    var(--radius-card); }
  .modular-features.small .column:nth-child(3) { border-bottom-left-radius:  var(--radius-card); }
  .modular-features.small .column:nth-child(4) { border-top-right-radius:    var(--radius-card); }
}

@media (max-width: 600px) {

  /* 1 column on mobile */
  .modular-features.small .column {
    flex: 1 1 100%;
    min-width: 100%;
    border-radius: 16px !important;
  }
}


/* ----------------------------------------------------------
   HUB DIGITAL SECTION
   ---------------------------------------------------------- */
@media (max-width: 840px) {

  .modular-text.hub-section .columns {
    flex-direction: column;
  }

  .modular-text.hub-section .col-hub-label {
    border-radius: var(--radius-blob) var(--radius-blob) 0 0;
    min-height: auto;
    padding: 1.5rem;
  }

  .modular-text.hub-section .col-hub-content {
    padding: 1.5rem;
  }
}


/* ----------------------------------------------------------
   BANNER SECTION
   ---------------------------------------------------------- */
@media (max-width: 840px) {

  .banner .container {
    border-top-left-radius: 50px;
  }

  .banner .container .columns {
    flex-direction: column;
  }

  .banner .container .column:nth-child(1) {
    padding: 1.5rem 2rem;
    border-bottom-right-radius: 50px;
    white-space: normal;
  }

  .banner .container .column:nth-child(1) h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .banner .container .column:nth-child(2) {
    padding: 1rem 1.5rem;
  }

  .banner .container .column:nth-child(2) p {
    font-size: 16px;
  }
}

@media (max-width: 600px) {

  .banner .container {
    border-top-left-radius: 30px;
  }

  .banner .container .column:nth-child(1) {
    border-bottom-right-radius: 30px;
    padding: 1.25rem 1.25rem;
  }

  .banner .container .column:nth-child(1) h2 {
    font-size: 22px;
  }
}


/* ----------------------------------------------------------
   BLOG CARDS (.modular-blog)
   ---------------------------------------------------------- */
@media (max-width: 840px) {

  .modular-blog .columns {
    flex-direction: column;
    gap: 1rem;
  }

  .modular-blog .columns .card {
    max-width: 100%;
    flex: 1 1 100%;
  }
}


/* ----------------------------------------------------------
   FINAL BUTTONS (.modular-buttons)
   ---------------------------------------------------------- */
@media (max-width: 840px) {

  .modular-buttons [role="group"] {
    padding: 0 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .modular-buttons [role="group"] a {
    flex: 1 1 100%;
    text-align: center;
  }
}


/* ----------------------------------------------------------
   TYPOGRAPHY – scale down headings
   ---------------------------------------------------------- */
@media (max-width: 840px) {

  h2 {
    font-size: 30px;
    line-height: 40px;
  }

  h3 {
    font-size: 22px;
    line-height: 30px;
  }

  h4 {
    font-size: 20px;
    line-height: 28px;
  }
}

@media (max-width: 600px) {

  h2 {
    font-size: 24px;
    line-height: 32px;
  }

  h3 {
    font-size: 19px;
    line-height: 26px;
  }
}


/* ----------------------------------------------------------
   GLOBAL SPACING – tighten sections on mobile
   ---------------------------------------------------------- */
@media (max-width: 840px) {

  .modular-text {
    padding: 2rem 1rem !important;
  }

  .section {
    padding-right: 0.75rem;
    padding-left:  0.75rem;
  }
}

@media (max-width: 600px) {

  .modular-text {
    padding: 1.5rem 0.75rem !important;
  }
}


/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
@media (max-width: 840px) {

  #footer {
    padding: 1.5rem 1rem;
  }

  /* Stack footer nav items */
  #footer .dropmenu ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}




















