/* =========================================================
   IBC — PAGE CONTACT
   ========================================================= */

:root {
    --ibc-orange: #ff4b00;
    --ibc-black: #111111;
    --ibc-gray: #6f6f6f;
    --ibc-border: #e5e5e5;
    --ibc-light: #fff7f2;
}

/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ibc-black);
    background: #ffffff;
}

/* =========================================================
   BARRE SUPERIEURE
   ========================================================= */

.top-bar {
    height: 48px;
    background: #050505;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5.5%;
    font-size: 14px;
    font-weight: 600;
}

.top-left,
.top-right {
    display: flex;
    align-items: center;
}

.top-left {
    gap: 9px;
}

.top-left .material-symbols-outlined {
    font-size: 19px;
}

.top-right {
    gap: 20px;
}

.top-right a {
    color: #ffffff;
    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 7px;
}

.top-right i {
    font-size: 18px;
}

.top-right a:first-child i {
    font-size: 19px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    height: 95px;
    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 5.5%;

    position: relative;
    z-index: 10;
}

/* Logo */

.site-header .brand {
    width: 150px;
    text-decoration: none;
    color: #111111;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-header .brand span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 58px;
    line-height: 48px;
    font-weight: 700;
    letter-spacing: -5px;
}

.site-header .brand span::first-letter {
    color: var(--ibc-orange);
}

.site-header .brand small {
    margin-top: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Navigation */

.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 54px;
}

.main-nav a {
    height: 100%;

    display: flex;
    align-items: center;

    position: relative;

    color: #111111;
    text-decoration: none;

    font-size: 16px;
    font-weight: 700;
}

.main-nav a.active {
    color: var(--ibc-orange);
}

.main-nav a.active::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: 15px;

    height: 2px;
    background: var(--ibc-orange);
}

.categories-link {
    gap: 4px;
}

.categories-link .material-symbols-outlined {
    font-size: 19px;
    color: var(--ibc-orange);
}

/* Panier */

.cart-link {
    position: relative;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #111111;
    text-decoration: none;
}

.cart-link .material-symbols-outlined {
    font-size: 31px;
}

.cart-count {
    position: absolute;

    top: 0;
    right: 0;

    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--ibc-orange);
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}

/* =========================================================
   HERO
   ========================================================= */

.contact-hero {
    position: relative;

    width: 100%;
    height: 212px;

    /*
      IMPORTANT :
      L'image doit uniquement contenir la photo de la main
      et du téléphone.
    */
    background-image: url("../assets/contact-hero.jpeg");

    background-repeat: no-repeat;

    /*
      La main doit rester visible à droite.
    */
    background-position: center center;

    /*
      On remplit le bandeau sans déformer l'image.
    */
    background-size: cover;

    overflow: hidden;
}

/*
   Overlay léger.
   PAS de gros voile noir qui cache la main.
*/

.contact-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.30);

    pointer-events: none;
}

.contact-hero-overlay {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
}

.contact-hero-content {
    width: 90%;
    max-width: 1370px;

    margin: 0 auto;

    padding-top: 2px;
}

.contact-hero-content h1 {
    margin: 0 0 18px;

    color: #ffffff;

    font-size: 44px;
    line-height: 1.1;
    font-weight: 800;

    letter-spacing: -1px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 17px;
    font-weight: 700;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb span {
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}

.breadcrumb strong {
    color: var(--ibc-orange);
}

/* =========================================================
   CONTENU PRINCIPAL
   ========================================================= */

.contact-page {
    width: 100%;

    position: relative;
    z-index: 5;

    margin-top: -25px;
    padding-bottom: 50px;
}

.contact-card {
    width: 89%;
    max-width: 1370px;

    margin: 0 auto;

    background: #ffffff;

    border-radius: 17px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.08);

    overflow: hidden;
}

/* =========================================================
   DEUX COLONNES
   ========================================================= */

.contact-info,
.contact-form-container {
    padding: 48px 5%;
}

.contact-info {
    width: 43%;
    float: left;
}

.contact-form-container {
    width: 57%;
    float: right;

    border-left: 1px solid #eeeeee;
}

/* Nettoyage du float */

.contact-card::after {
    content: "";
    display: table;
    clear: both;
}

/* =========================================================
   TITRES
   ========================================================= */

.contact-info h2,
.contact-form-container h2 {
    margin: 0;

    color: #111111;

    font-size: 26px;
    font-weight: 800;
}

.title-line {
    width: 44px;
    height: 3px;

    margin-top: 14px;
    margin-bottom: 19px;

    background: var(--ibc-orange);
}

.contact-intro {
    margin: 0 0 27px;

    color: #222222;

    font-size: 15px;
    line-height: 1.55;
}

/* =========================================================
   INFORMATIONS CONTACT
   ========================================================= */

.contact-item {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 20px;

    text-decoration: none;
    color: inherit;
}

.contact-icon {
    width: 56px;
    height: 56px;

    flex: 0 0 56px;

    border-radius: 50%;

    background: #fff0e7;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--ibc-orange);
}

.contact-icon i {
    font-size: 26px;
}

.contact-icon .material-symbols-outlined {
    font-size: 27px;
}

.contact-item-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item-text strong {
    font-size: 15px;
    font-weight: 800;
}

.contact-item-text span {
    font-size: 15px;
    color: #111111;
}

.contact-item-text small {
    font-size: 13px;
    color: #777777;
}

/* =========================================================
   RESEAUX SOCIAUX
   ========================================================= */

.social-section {
    margin-top: 5px;
}

.social-section h3 {
    margin: 0 0 12px;

    font-size: 15px;
    font-weight: 800;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-links a {
    width: 43px;
    height: 43px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    color: #ffffff;
}

.social-links i {
    font-size: 22px;
}

.social-links .facebook {
    background: #3159a6;
}

.social-links .instagram {
    background:
        linear-gradient(
            135deg,
            #405de6,
            #833ab4,
            #e1306c,
            #fd1d1d,
            #f77737
        );
}

.social-links .tiktok {
    background: #050505;
}

/* =========================================================
   FORMULAIRE
   ========================================================= */

.contact-form-container h2 {
    margin-bottom: 26px;
}

#contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #111111;

    font-size: 14px;
    font-weight: 500;
}

.form-group label span {
    color: var(--ibc-orange);
}

.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid #dcdcdc;
    border-radius: 6px;

    background: #ffffff;

    padding: 13px 14px;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition: border-color 0.2s ease;
}

.form-group input {
    height: 42px;
}

.form-group textarea {
    min-height: 125px;

    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--ibc-orange);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

/* =========================================================
   BOUTON
   ========================================================= */

.contact-submit {
    width: 100%;
    height: 52px;

    border: 0;
    border-radius: 5px;

    background: var(--ibc-orange);
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.contact-submit:hover {
    opacity: 0.92;
}

.contact-submit:active {
    transform: scale(0.99);
}

.contact-submit .material-symbols-outlined {
    font-size: 20px;
}

.contact-success {
    margin-top: 12px;
}

/* =========================================================
   AVANTAGES
   ========================================================= */

.contact-benefits {
    clear: both;

    border-top: 1px solid #eeeeee;

    min-height: 115px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    align-items: center;
}

.benefit {
    min-height: 62px;

    padding: 0 30px;

    display: flex;
    align-items: center;
    gap: 17px;

    border-right: 1px solid #eeeeee;
}

.benefit:last-child {
    border-right: 0;
}

.benefit > .material-symbols-outlined {
    color: var(--ibc-orange);
    font-size: 40px;
}

.benefit div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.benefit strong {
    font-size: 14px;
    font-weight: 800;
}

.benefit small {
    color: #777777;
    font-size: 13px;
}

/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 25px;
    }

    .contact-info,
    .contact-form-container {
        width: 100%;
        float: none;
    }

    .contact-form-container {
        border-left: 0;
        border-top: 1px solid #eeeeee;
    }

    .contact-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .benefit:nth-child(2) {
        border-right: 0;
    }

    .benefit:nth-child(3),
    .benefit:nth-child(4) {
        border-top: 1px solid #eeeeee;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .top-bar {
        height: auto;
        min-height: 42px;

        padding: 8px 15px;

        font-size: 11px;
    }

    .top-right {
        display: none;
    }

    .site-header {
        height: 75px;
        padding: 0 18px;
    }

    .site-header .brand span {
        font-size: 43px;
        line-height: 36px;
    }

    .site-header .brand small {
        font-size: 8px;
    }

    .main-nav {
        display: none;
    }

    .cart-link {
        margin-left: auto;
    }

    /*
       HERO MOBILE
    */

    .contact-hero {
        height: 190px;

        background-position: center center;
    }

    .contact-hero-content {
        width: 88%;
    }

    .contact-hero-content h1 {
        font-size: 34px;
        margin-bottom: 12px;
    }

    .breadcrumb {
        font-size: 14px;
    }

    .contact-page {
        margin-top: -20px;
    }

    .contact-card {
        width: 94%;
        border-radius: 13px;
    }

    .contact-info,
    .contact-form-container {
        padding: 32px 25px;
    }

    .contact-info h2,
    .contact-form-container h2 {
        font-size: 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-benefits {
        grid-template-columns: 1fr;
    }

    .benefit,
    .benefit:nth-child(2),
    .benefit:nth-child(3),
    .benefit:nth-child(4) {
        border-right: 0;
        border-top: 1px solid #eeeeee;

        padding: 18px 25px;
    }

    .benefit:first-child {
        border-top: 0;
    }
}

/* IBC — Correctif mobile ciblé : barre supérieure lisible sur une seule ligne. */
@media (max-width:700px){
  .top-bar{height:34px;min-height:34px;padding:0 8px;display:flex;align-items:center;overflow:hidden;font-size:clamp(6px,2.15vw,9px);line-height:1;white-space:nowrap}
  .top-left{width:100%;min-width:0;display:flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;overflow:hidden}
  .top-left .material-symbols-outlined{font-size:clamp(11px,3.2vw,14px);flex:0 0 auto}
  .top-left>span:last-child{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:clip}
  .top-right{display:none}
}
